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