version 1.1, 2004/06/14 09:07:32 |
version 1.4, 2005/04/04 12:38:32 |
|
|
# $OpenXM$ |
# $OpenXM: OpenXM/src/util/Makefile.in,v 1.3 2004/12/14 17:39:20 ohara Exp $ |
OpenXM_ROOT=../../../OpenXM |
#OpenXM_ROOT=../../../OpenXM |
OpenXM_bin=$(OpenXM_ROOT)/bin |
prefix=@prefix@ |
OpenXM_lib=$(OpenXM_ROOT)/lib |
exec_prefix=@exec_prefix@ |
OpenXM_include=$(OpenXM_ROOT)/include |
bindir=@bindir@ |
|
libdir=@libdir@ |
|
includedir=@includedir@ |
|
|
CC=@CC@ |
CC=@CC@ |
|
CFLAGS=@CFLAGS@ -D_BSD_SOURCE -D_POSIX_C_SOURCE |
RANLIB=@RANLIB@ |
RANLIB=@RANLIB@ |
|
|
all : oxweave oxreplace libox_pathfinder.a |
all : oxweave oxreplace oxgentexi libox_pathfinder.a |
|
|
oxweave : oxweave.c |
oxweave : oxweave.o |
${CC} -D_BSD_SOURCE -o oxweave -g oxweave.c |
${CC} -o $@ oxweave.o |
rm -f .install_done |
|
oxreplace : oxreplace.c |
oxreplace : oxreplace.o |
${CC} -D_BSD_SOURCE -o oxreplace -g oxreplace.c |
${CC} -o $@ oxreplace.o |
rm -f .install_done |
|
|
oxgentexi : oxgentexi.o |
|
${CC} -o $@ oxgentexi.o |
|
|
libox_pathfinder.a : ox_pathfinder.o |
libox_pathfinder.a : ox_pathfinder.o |
ar ru libox_pathfinder.a ox_pathfinder.o |
ar ru libox_pathfinder.a ox_pathfinder.o |
${RANLIB} libox_pathfinder.a |
${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 |
ox_pathfinder.o : ox_pathfinder.h |
${CC} -o test -D_BSD_SOURCE -D_POSIX_C_SOURCE test.c ox_pathfinder.o -L${OpenXM_lib} -lgc |
|
|
|
|
test: ox_pathfinder.o test.o |
|
${CC} -o $@ test.o ox_pathfinder.o -L${libdir} -lgc |
|
|
install: all |
install: all |
@if [ ! -f ./.install_done ] ; then \ |
@if [ ! -f ./.install_done ] ; then \ |
echo "Installing oxweave, oxreplace, libox_pathfinder.a, ox_pathfinder.h oxfetch.sh" ; \ |
echo "Installing oxweave, oxreplace, oxgentexi libox_pathfinder.a, ox_pathfinder.h oxfetch.sh" ; \ |
install -c -s oxweave oxreplace ${OpenXM_bin} ; \ |
install -c lndir.sh oxfetch.sh ${bindir} ; \ |
install -c -s oxweave ${OpenXM_ROOT}/src/kxx ; \ |
install -c -s oxweave oxreplace oxgentexi ${bindir} ; \ |
cp -f libox_pathfinder.a ${OpenXM_lib} ; \ |
install -c -s oxweave ${prefix}/src/kxx ; \ |
cp -f ox_pathfinder.h ${OpenXM_include} ; \ |
install -c libox_pathfinder.a ${libdir} ; \ |
install -c lndir.sh ${OpenXM_bin} ; \ |
install -c ox_pathfinder.h ${includedir} ; \ |
install -c oxfetch.sh ${OpenXM_bin} ; \ |
|
touch ./.install_done ; \ |
touch ./.install_done ; \ |
fi |
fi |
|
|
clean: |
clean: |
rm -f .install_done *.o oxweave oxreplace libox_pathfinder.a test |
rm -f .install_done *.o oxweave oxreplace oxgentexi libox_pathfinder.a test |