2 CFLAGS += -I../ -I$(CINELERRA) -I$(GUICAST) -I../colors -fPIC
4 CFLAGS += $(static_incs)
5 LFLAGS += $(static_libs)
7 LDLINKER ?= $(CXX) -shared
8 $(shell mkdir -p $(OBJDIR))
10 PLUGIN_DIR := $(BINDIR)/plugins
11 OUTPUT_DIR = $(PLUGIN_DIR)/$($(PLUGIN))
12 OUTPUT = $(OUTPUT_DIR)/$(PLUGIN).plugin
13 OUTPUT_G = $(OBJDIR)/$(PLUGIN).debuginfo
15 $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
16 $(shell echo $(LFLAGS) > $(OBJDIR)/l_flags)
18 ifeq ($(OUTPUT_THEME),)
20 $(OUTPUT): $(OBJS) $(OUTPUT_DIR) $(OUTPUT_BINS)
21 $(LDLINKER) -o $(OUTPUT) $(OBJS) $(OUTPUT_BINS) `cat $(OBJDIR)/l_flags`
22 $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(OUTPUT) $(OUTPUT_G))
23 $(if $(findstring -ggdb,$(CFLAGS)),,strip $(OUTPUT))
27 THEME_DATA = $(OBJDIR)/$(PLUGIN)_data.o
29 $(OUTPUT_THEME): $(OBJS) $(OUTPUT_DIR) $(THEME_DATA)
30 $(LDLINKER) -o $(OUTPUT_THEME) $(OBJS) $(THEME_DATA) $(LDFLAGS)
31 $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(OUTPUT_THEME) $(OUTPUT_G))
32 $(if $(findstring -ggdb,$(CFLAGS)),,strip $(OUTPUT_THEME))
36 ../../../guicast/$(OBJDIR)/bootstrap $(notdir $(THEME_DATA)) ../data/*.png
51 $(CXX) `cat $(OBJDIR)/c_flags` -DMSGQUAL=$* -c $< -o $@
54 @echo $($(subst val-,,$@))