2 DEBUG=-g3 -DDEBUG -Wall
3 #CPPFLAGS=-g3 -Wall -I/usr/include/libxml++-1.0 -I/usr/include/libxml2 -DDEBUG
4 #CPPFLAGS=-O3 -Wall -I/usr/include/libxml++-1.0 -I/usr/include/libxml2
6 TAGETS=hit.o ghit.o chit.o widget.o container.o fallback.o string.o
13 CPPFLAGS=-fPIC $(DEBUG)
16 ghit.o: hit.o ghit.h ghit.cpp
17 chit.o: ghit.o chit.h chit.cpp
19 widget.o: widget.h widget.cpp
20 string.o: widget.o string.h string.cpp
21 container.o: widget.o container.h container.cpp
22 fallback.o: container.o fallback.h fallback.cpp
24 translate.o: translate.h translate.cpp
25 translate_loader.o: translate_loader.cpp
29 LIBBIFE_TARGETS=hit.o ghit.o chit.o widget.o string.o container.o fallback.o
30 libbife.so: $(LIBBIFE_TARGETS)
31 $(CXX) $(DEBUG) -Wl,-soname,libbife.so -shared -o libbife.so $(LIBBIFE_TARGETS)
33 # TRANSLATE FALLBACK PLUG-IN
34 TRANSLATE_TARGETS=translate.o translate_loader.o
35 translate.so: libbife.so $(TRANSLATE_TARGETS)
36 $(CXX) $(DEBUG) -L. -lbife -Wl,-soname,translate.so -shared -o translate.so $(TRANSLATE_TARGETS)
40 PARSER_FLAGS=-I/usr/include/libxml++-1.0 -I/usr/include/libxml2
41 parser.o: parser.h parser.cpp
42 $(CXX) $(DEBUG) $(PARSER_FLAGS) -c parser.cpp
43 parser_test.o: parser_test.cpp
44 $(CXX) $(DEBUG) $(PARSER_FLAGS) -c parser_test.cpp
46 PARSER_TARGETS=parser.o parser_test.o
47 parser_test: translate.so $(PARSER_TARGETS)
48 $(CXX) $(DEBUG) $(PARSER_FLAGS) -L. -lxml++-0.1 -ldl -lbife -o parser_test $(PARSER_TARGETS)
50 @echo ----------------------------------------------
51 @echo export LD_LIBRARY_PATH=.
52 @echo to use ./parser_test
55 @rm -f *.o main parser_test