1 include $(TOPDIR)/plugin_defs
3 CFLAGS += -I../ -I$(TOPDIR)/cinelerra \
5 -I$(TOPDIR)/quicktime \
9 include $(TOPDIR)/thirdparty/config.mak
10 CFLAGS += $(static_includes)
11 LFLAGS += $(static_libraries)
13 OUTPUT_DIR = $(PLUGIN_DIR)/$($(PLUGIN))
14 OUTPUT_IMG = $(PLUGIN_DIR)/picons
15 OUTPUT = $(OUTPUT_DIR)/$(PLUGIN).plugin
16 OUTPUT_G = $(OBJDIR)/$(PLUGIN).debuginfo
17 OUTPUT_PNG = $(OUTPUT_IMG)/$(PLUGIN).png
19 $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
20 $(shell echo $(LFLAGS) > $(OBJDIR)/l_flags)
22 ifeq ($(OUTPUT_THEME),)
24 $(OUTPUT): $(OBJS) $(OUTPUT_DIR) $(OUTPUT_IMG)
25 $(LDLINKER) -o $(OUTPUT) $(OBJS) `cat $(OBJDIR)/l_flags`
26 $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(OUTPUT) $(OUTPUT_G))
27 $(if $(findstring -ggdb,$(CFLAGS)),,strip $(OUTPUT))
28 $(if $(wildcard picon.png), cp picon.png $(OUTPUT_PNG))
32 THEME_DATA = $(OBJDIR)/$(PLUGIN)_data.o
34 $(OUTPUT_THEME): $(OBJS) $(OUTPUT_DIR) $(THEME_DATA)
35 $(LDLINKER) -o $(OUTPUT_THEME) $(OBJS) $(THEME_DATA)
36 $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(OUTPUT_THEME) $(OUTPUT_G))
37 $(if $(findstring -ggdb,$(CFLAGS)),,strip $(OUTPUT_THEME))
41 ../../../guicast/$(OBJDIR)/bootstrap $(notdir $(THEME_DATA)) ../data/*.png
45 $(OUTPUT_DIR) $(OUTPUT_IMG):
49 find \( -name core -o -name '*.o' -o -name '*.a' \) -exec rm -f {} \;
57 $(CC) -c `cat $(OBJDIR)/c_flags` $(subst $(OBJDIR)/,, $*.C) -o $*.o
60 @echo $($(subst val-,,$@))