Marco Cawthorne
f753e6f3ba
To make sure the repo is back in-sync Co-authored-by: Marco Hladik <marco@icculus.org> Reviewed-on: https://git.vera-visions.com:3000/tech/worldspawn/pulls/19
26 lines
579 B
Makefile
26 lines
579 B
Makefile
# WorldSpawn Plugin Makefile
|
|
|
|
ZLIB_LDFLAGS=$(shell pkg-config --libs zlib)
|
|
|
|
PLUGIN_CFLAGS=$(CFLAGS) -I../../include -I../../libs -fPIC -fvisibility=hidden
|
|
PLUGIN_LDFLAGS=$(LDFLAGS) -shared $(ZLIB_LDFLAGS)
|
|
LIB_EXT=so
|
|
|
|
DO_CXX=$(CXX) $(PLUGIN_CFLAGS) -o $@ -c $<
|
|
|
|
.cpp.o:
|
|
$(DO_CXX)
|
|
|
|
WS_OBJS = \
|
|
archive.o plugin.o
|
|
|
|
# binary target
|
|
../../build/plugins/libarchivezip.$(LIB_EXT): $(WS_OBJS)
|
|
$(CXX) -o $@ $(WS_OBJS) $(PLUGIN_LDFLAGS)
|
|
|
|
# object files
|
|
archive.o: archive.cpp archive.h
|
|
plugin.o: plugin.cpp zlibstream.h
|
|
|
|
clean:
|
|
-rm -f *.o ../../build/plugins/libarchivezip.$(LIB_EXT)
|