# $OpenXM: OpenXM/src/util/Makefile.in,v 1.1 2004/06/14 09:07:32 takayama Exp $ OpenXM_ROOT=../../../OpenXM OpenXM_bin=$(OpenXM_ROOT)/bin OpenXM_lib=$(OpenXM_ROOT)/lib OpenXM_include=$(OpenXM_ROOT)/include CC=@CC@ RANLIB=@RANLIB@ all : oxweave oxreplace 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 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 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} ; \ touch ./.install_done ; \ fi clean: rm -f .install_done *.o oxweave oxreplace libox_pathfinder.a test