1 ###############################################################################
2 # vlc (VideoLAN Client) common module Makefile
4 ###############################################################################
5 # This file should be included by all module Makefiles
6 ###############################################################################
9 # C headers directories
11 CFLAGS := -I../../include -I../../extras $(CFLAGS)
14 # C compiler flags: plugin compilation
19 # C compiler flags: plugin linking
21 ifneq (,$(findstring darwin,$(SYS)))
22 PLCFLAGS += -bundle -undefined suppress
25 PLCFLAGS += -nostart ../../lib/_APP_
32 # Standard dependencies
34 C_DEP := $(ALL_OBJ:%.o=.dep/%.d)
36 CPP_DEP := $(ALL_OBJ:%.o=.dep/%.dpp)
47 rm -f *.o *.moc *.bak *.builtin
52 $(ALL_OBJ): %.o: ../../Makefile.modules ../../Makefile.dep Makefile
55 @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@
57 $(CPP_DEP): %.dpp: FORCE
58 @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@
60 $(PLUGIN_C): %.o: .dep/%.d
62 $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
64 $(BUILTIN_C): BUILTIN_%.o: .dep/%.d
65 $(BUILTIN_C): BUILTIN_%.o: %.c
66 $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $<
68 $(PLUGIN_CPP): %.o: .dep/%.dpp
69 $(PLUGIN_CPP): %.o: %.cpp
70 $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
72 $(BUILTIN_CPP): BUILTIN_%.o: .dep/%.dpp
73 $(BUILTIN_CPP): BUILTIN_%.o: %.cpp
74 $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $<