mirror of
https://github.com/videolan/vlc.git
synced 2025-01-08 16:58:09 +08:00
372813ac34
* Updated version number and ChangeLog to 0.2.72 * Additional plugin Makefile cleaning, probably the last.
77 lines
1.5 KiB
Makefile
77 lines
1.5 KiB
Makefile
###############################################################################
|
|
# vlc (VideoLAN Client) common module Makefile
|
|
# (c)2001 VideoLAN
|
|
###############################################################################
|
|
# This file should be included by all module Makefiles
|
|
###############################################################################
|
|
|
|
#
|
|
# C headers directories
|
|
#
|
|
CFLAGS := -I../../include -I../../extras $(CFLAGS)
|
|
|
|
#
|
|
# C compiler flags: plugin compilation
|
|
#
|
|
PCFLAGS += -fPIC
|
|
|
|
#
|
|
# C compiler flags: plugin linking
|
|
#
|
|
ifneq (,$(findstring darwin,$(SYS)))
|
|
PLCFLAGS += -bundle -undefined suppress
|
|
else
|
|
ifeq ($(SYS),beos)
|
|
PLCFLAGS += -nostart ../../lib/_APP_
|
|
else
|
|
PLCFLAGS += -shared
|
|
endif
|
|
endif
|
|
|
|
#
|
|
# Standard dependencies
|
|
#
|
|
C_DEP := $(ALL_OBJ:%.o=.dep/%.d)
|
|
|
|
CPP_DEP := $(ALL_OBJ:%.o=.dep/%.dpp)
|
|
|
|
export
|
|
|
|
#
|
|
# Virtual targets
|
|
#
|
|
all:
|
|
|
|
clean:
|
|
rm -f $(ALL_OBJ)
|
|
rm -f *.o *.moc *.bak *.builtin
|
|
rm -rf .dep
|
|
|
|
FORCE:
|
|
|
|
$(ALL_OBJ): %.o: ../../Makefile.modules ../../Makefile.dep Makefile
|
|
|
|
$(C_DEP): %.d: FORCE
|
|
@$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@
|
|
|
|
$(CPP_DEP): %.dpp: FORCE
|
|
@$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@
|
|
|
|
$(PLUGIN_C): %.o: .dep/%.d
|
|
$(PLUGIN_C): %.o: %.c
|
|
$(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
|
|
|
|
$(BUILTIN_C): BUILTIN_%.o: .dep/%.d
|
|
$(BUILTIN_C): BUILTIN_%.o: %.c
|
|
$(CC) $(CFLAGS) -DBUILTIN -c -o $@ $<
|
|
|
|
$(PLUGIN_CPP): %.o: .dep/%.dpp
|
|
$(PLUGIN_CPP): %.o: %.cpp
|
|
$(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
|
|
|
|
$(BUILTIN_CPP): BUILTIN_%.o: .dep/%.dpp
|
|
$(BUILTIN_CPP): BUILTIN_%.o: %.cpp
|
|
$(CC) $(CFLAGS) -DBUILTIN -c -o $@ $<
|
|
|
|
|