vmap/plugins/archivewad/Makefile

24 lines
477 B
Makefile
Raw Normal View History

# WorldSpawn Plugin Makefile
PLUGIN_CFLAGS=$(CFLAGS) -I../../include -I../../libs -fPIC -fvisibility=hidden
PLUGIN_LDFLAGS=$(LDFLAGS) -shared
DO_CXX=$(CXX) $(PLUGIN_CFLAGS) -o $@ -c $<
.cpp.o:
$(DO_CXX)
WS_OBJS = \
archive.o plugin.o
# binary target
../../build/plugins/libarchivewad.so: $(WS_OBJS)
$(CXX) -o $@ $(WS_OBJS) $(PLUGIN_LDFLAGS)
# object files
archive.o: archive.cpp archive.h
plugin.o: plugin.cpp
clean:
-rm -f *.o ../../build/plugins/libarchivewad.so