]> git.sesse.net Git - vlc/blob - Makefile.common
* Added .cvsignore files in the plugins directories.
[vlc] / Makefile.common
1 ###############################################################################
2 # vlc (VideoLAN Client) common module Makefile
3 # (c)2001 VideoLAN
4 ###############################################################################
5 # This file should be included by all module Makefiles
6 ###############################################################################
7
8 C_DEP := $(ALL_OBJ:%.o=.dep/%.d)
9
10 CPP_DEP := $(ALL_OBJ:%.o=.dep/%.dpp)
11
12 export
13
14 #
15 # Virtual targets
16 #
17 all:
18
19 clean:
20         rm -f $(ALL_OBJ)
21         rm -f *.o *.moc *.bak *.builtin
22         rm -rf .dep
23
24 FORCE:
25
26 $(ALL_OBJ): %.o: ../../Makefile.modules ../../Makefile.dep Makefile
27
28 $(C_DEP): %.d: FORCE
29         @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@
30
31 $(CPP_DEP): %.dpp: FORCE
32         @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@
33
34 $(PLUGIN_C): %.o: .dep/%.d
35 $(PLUGIN_C): %.o: %.c
36         $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
37
38 $(BUILTIN_C): BUILTIN_%.o: .dep/%.d
39 $(BUILTIN_C): BUILTIN_%.o: %.c
40         $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $<
41
42 $(PLUGIN_CPP): %.o: .dep/%.dpp
43 $(PLUGIN_CPP): %.o: %.cpp
44         $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
45
46 $(BUILTIN_CPP): BUILTIN_%.o: .dep/%.dpp
47 $(BUILTIN_CPP): BUILTIN_%.o: %.cpp
48         $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $<
49
50