2021-06-02 08:49:27 +00:00
|
|
|
# WorldSpawn Plugin Makefile
|
|
|
|
|
2021-06-06 17:08:06 +00:00
|
|
|
PLUGIN_CFLAGS=$(CFLAGS) -I../../include -I../../libs -fPIC -fvisibility=hidden
|
2021-06-02 08:49:27 +00:00
|
|
|
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/libarchivezip.so: $(WS_OBJS)
|
2021-08-08 15:10:20 +00:00
|
|
|
$(CXX) -o $@ $(WS_OBJS) $(PLUGIN_LDFLAGS)
|
2021-06-02 08:49:27 +00:00
|
|
|
|
|
|
|
# object files
|
|
|
|
archive.o: archive.cpp archive.h
|
|
|
|
plugin.o: plugin.cpp zlibstream.h
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o ../../build/plugins/libarchivezip.so
|