Annotation of OpenXM/src/util/Makefile, Revision 1.12
1.12 ! takayama 1: # $OpenXM: OpenXM/src/util/Makefile,v 1.11 2003/11/16 07:14:11 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.4 takayama 12: oxreplace : oxreplace.c
13: gcc -D_BSD_SOURCE -o oxreplace -g oxreplace.c
1.5 takayama 14: libox_pathfinder.a : ox_pathfinder.o
15: ar ru libox_pathfinder.a ox_pathfinder.o
16: ox_pathfinder.o : ox_pathfinder.c ox_pathfinder.h
1.9 takayama 17: $(CC) -D_BSD_SOURCE -D_POSIX_C_SOURCE -c ox_pathfinder.c
1.1 takayama 18:
1.11 takayama 19: test: ox_pathfinder.o test.c
20: $(CC) -o test -D_BSD_SOURCE -D_POSIX_C_SOURCE test.c ox_pathfinder.o -L${OpenXM_lib} -lgc
21:
1.1 takayama 22: install: all
1.5 takayama 23: @if [ ! -f ./.install_done ] ; then \
1.12 ! takayama 24: echo "Installing oxweave, oxreplace, libox_pathfinder.a, ox_pathfinder.h oxfetch.sh" ; \
1.7 takayama 25: install oxweave oxreplace ${OpenXM_bin} ; \
26: install oxweave ${OpenXM_ROOT}/src/kxx ; \
1.5 takayama 27: cp -f libox_pathfinder.a ${OpenXM_lib} ; \
28: cp -f ox_pathfinder.h ${OpenXM_include} ; \
1.10 ohara 29: install lndir.sh ${OpenXM_bin} ; \
30: install oxfetch.sh ${OpenXM_bin} ; \
1.5 takayama 31: touch ./.install_done ; \
1.2 takayama 32: fi
1.5 takayama 33:
34: clean:
1.11 takayama 35: rm -f .install_done *.o oxweave oxreplace libox_pathfinder.a test
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>