Annotation of OpenXM/bin/Makefile, Revision 1.7
1.7 ! takayama 1: # $OpenXM: OpenXM/bin/Makefile,v 1.6 2000/01/19 09:43:53 takayama Exp $
1.1 maekawa 2:
3: LIBDIR=../lib
1.5 noro 4: FEPLINUX=fep.linux
5: FEPFBSD=fep.fbsd
1.4 maekawa 6: PHC=lin_phcv2p
1.6 takayama 7: RM=rm
1.1 maekawa 8:
1.6 takayama 9: configure: $(FEPLINUX) $(FEPFBSD) $(PHC)
10: @if [ "`uname`" = "Linux" ]; then \
11: rm -f fep phc ; \
12: ln -f -s $(FEPLINUX) fep ; \
13: ln -f -s $(PHC) phc ; \
1.7 ! takayama 14: echo "Linux binary generation: fep, phc" ; \
1.6 takayama 15: else \
1.7 ! takayama 16: echo "Not Linux" ; \
! 17: fi
! 18: -@if [ "`uname`" = "FreeBSD" ]; then \
! 19: rm -f fep phc ; \
! 20: ln -f -s $(FEPFBSD) fep ; \
! 21: ln -f -s $(PHC) phc ; \
! 22: brandelf -t Linux ./phc ; \
! 23: echo "FreeBSD binary generation: fep and phc. Linux Emulation is requied to execute phc." ; \
! 24: else \
! 25: echo "Not FreeBSD" ; \
1.6 takayama 26: fi
27:
28: rm -f asir
29: ln -f -s $(LIBDIR)/asir/ox_asir asir
30:
31: $(FEPLINUX) : $(FEPLINUX).gz.uuencoded
1.5 noro 32: @if [ -f $(FEPLINUX).gz.uuencoded ]; then \
33: uudecode $(FEPLINUX).gz.uuencoded ; \
34: gzip -d $(FEPLINUX).gz ; \
35: chmod +x $(FEPLINUX) ; \
36: fi
37:
1.6 takayama 38: $(FEPFBSD) : $(FEPFBSD).gz.uuencoded
1.5 noro 39: @if [ -f $(FEPFBSD).gz.uuencoded ]; then \
40: uudecode $(FEPFBSD).gz.uuencoded ; \
41: gzip -d $(FEPFBSD).gz ; \
42: chmod +x $(FEPFBSD) ; \
1.1 maekawa 43: fi
44:
1.6 takayama 45: $(PHC) : $(PHC).gz.uuencoded
1.4 maekawa 46: @if [ -f $(PHC).gz.uuencoded ]; then \
1.5 noro 47: uudecode $(PHC).gz.uuencoded ; \
48: gzip -d $(PHC).gz ; \
1.4 maekawa 49: chmod +x $(PHC) ; \
1.1 maekawa 50: fi
51:
52: distclean:
1.7 ! takayama 53: rm -f asir fep fep.linux fep.fbsd lin_phcv2p phc
1.4 maekawa 54:
55: uuencode:
1.5 noro 56: @if [ -f $(FEPLINUX) ]; then \
1.7 ! takayama 57: echo '$OpenXM: OpenXM/bin/Makefile,v 1.6 2000/01/19 09:43:53 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \
1.5 noro 58: gzip -c $(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(FEPLINUX).gz.uuencoded ; \
59: fi
60: @if [ -f $(FEPFBSD) ]; then \
1.7 ! takayama 61: echo '$OpenXM: OpenXM/bin/Makefile,v 1.6 2000/01/19 09:43:53 takayama Exp $' > $(FEPFBSD).gz.uuencoded ; \
1.5 noro 62: gzip -c $(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(FEPFBSD).gz.uuencoded ; \
1.4 maekawa 63: fi
64: @if [ -f $(PHC) ]; then \
1.7 ! takayama 65: echo '$OpenXM: OpenXM/bin/Makefile,v 1.6 2000/01/19 09:43:53 takayama Exp $' > $(PHC).gz.uuencoded ; \
1.4 maekawa 66: gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \
67: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>