Annotation of OpenXM/src/util/Makefile, Revision 1.14
1.14 ! ohara 1: # $OpenXM: OpenXM/src/util/Makefile,v 1.13 2003/12/01 11:21:09 takayama Exp $
1.1 takayama 2: OpenXM_ROOT=../../../OpenXM
3: OpenXM_bin=$(OpenXM_ROOT)/bin
4: OpenXM_lib=$(OpenXM_ROOT)/lib
1.5 takayama 5: OpenXM_include=$(OpenXM_ROOT)/include
1.1 takayama 6: CC=gcc
7:
1.5 takayama 8: all : oxweave oxreplace libox_pathfinder.a
1.1 takayama 9:
10: oxweave : oxweave.c
11: gcc -D_BSD_SOURCE -o oxweave -g oxweave.c
1.13 takayama 12: rm -f .install_done
1.4 takayama 13: oxreplace : oxreplace.c
14: gcc -D_BSD_SOURCE -o oxreplace -g oxreplace.c
1.13 takayama 15: rm -f .install_done
1.5 takayama 16: libox_pathfinder.a : ox_pathfinder.o
17: ar ru libox_pathfinder.a ox_pathfinder.o
1.13 takayama 18: rm -f .install_done
1.5 takayama 19: ox_pathfinder.o : ox_pathfinder.c ox_pathfinder.h
1.9 takayama 20: $(CC) -D_BSD_SOURCE -D_POSIX_C_SOURCE -c ox_pathfinder.c
1.1 takayama 21:
1.11 takayama 22: test: ox_pathfinder.o test.c
23: $(CC) -o test -D_BSD_SOURCE -D_POSIX_C_SOURCE test.c ox_pathfinder.o -L${OpenXM_lib} -lgc
24:
1.1 takayama 25: install: all
1.5 takayama 26: @if [ ! -f ./.install_done ] ; then \
1.12 takayama 27: echo "Installing oxweave, oxreplace, libox_pathfinder.a, ox_pathfinder.h oxfetch.sh" ; \
1.14 ! ohara 28: install -c -s oxweave oxreplace ${OpenXM_bin} ; \
! 29: install -c -s oxweave ${OpenXM_ROOT}/src/kxx ; \
1.5 takayama 30: cp -f libox_pathfinder.a ${OpenXM_lib} ; \
31: cp -f ox_pathfinder.h ${OpenXM_include} ; \
1.14 ! ohara 32: install -c lndir.sh ${OpenXM_bin} ; \
! 33: install -c oxfetch.sh ${OpenXM_bin} ; \
1.5 takayama 34: touch ./.install_done ; \
1.2 takayama 35: fi
1.5 takayama 36:
37: clean:
1.11 takayama 38: rm -f .install_done *.o oxweave oxreplace libox_pathfinder.a test
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>