]> git.llucax.com Git - software/bife/bife++.git/blobdiff - Makefile
- Moved libbife to it's own directory.
[software/bife/bife++.git] / Makefile
index 70a59e603cc9660d5ac4febdeaadfaf045d68c00..fe31c00ca47cca3ded0f1d47087b6f62f40577e1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,18 @@
-CPPFLAGS=-g3
 
-all: main
+LIBBIFE_DIR=libbife
+
+DEBUG=-Wall -g3 -DDEBUG
+CPPFLAGS=-I/usr/include/libxml++-1.0 -I/usr/include/libxml2 $(DEBUG)
+LDFLAGS=-L$(LIBBIFE_DIR) -lxml++-0.1 -ldl -lbife
+
+all: parser_test
+
+# Parser example.
+parser.o: parser.h parser.cpp
+parser_test.o: parser_test.cpp
+
+parser_test: parser.o parser_test.o
+
+clean:
+       @rm -f *.o parser_test
 
-main: hit.o ghit.o chit.o