=================================================================== RCS file: /home/cvs/OpenXM/src/util/Attic/Makefile,v retrieving revision 1.1 retrieving revision 1.10 diff -u -p -r1.1 -r1.10 --- OpenXM/src/util/Attic/Makefile 2002/04/05 01:12:09 1.1 +++ OpenXM/src/util/Attic/Makefile 2003/11/14 02:58:20 1.10 @@ -1,14 +1,32 @@ -# $OpenXM$ +# $OpenXM: OpenXM/src/util/Makefile,v 1.9 2003/09/08 06:21:08 takayama Exp $ OpenXM_ROOT=../../../OpenXM OpenXM_bin=$(OpenXM_ROOT)/bin OpenXM_lib=$(OpenXM_ROOT)/lib +OpenXM_include=$(OpenXM_ROOT)/include CC=gcc -all : oxweave +all : oxweave oxreplace libox_pathfinder.a oxweave : oxweave.c gcc -D_BSD_SOURCE -o oxweave -g oxweave.c +oxreplace : oxreplace.c + gcc -D_BSD_SOURCE -o oxreplace -g oxreplace.c +libox_pathfinder.a : ox_pathfinder.o + ar ru libox_pathfinder.a ox_pathfinder.o +ox_pathfinder.o : ox_pathfinder.c ox_pathfinder.h + $(CC) -D_BSD_SOURCE -D_POSIX_C_SOURCE -c ox_pathfinder.c - install: all - cp oxweave ${OpenXM_bin} + @if [ ! -f ./.install_done ] ; then \ + echo "Installing oxweave, oxreplace, libox_pathfinder.a, ox_pathfinder.h" ; \ + 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 + +clean: + rm -f .install_done *.o oxweave oxreplace libox_pathfinder.a