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