X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=Makefile;h=55aa80b3b50a4177231bc4354a72b0ca3e45e2c5;hp=93fe6813eec78a1eb54bc3b668a6d166d9125357;hb=8a1580721a939c3edea2ce1b342148e94ad2b814;hpb=be68706254c62406d4924fffa7f43d2b1c17f52e diff --git a/Makefile b/Makefile index 93fe681..55aa80b 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,13 @@ # $Id$ CFLAGS = -Igensrc -ggdb +CXXFLAGS = -Igensrc -ggdb -all: glwrap.so gldump +PACKAGES_gldbg = mspcore mspstrings mspio mspfs +CXXFLAGS_gldbg = $(shell pkg-config --cflags $(PACKAGES_gldbg)) +LIBS_gldbg = $(shell pkg-config --libs $(PACKAGES_gldbg)) + +all: glwrap.so gldump gldbg glwrap.so: source/glwrap.o $(CC) -shared -o $@ $^ $(LIBS) $(LDFLAGS) @@ -10,11 +15,17 @@ glwrap.so: source/glwrap.o gldump: source/gldecoder.o source/gldump.o source/glprint.o $(CC) -o $@ $^ $(LIBS) $(LDFLAGS) +gldbg: source/gldbg.o source/gldecoder.o source/glprint.o + $(CXX) -o $@ $^ $(LIBS_gldbg) $(LIBS) $(LDFLAGS) + source/glwrap.o: source/functions.h gensrc/functions.enum gensrc/glwrap.funcs source/gldecoder.o: source/functions.h gensrc/gldecoder.struct gensrc/gldecoder.funcs gensrc/gldecoder.funcs source/gldump.o: source/gldecoder.h gensrc/gldecoder.struct source/glprint.h source/glprint.o: gensrc/glprint.funcs gensrc/gldecoder.struct +source/gldbg.o: source/gldbg.cpp source/gldbg.h source/gldecoder.h source/glprint.h + $(CXX) -c $(CXXFLAGS) $(CXXFLAGS_gldbg) -o $@ $< + gensrc/functions.enum gensrc/gldecoder.funcs gensrc/gldecoder.struct gensrc/glwrap.funcs gensrc/glprint.funcs: gensrc/.created genwrap.py gl.spec gl.tm python ./genwrap.py