version 1.1, 2004/06/14 09:07:32 |
version 1.8, 2009/02/22 15:20:17 |
|
|
# $OpenXM$ |
# $OpenXM: OpenXM/src/util/Makefile.in,v 1.7 2009/02/22 08:16:43 takayama 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 |
INSTALL = install -c |
|
|
oxweave : oxweave.c |
BIN = oxweave oxreplace oxgentexi oxgreph oxhtmlhelp |
${CC} -D_BSD_SOURCE -o oxweave -g oxweave.c |
LIB = libox_pathfinder.a |
rm -f .install_done |
|
oxreplace : oxreplace.c |
all : all-bin all-lib |
${CC} -D_BSD_SOURCE -o oxreplace -g oxreplace.c |
|
rm -f .install_done |
all-bin: ${BIN} |
|
all-lib: ${LIB} |
|
|
|
oxweave : oxweave.o |
|
${CC} -o $@ oxweave.o |
|
|
|
oxreplace : oxreplace.o |
|
${CC} -o $@ oxreplace.o |
|
|
|
oxgentexi : oxgentexi.o |
|
${CC} -o $@ oxgentexi.o |
|
|
|
oxgreph : oxgreph.o |
|
${CC} -o $@ oxgreph.o |
|
|
|
oxhtmlhelp : oxhtmlhelp.o |
|
${CC} -o $@ oxhtmlhelp.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 |
|
|
|
install: all |
test: ox_pathfinder.o test.o |
@if [ ! -f ./.install_done ] ; then \ |
${CC} -o $@ test.o ox_pathfinder.o -L${libdir} -lgc |
echo "Installing oxweave, oxreplace, libox_pathfinder.a, ox_pathfinder.h oxfetch.sh" ; \ |
|
install -c -s oxweave oxreplace ${OpenXM_bin} ; \ |
install-bin: all-bin |
install -c -s oxweave ${OpenXM_ROOT}/src/kxx ; \ |
@if [ ! -f ./.install_bin_done ] ; then \ |
cp -f libox_pathfinder.a ${OpenXM_lib} ; \ |
echo "Installing" ${BIN} "oxfetch.sh md5.sh" ; \ |
cp -f ox_pathfinder.h ${OpenXM_include} ; \ |
${INSTALL} lndir.sh oxfetch.sh md5.sh ${bindir} ; \ |
install -c lndir.sh ${OpenXM_bin} ; \ |
${INSTALL} -s ${BIN} ${bindir} ; \ |
install -c oxfetch.sh ${OpenXM_bin} ; \ |
${INSTALL} -s oxweave ${prefix}/src/kxx ; \ |
touch ./.install_done ; \ |
touch ./.install_bin_done ; \ |
fi |
fi |
|
|
|
install-lib: all-lib |
|
@if [ ! -f ./.install_lib_done ] ; then \ |
|
echo "Installing libox_pathfinder.a, ox_pathfinder.h" ; \ |
|
${INSTALL} libox_pathfinder.a ${libdir} ; \ |
|
${INSTALL} ox_pathfinder.h ${includedir} ; \ |
|
touch ./.install_lib_done ; \ |
|
fi |
|
|
|
install: install-bin install-lib |
|
|
clean: |
clean: |
rm -f .install_done *.o oxweave oxreplace libox_pathfinder.a test |
rm -f .install_*_done *.o ${BIN} ${LIB} test |