vmap/libs/uilib/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

22 lines
456 B
Makefile

# WorldSpawn Makefile
GTK_CFLAGS=$(shell pkg-config --cflags gtk+-2.0)
GLIB_CFLAGS=$(shell pkg-config --cflags glib-2.0)
LIB_CFLAGS=$(CFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) -I../../include -I../../libs -DGTK_TARGET=2
DO_CXX=$(CXX) -static -fPIC $(LIB_CFLAGS) -o $@ -c $<
.cpp.o:
$(DO_CXX)
WS_OBJS = \
uilib.o
# binary target
../libuilib.a: $(WS_OBJS)
ar rcs $@ $(WS_OBJS)
# object files
uilib.o: uilib.cpp uilib.h
clean:
-rm -f *.o ../libuilib.a