X-Git-Url: https://git.llucax.com/software/bife/bife%20%20.git/blobdiff_plain/e3ac7ebf66f6d10d686c1c572ec81d625f0598e6..993710aae023efaccb75b56eee2347c340bdc71d:/Makefile/software/bife/bife++.git/blobdiff_plain/e3ac7ebf66f6d10d686c1c572ec81d625f0598e6..993710aae023efaccb75b56eee2347c340bdc71d:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 3809eb7..fe31c00 100644 --- a/Makefile +++ b/Makefile @@ -1,55 +1,18 @@ -DEBUG=-g3 -DDEBUG -Wall -#CPPFLAGS=-g3 -Wall -I/usr/include/libxml++-1.0 -I/usr/include/libxml2 -DDEBUG -#CPPFLAGS=-O3 -Wall -I/usr/include/libxml++-1.0 -I/usr/include/libxml2 +LIBBIFE_DIR=libbife -TAGETS=hit.o ghit.o chit.o widget.o container.o fallback.o string.o +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 -main: $(TAGETS) - - -CPPFLAGS=-fPIC $(DEBUG) - -hit.o: hit.h hit.cpp -ghit.o: hit.o ghit.h ghit.cpp -chit.o: ghit.o chit.h chit.cpp - -widget.o: widget.h widget.cpp -string.o: widget.o string.h string.cpp -container.o: widget.o container.h container.cpp -fallback.o: container.o fallback.h fallback.cpp - -translate.o: translate.h translate.cpp -translate_loader.o: translate_loader.cpp -#.o: .o .h .cpp - -# LIBBIFE -LIBBIFE_TARGETS=hit.o ghit.o chit.o widget.o string.o container.o fallback.o -libbife.so: $(LIBBIFE_TARGETS) - $(CXX) $(DEBUG) -Wl,-soname,libbife.so -shared -o libbife.so $(LIBBIFE_TARGETS) - -# TRANSLATE FALLBACK PLUG-IN -TRANSLATE_TARGETS=translate.o translate_loader.o -translate.so: libbife.so $(TRANSLATE_TARGETS) - $(CXX) $(DEBUG) -L. -lbife -Wl,-soname,translate.so -shared -o translate.so $(TRANSLATE_TARGETS) - - # Parser example. -PARSER_FLAGS=-I/usr/include/libxml++-1.0 -I/usr/include/libxml2 parser.o: parser.h parser.cpp - $(CXX) $(DEBUG) $(PARSER_FLAGS) -c parser.cpp parser_test.o: parser_test.cpp - $(CXX) $(DEBUG) $(PARSER_FLAGS) -c parser_test.cpp -PARSER_TARGETS=parser.o parser_test.o -parser_test: translate.so $(PARSER_TARGETS) - $(CXX) $(DEBUG) $(PARSER_FLAGS) -L. -lxml++-0.1 -ldl -lbife -o parser_test $(PARSER_TARGETS) - @echo - @echo ---------------------------------------------- - @echo export LD_LIBRARY_PATH=. - @echo to use ./parser_test +parser_test: parser.o parser_test.o clean: - @rm -f *.o main parser_test + @rm -f *.o parser_test +