vmap/plugins/prtview/Makefile
Marco Cawthorne f753e6f3ba Building fixes from the Win32 branch. (#19)
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
2022-05-13 09:34:58 -07:00

30 lines
944 B
Makefile

# WorldSpawn Plugin Makefile
GLIB_CFLAGS=$(shell pkg-config --cflags gtk+-2.0) -DGTK_TARGET=2
GLIB_LDFLAGS=$(shell pkg-config --libs gtk+-2.0)
PLUGIN_CFLAGS=$(CFLAGS) $(GLIB_CFLAGS) -I../../include -I../../libs -fPIC -fvisibility=hidden
PLUGIN_LDFLAGS=$(LDFLAGS) $(GLIB_LDFLAGS) -shared
LIB_EXT=so
DO_CXX=$(CXX) $(PLUGIN_CFLAGS) -o $@ -c $<
.cpp.o:
$(DO_CXX)
WS_OBJS = \
AboutDialog.o ConfigDialog.o LoadPortalFileDialog.o portals.o prtview.o
# binary target
../../build/plugins/libprtview.$(LIB_EXT): $(WS_OBJS)
$(CXX) -o $@ $(WS_OBJS) ../../libs/libuilib.a ../../libs/libgtkutil.a ../../libs/libprofile.a $(PLUGIN_LDFLAGS)
# object files
AboutDialog.o: AboutDialog.cpp AboutDialog.h
ConfigDialog.o: ConfigDialog.cpp ConfigDialog.h
LoadPortalFileDialog.o: LoadPortalFileDialog.cpp LoadPortalFileDialog.h
portals.o: portals.cpp portals.h
prtview.o: prtview.cpp prtview.h
clean:
-rm -f *.o ../../build/plugins/libprtview.$(LIB_EXT)