=================================================================== RCS file: /home/cvs/OpenXM/src/util/Makefile.in,v retrieving revision 1.1 retrieving revision 1.6 diff -u -p -r1.1 -r1.6 --- OpenXM/src/util/Makefile.in 2004/06/14 09:07:32 1.1 +++ OpenXM/src/util/Makefile.in 2006/10/13 11:51:25 1.6 @@ -1,41 +1,48 @@ -# $OpenXM$ -OpenXM_ROOT=../../../OpenXM -OpenXM_bin=$(OpenXM_ROOT)/bin -OpenXM_lib=$(OpenXM_ROOT)/lib -OpenXM_include=$(OpenXM_ROOT)/include +# $OpenXM: OpenXM/src/util/Makefile.in,v 1.5 2006/03/04 07:48:12 takayama Exp $ +#OpenXM_ROOT=../../../OpenXM +prefix=@prefix@ +exec_prefix=@exec_prefix@ +bindir=@bindir@ +libdir=@libdir@ +includedir=@includedir@ CC=@CC@ +CFLAGS=@CFLAGS@ -D_BSD_SOURCE -D_POSIX_C_SOURCE RANLIB=@RANLIB@ -all : oxweave oxreplace libox_pathfinder.a +all : oxweave oxreplace oxgentexi oxgreph libox_pathfinder.a -oxweave : oxweave.c - ${CC} -D_BSD_SOURCE -o oxweave -g oxweave.c - rm -f .install_done -oxreplace : oxreplace.c - ${CC} -D_BSD_SOURCE -o oxreplace -g oxreplace.c - rm -f .install_done +oxweave : oxweave.o + ${CC} -o $@ oxweave.o + +oxreplace : oxreplace.o + ${CC} -o $@ oxreplace.o + +oxgentexi : oxgentexi.o + ${CC} -o $@ oxgentexi.o + +oxgreph : oxgreph.o + ${CC} -o $@ oxgreph.o + libox_pathfinder.a : ox_pathfinder.o ar ru libox_pathfinder.a ox_pathfinder.o ${RANLIB} libox_pathfinder.a - rm -f .install_done -ox_pathfinder.o : ox_pathfinder.c ox_pathfinder.h - ${CC} -D_BSD_SOURCE -D_POSIX_C_SOURCE -c ox_pathfinder.c -test: ox_pathfinder.o test.c - ${CC} -o test -D_BSD_SOURCE -D_POSIX_C_SOURCE test.c ox_pathfinder.o -L${OpenXM_lib} -lgc +ox_pathfinder.o : ox_pathfinder.h +test: ox_pathfinder.o test.o + ${CC} -o $@ test.o ox_pathfinder.o -L${libdir} -lgc + install: all @if [ ! -f ./.install_done ] ; then \ - echo "Installing oxweave, oxreplace, libox_pathfinder.a, ox_pathfinder.h oxfetch.sh" ; \ - install -c -s oxweave oxreplace ${OpenXM_bin} ; \ - install -c -s oxweave ${OpenXM_ROOT}/src/kxx ; \ - cp -f libox_pathfinder.a ${OpenXM_lib} ; \ - cp -f ox_pathfinder.h ${OpenXM_include} ; \ - install -c lndir.sh ${OpenXM_bin} ; \ - install -c oxfetch.sh ${OpenXM_bin} ; \ + echo "Installing oxweave, oxreplace, oxgentexi, oxgreph, libox_pathfinder.a, ox_pathfinder.h oxfetch.sh md5.sh" ; \ + install -c lndir.sh oxfetch.sh md5.sh ${bindir} ; \ + install -c -s oxweave oxreplace oxgentexi oxgreph ${bindir} ; \ + install -c -s oxweave ${prefix}/src/kxx ; \ + install -c libox_pathfinder.a ${libdir} ; \ + install -c ox_pathfinder.h ${includedir} ; \ touch ./.install_done ; \ fi clean: - rm -f .install_done *.o oxweave oxreplace libox_pathfinder.a test + rm -f .install_done *.o oxweave oxreplace oxgentexi libox_pathfinder.a test oxgreph