]> git.tdb.fi Git - gldbg.git/blobdiff - Makefile
Remove dependencies to MSP libraries to make compiling on embedded platforms easier
[gldbg.git] / Makefile
index 4b171977e024674198ffa12efe6a22c34d90774f..2a7175a827ec18fb26b251ceb6c5372a0ff7b8c5 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 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