X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=2a7175a827ec18fb26b251ceb6c5372a0ff7b8c5;hp=4b171977e024674198ffa12efe6a22c34d90774f;hb=81f1ddee977603293d0c5710f2db69130dac6a96;hpb=a51c2557622ea93944e24f58845609526eb46ec1 diff --git a/Makefile b/Makefile index 4b17197..2a7175a 100644 --- 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 libpng12 +PACKAGES_gldbg := libpng12 FLAVOR_ROOT := flavors/$(FLAVOR) VPATH := $(FLAVOR_ROOT) @@ -26,9 +26,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 @@ -70,7 +72,7 @@ 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 glwrap.so: LDFLAGS += -s glwrap.so: LIBS += -ldl