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