Annotation of OpenXM/src/util/Makefile, Revision 1.5
1.5 ! takayama 1: # $OpenXM: OpenXM/src/util/Makefile,v 1.4 2003/03/26 04:45:37 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
! 17: $(CC) -c ox_pathfinder.c
1.1 takayama 18:
19: install: all
1.5 ! takayama 20: @if [ ! -f ./.install_done ] ; then \
! 21: echo "Installing oxweave, oxreplace, libox_pathfinder.a, ox_pathfinder.h" ; \
1.2 takayama 22: if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
23: cp -f oxweave.exe ${OpenXM_bin} ; \
24: cp -f oxweave.exe ${OpenXM_ROOT}/src/kxx ; \
1.4 takayama 25: cp -f oxreplace.exe ${OpenXM_bin} ; \
1.2 takayama 26: else \
27: cp -f oxweave ${OpenXM_bin} ; \
28: cp -f oxweave ${OpenXM_ROOT}/src/kxx ; \
1.4 takayama 29: cp -f oxreplace ${OpenXM_bin} ; \
1.5 ! takayama 30: fi ; \
! 31: cp -f libox_pathfinder.a ${OpenXM_lib} ; \
! 32: cp -f ox_pathfinder.h ${OpenXM_include} ; \
! 33: cp -f lndir.sh ${OpenXM_bin} ; \
! 34: chmod 755 ${OpenXM_bin}/lndir.sh ; \
! 35: touch ./.install_done ; \
1.2 takayama 36: fi
1.5 ! takayama 37:
! 38: clean:
! 39: rm -f .install_done *.o oxweave oxreplace libox_pathfinder.a
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>