vmap/plugins/brushexport/Makefile

29 lines
825 B
Makefile
Raw Normal View History

2021-06-02 08:49:27 +00:00
# WorldSpawn Plugin Makefile
2021-06-06 17:16:11 +00:00
GLIB_CFLAGS=$(shell pkg-config --cflags gtk+-2.0) -DGTK_TARGET=2
2021-06-02 08:49:27 +00:00
GLIB_LDFLAGS=$(shell pkg-config --libs gtk+-2.0)
PLUGIN_CFLAGS=$(CFLAGS) $(GLIB_CFLAGS) -I../../include -I../../libs -fPIC -fvisibility=hidden
2021-06-02 08:49:27 +00:00
PLUGIN_LDFLAGS=$(LDFLAGS) $(GLIB_LDFLAGS) -shared
DO_CXX=$(CXX) $(PLUGIN_CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
.cpp.o:
$(DO_CXX)
WS_OBJS = \
callbacks.o export.o interface.o plugin.o support.o
# binary target
../../build/plugins/libbrushexport.so: $(WS_OBJS)
$(CXX) $(PLUGIN_LDFLAGS) -o $@ $(WS_OBJS) ../../libs/libuilib.a ../../libs/libgtkutil.a
# object files
callbacks.o: callbacks.cpp callbacks.h
export.o: export.cpp export.h
interface.o: interface.cpp
plugin.o: plugin.cpp plugin.h
support.o: support.cpp support.h
clean:
-rm -f *.o ../../build/plugins/libbrushexport.so