]> git.sesse.net Git - vlc/blob - plugins/gnome/Makefile
a31ee081370c76ebc695262130e06c1fb0e3a1b9
[vlc] / plugins / gnome / Makefile
1 ###############################################################################
2 # vlc (VideoLAN Client) gnome module Makefile
3 # (c)2001 VideoLAN
4 ###############################################################################
5
6 include ../../Makefile.modules
7
8 ###############################################################################
9 # Objects and files
10 ###############################################################################
11 PLUGIN_GNOME = gnome.o intf_gnome.o gnome_callbacks.o gnome_interface.o gnome_support.o
12 BUILTIN_GNOME = $(PLUGIN_GNOME:%.o=%-BUILTIN.o)
13
14 ALL_OBJ = $(PLUGIN_GNOME) $(BUILTIN_GNOME)
15
16 objects := $(PLUGIN_GNOME) $(BUILTIN_GNOME)
17 cdependancies := $(objects:%.o=.dep/%.d)
18
19 export
20
21 #
22 # Virtual targets
23 #
24 all:
25
26 clean:
27         rm -f $(ALL_OBJ)
28         rm -f *.o *.moc *.bak *.builtin
29         rm -rf .dep
30
31 FORCE:
32
33 $(cdependancies): %.d: FORCE
34         @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@
35
36 $(ALL_OBJ): %.o: ../../Makefile.dep Makefile
37
38 $(PLUGIN_GNOME): %.o: .dep/%.d
39 $(PLUGIN_GNOME): %.o: %.c
40         $(CC) $(CFLAGS) $(PCFLAGS) `gnome-config --cflags gtk gnomeui` -c -o $@ $<
41
42 $(BUILTIN_GNOME): %-BUILTIN.o: .dep/%.d
43 $(BUILTIN_GNOME): %-BUILTIN.o: %.c
44         $(CC) $(CFLAGS) -DBUILTIN `gnome-config --cflags gtk gnomeui` -c -o $@ $<
45
46 #
47 # Real targets
48 #
49 ../../lib/gnome.so: $(PLUGIN_GNOME)
50         $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_GNOME)
51
52 ../../lib/gnome.a: $(BUILTIN_GNOME)
53         ar r $@ $^
54