=================================================================== RCS file: /home/cvs/OpenXM/src/util/Attic/Makefile,v retrieving revision 1.4 retrieving revision 1.13 diff -u -p -r1.4 -r1.13 --- OpenXM/src/util/Attic/Makefile 2003/03/26 04:45:37 1.4 +++ OpenXM/src/util/Attic/Makefile 2003/12/01 11:21:09 1.13 @@ -1,26 +1,38 @@ -# $OpenXM: OpenXM/src/util/Makefile,v 1.3 2003/03/06 10:36:04 ohara Exp $ +# $OpenXM: OpenXM/src/util/Makefile,v 1.12 2003/11/17 03:00:59 takayama Exp $ OpenXM_ROOT=../../../OpenXM OpenXM_bin=$(OpenXM_ROOT)/bin OpenXM_lib=$(OpenXM_ROOT)/lib +OpenXM_include=$(OpenXM_ROOT)/include CC=gcc -all : oxweave oxreplace +all : oxweave oxreplace libox_pathfinder.a oxweave : oxweave.c gcc -D_BSD_SOURCE -o oxweave -g oxweave.c + rm -f .install_done oxreplace : oxreplace.c gcc -D_BSD_SOURCE -o oxreplace -g oxreplace.c + rm -f .install_done +libox_pathfinder.a : ox_pathfinder.o + ar ru libox_pathfinder.a ox_pathfinder.o + 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 install: all - if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ - cp -f oxweave.exe ${OpenXM_bin} ; \ - cp -f oxweave.exe ${OpenXM_ROOT}/src/kxx ; \ - cp -f oxreplace.exe ${OpenXM_bin} ; \ - else \ - cp -f oxweave ${OpenXM_bin} ; \ - cp -f oxweave ${OpenXM_ROOT}/src/kxx ; \ - cp -f oxreplace ${OpenXM_bin} ; \ + @if [ ! -f ./.install_done ] ; then \ + echo "Installing oxweave, oxreplace, libox_pathfinder.a, ox_pathfinder.h oxfetch.sh" ; \ + install oxweave oxreplace ${OpenXM_bin} ; \ + install oxweave ${OpenXM_ROOT}/src/kxx ; \ + cp -f libox_pathfinder.a ${OpenXM_lib} ; \ + cp -f ox_pathfinder.h ${OpenXM_include} ; \ + install lndir.sh ${OpenXM_bin} ; \ + install oxfetch.sh ${OpenXM_bin} ; \ + touch ./.install_done ; \ fi - cp -f lndir.sh ${OpenXM_bin} - chmod 755 ${OpenXM_bin}/lndir.sh + +clean: + rm -f .install_done *.o oxweave oxreplace libox_pathfinder.a test