1 # Common configuration options for all plugins
5 CFLAGS+=`gtk-config --cflags` -Wall -g -I../../include
6 CPPFLAGS+=`gtk-config --cflags` -Wall -g -I../../include
7 LDFLAGS+=`gtk-config --libs` -shared
8 OUTDIR=$(RADIANT_DATA)plugins
9 OBJS := $(patsubst %.cpp,%.o,$(filter %.cpp,$(SRC)))
10 OBJS += $(patsubst %.c,%.o,$(filter %.c,$(SRC)))
15 $(CXX) -o $(OUTPUT) $(OBJS) $(LDFLAGS)
16 @if [ -d $(OUTDIR) ]; then cp $(OUTPUT) $(OUTDIR); fi
22 rm -f *.o *.d $(OUTPUT) core
25 -include $(OBJS:.o=.d)
29 @if { !(eval $(CXX) -MM $(CPPFLAGS) -w $<) >> $@; }; then \
32 @[ -s $@ ] || rm -f $@