vmap/plugins/model/Makefile

27 lines
650 B
Makefile
Raw Normal View History

2021-06-02 08:49:27 +00:00
# WorldSpawn Makefile
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
LIB_EXT=so
2021-06-02 08:49:27 +00:00
DO_CXX=$(CXX) $(PLUGIN_CFLAGS) -o $@ -c $<
.cpp.o:
$(DO_CXX)
WS_OBJS = \
model.o plugin.o
# binary target
../../build/plugins/libmodel.$(LIB_EXT): $(WS_OBJS)
2021-08-08 15:10:20 +00:00
$(CXX) -o $@ $(WS_OBJS) ../../libs/libpicomodel.a $(PLUGIN_LDFLAGS)
2021-06-02 08:49:27 +00:00
# object files
model.o: model.cpp model.h
plugin.o: plugin.cpp
clean:
-rm -f *.o ../../build/plugins/libmodel.$(LIB_EXT)