]> git.tdb.fi Git - gldbg.git/blobdiff - Makefile
Add gldQueryViewport and gldReadPixels calls
[gldbg.git] / Makefile
index 6313e0fb8477387beb171fcb9461b274473d722a..4b171977e024674198ffa12efe6a22c34d90774f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ CPPFLAGS := -I. -Isource -Iflavors/$(FLAVOR)/source
 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)
@@ -37,6 +37,8 @@ SOURCES_inspector := source/inspector.cpp \
        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 \
@@ -71,6 +73,7 @@ $(OBJECTS_gldbg): CXXFLAGS += $(shell pkg-config --cflags $(PACKAGES_gldbg))
 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)