X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=Makefile;h=ca938f26fd46ba1bcabfa46c3737f97267cdead3;hp=4b171977e024674198ffa12efe6a22c34d90774f;hb=HEAD;hpb=a51c2557622ea93944e24f58845609526eb46ec1 diff --git a/Makefile b/Makefile index 4b17197..ca938f2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -# $Id$ - ifeq ($(FLAVOR),) FLAVOR := gl endif @@ -8,7 +6,7 @@ CPPFLAGS := -I. -Isource -Iflavors/$(FLAVOR)/source CFLAGS := -ggdb -Wall -Wextra CXXFLAGS := $(CFLAGS) -PACKAGES_gldbg := mspcore mspstrings mspio mspfs libpng12 +PACKAGES_gldbg := libpng12 FLAVOR_ROOT := flavors/$(FLAVOR) VPATH := $(FLAVOR_ROOT) @@ -26,9 +24,11 @@ SOURCES_glwrap := source/glwrap.c \ source/packet.c \ source/tmpalloc.c SOURCES_gldump := source/gldump.c -SOURCES_gldbg := source/gldbg.cpp \ +SOURCES_gldbg := source/main.cpp \ + source/gldbg.cpp \ source/commandinterpreter.cpp \ source/process.cpp \ + source/strformat.cpp \ source/tool.cpp SOURCES_tracer := source/tracer.cpp SOURCES_profiler := source/profiler.cpp @@ -36,7 +36,8 @@ SOURCES_inspector := source/inspector.cpp \ source/glstate.cpp \ source/arraystate.cpp \ source/texturestate.cpp \ - source/bufferstate.cpp + source/bufferstate.cpp \ + source/programstate.cpp SOURCES_grabber := source/grabber.cpp \ source/grabber_flavor.cpp TEMPLATES := source/functions.enum.t \ @@ -70,8 +71,9 @@ OBJECTS_all := $(call objs,$(SOURCES_all)) DEPS_all := $(call deps,$(SOURCES_all) $(TEMPLATES)) $(OBJECTS_gldbg): CXXFLAGS += $(shell pkg-config --cflags $(PACKAGES_gldbg)) -gldbg: LIBS += $(shell pkg-config --libs $(PACKAGES_gldbg)) -lreadline +gldbg: LIBS += $(shell pkg-config --libs $(PACKAGES_gldbg)) -lreadline -lrt gldump gldbg: LIBS += ./libgldbg.a +$(OBJECTS_glwrap): CFLAGS += -fPIC glwrap.so: LDFLAGS += -s glwrap.so: LIBS += -ldl