version 1.2, 2002/04/05 01:28:47 |
version 1.8, 2003/09/08 02:43:47 |
|
|
# $OpenXM: OpenXM/src/util/Makefile,v 1.1 2002/04/05 01:12:09 takayama Exp $ |
# $OpenXM: OpenXM/src/util/Makefile,v 1.7 2003/09/08 01:22:57 takayama Exp $ |
OpenXM_ROOT=../../../OpenXM |
OpenXM_ROOT=../../../OpenXM |
OpenXM_bin=$(OpenXM_ROOT)/bin |
OpenXM_bin=$(OpenXM_ROOT)/bin |
OpenXM_lib=$(OpenXM_ROOT)/lib |
OpenXM_lib=$(OpenXM_ROOT)/lib |
|
OpenXM_include=$(OpenXM_ROOT)/include |
CC=gcc |
CC=gcc |
|
|
all : oxweave |
all : oxweave oxreplace libox_pathfinder.a |
|
|
oxweave : oxweave.c |
oxweave : oxweave.c |
gcc -D_BSD_SOURCE -o oxweave -g 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_SOURCE -c ox_pathfinder.c |
|
|
|
|
install: all |
install: all |
if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ |
@if [ ! -f ./.install_done ] ; then \ |
cp -f oxweave.exe ${OpenXM_bin} ; \ |
echo "Installing oxweave, oxreplace, libox_pathfinder.a, ox_pathfinder.h" ; \ |
cp -f oxweave.exe ${OpenXM_ROOT}/src/kxx ; \ |
install oxweave oxreplace ${OpenXM_bin} ; \ |
else \ |
install oxweave ${OpenXM_ROOT}/src/kxx ; \ |
cp -f oxweave ${OpenXM_bin} ; \ |
cp -f libox_pathfinder.a ${OpenXM_lib} ; \ |
cp -f oxweave ${OpenXM_ROOT}/src/kxx ; \ |
cp -f ox_pathfinder.h ${OpenXM_include} ; \ |
|
cp -f lndir.sh ${OpenXM_bin} ; \ |
|
chmod 755 ${OpenXM_bin}/lndir.sh ; \ |
|
touch ./.install_done ; \ |
fi |
fi |
|
|
|
clean: |
|
rm -f .install_done *.o oxweave oxreplace libox_pathfinder.a |