24 lines
498 B
Makefile
24 lines
498 B
Makefile
|
# WorldSpawn Plugin Makefile
|
||
|
|
||
|
PLUGIN_CFLAGS=$(CFLAGS) -I../../include -I../../libs -DPOSIX -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/libarchivezip.so: $(WS_OBJS)
|
||
|
$(CXX) $(PLUGIN_LDFLAGS) -o $@ $(WS_OBJS)
|
||
|
|
||
|
# object files
|
||
|
archive.o: archive.cpp archive.h
|
||
|
plugin.o: plugin.cpp zlibstream.h
|
||
|
|
||
|
clean:
|
||
|
-rm -f *.o ../../build/plugins/libarchivezip.so
|