Annotation of OpenXM/bin/Makefile, Revision 1.8
1.8 ! noro 1: # $OpenXM: OpenXM/bin/Makefile,v 1.7 2000/01/20 03:47:25 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
1.8 ! noro 29: ln -f -s $(LIBDIR)/asir/asir asir
! 30: rm -f ox_asir
! 31: ln -f -s $(LIBDIR)/asir/asir ox_asir
1.6 takayama 32:
33: $(FEPLINUX) : $(FEPLINUX).gz.uuencoded
1.5 noro 34: @if [ -f $(FEPLINUX).gz.uuencoded ]; then \
35: uudecode $(FEPLINUX).gz.uuencoded ; \
36: gzip -d $(FEPLINUX).gz ; \
37: chmod +x $(FEPLINUX) ; \
38: fi
39:
1.6 takayama 40: $(FEPFBSD) : $(FEPFBSD).gz.uuencoded
1.5 noro 41: @if [ -f $(FEPFBSD).gz.uuencoded ]; then \
42: uudecode $(FEPFBSD).gz.uuencoded ; \
43: gzip -d $(FEPFBSD).gz ; \
44: chmod +x $(FEPFBSD) ; \
1.1 maekawa 45: fi
46:
1.6 takayama 47: $(PHC) : $(PHC).gz.uuencoded
1.4 maekawa 48: @if [ -f $(PHC).gz.uuencoded ]; then \
1.5 noro 49: uudecode $(PHC).gz.uuencoded ; \
50: gzip -d $(PHC).gz ; \
1.4 maekawa 51: chmod +x $(PHC) ; \
1.1 maekawa 52: fi
53:
54: distclean:
1.8 ! noro 55: rm -f asir ox_asir fep fep.linux fep.fbsd lin_phcv2p phc
1.4 maekawa 56:
57: uuencode:
1.5 noro 58: @if [ -f $(FEPLINUX) ]; then \
1.8 ! noro 59: echo '$OpenXM: OpenXM/bin/Makefile,v 1.7 2000/01/20 03:47:25 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \
1.5 noro 60: gzip -c $(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(FEPLINUX).gz.uuencoded ; \
61: fi
62: @if [ -f $(FEPFBSD) ]; then \
1.8 ! noro 63: echo '$OpenXM: OpenXM/bin/Makefile,v 1.7 2000/01/20 03:47:25 takayama Exp $' > $(FEPFBSD).gz.uuencoded ; \
1.5 noro 64: gzip -c $(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(FEPFBSD).gz.uuencoded ; \
1.4 maekawa 65: fi
66: @if [ -f $(PHC) ]; then \
1.8 ! noro 67: echo '$OpenXM: OpenXM/bin/Makefile,v 1.7 2000/01/20 03:47:25 takayama Exp $' > $(PHC).gz.uuencoded ; \
1.4 maekawa 68: gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \
69: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>