Makefile
changeset 3 38269b62d856
parent 1 5ef6ffc1bc7f
child 6 f0c87fb62b66
equal deleted inserted replaced
2:c9188930a16f 3:38269b62d856
     1 
     1 
     2 include config.mk
     2 include config.mk
     3 
     3 
     4 all: cos-dbupdate cos-search scan
     4 all: cos-dbupdate cos-search scan extractors
     5 
     5 
     6 scan: ${OBJS}
     6 scan: ${OBJS}
     7 	@echo CC -o $@
     7 	@echo C++ -o $@
     8 	@g++ ${OBJS} ${LDFLAGS} -o $@
     8 	@${CXX} ${OBJS} ${LDFLAGS} -o $@
     9 
     9 
    10 clean:
    10 clean:
    11 	rm -f ${OBJS} scan
    11 	rm -f ${OBJS} cos-dbupdate cos-search scan
    12 
    12 
    13 walker.o: walker.cxx walker.h
    13 walker.o: walker.cxx walker.h
    14 	@g++ -c ${CFLAGS} walker.cxx
    14 	@echo C++ $<
    15 
    15 	@${CXX} -c ${CFLAGS} walker.cxx
    16 #magi.o: magi.cxx walker.h
       
    17 #	@g++ -c ${CFLAGS} magi.cxx
       
    18 
    16 
    19 scan.o: walker.h scan.cxx
    17 scan.o: walker.h scan.cxx
    20 	@g++ -c ${CFLAGS} scan.cxx
    18 	@echo C++ $<
    21 
    19 	@${CXX} -c ${CFLAGS} scan.cxx
    22 
    20 
    23 cos-dbupdate: cos-dbupdate.cxx
    21 cos-dbupdate: cos-dbupdate.cxx
    24 	g++ -O0 -g cos-dbupdate.cxx -o cos-dbupdate ${CFLAGS} ${LDFLAGS}
    22 	@echo C++ $<
       
    23 	@${CXX} -O0 -g cos-dbupdate.cxx -o cos-dbupdate ${CFLAGS} ${LDFLAGS}
    25 
    24 
    26 cos-search: cos-search.cxx
    25 cos-search: cos-search.cxx
    27 	g++ -O0 -g cos-search.cxx -o cos-search ${CFLAGS} ${LDFLAGS}
    26 	@echo C++ $<
       
    27 	@${CXX} -O0 -g cos-search.cxx -o cos-search ${CFLAGS} ${LDFLAGS}