CFLAGS := -ggdb -Wall -Wextra
CXXFLAGS := $(CFLAGS)
-PACKAGES_gldbg := mspcore mspstrings mspio mspfs
+PACKAGES_gldbg := mspcore mspstrings mspio mspfs libpng12
FLAVOR_ROOT := flavors/$(FLAVOR)
VPATH := $(FLAVOR_ROOT)
source/arraystate.cpp \
source/texturestate.cpp \
source/bufferstate.cpp
+SOURCES_grabber := source/grabber.cpp \
+ source/grabber_flavor.cpp
TEMPLATES := source/functions.enum.t \
source/functions.table.t \
source/gldecoder.funcs.t \
gldbg: LIBS += $(shell pkg-config --libs $(PACKAGES_gldbg)) -lreadline
gldump gldbg: LIBS += ./libgldbg.a
glwrap.so: LDFLAGS += -s
+glwrap.so: LIBS += -ldl
glwrap.so: $(OBJECTS_glwrap) glwrap.ld
$(CC) -shared -o $@ $^ $(LIBS) $(LDFLAGS)