File: [local] / OpenXM / bin / Attic / Makefile (download)
Revision 1.11, Mon Sep 4 03:17:22 2000 UTC (23 years, 9 months ago) by takayama
Branch: MAIN
CVS Tags: RELEASE_1_1_3 Changes since 1.10: +6 -4
lines
fep.freebsd will be removed on other platforms.
|
# $OpenXM: OpenXM/bin/Makefile,v 1.11 2000/09/04 03:17:22 takayama Exp $
LIBDIR=../lib
FEPLINUX=fep.linux
FEPFBSD=fep.fbsd
PHC=lin_phcv2p
RM=rm
configure:
@if [ -f .configure_done ] ; then \
echo "OpenXM/bin is already configured." ; \
else \
make configure-real ; \
fi
clean-for-install:
$(RM) -f *uuencoded*
configure-real: $(FEPLINUX) $(FEPFBSD) $(PHC)
@if [ "`uname`" = "Linux" ]; then \
rm -f fep phc ; \
ln -f -s $(FEPLINUX) fep ; \
ln -f -s $(PHC) phc ; \
rm -f $(FEPFBSD) ; \
echo "Linux binary generation: fep, phc" ; \
else \
echo "Not Linux" ; \
fi
-@if [ "`uname`" = "FreeBSD" ]; then \
rm -f fep phc ; \
ln -f -s $(FEPFBSD) fep ; \
ln -f -s $(PHC) phc ; \
rm -f $(FEPLINUX) ; \
brandelf -t Linux ./phc ; \
echo "FreeBSD binary generation: fep and phc. Linux Emulation is requied to execute phc." ; \
else \
echo "Not FreeBSD" ; \
fi
rm -f ox_asir
ln -f -s ./asir ox_asir
@touch .configure_done
$(FEPLINUX) : $(FEPLINUX).gz.uuencoded
@if [ -f $(FEPLINUX).gz.uuencoded ]; then \
uudecode $(FEPLINUX).gz.uuencoded ; \
gzip -d $(FEPLINUX).gz ; \
chmod +x $(FEPLINUX) ; \
fi
$(FEPFBSD) : $(FEPFBSD).gz.uuencoded
@if [ -f $(FEPFBSD).gz.uuencoded ]; then \
uudecode $(FEPFBSD).gz.uuencoded ; \
gzip -d $(FEPFBSD).gz ; \
chmod +x $(FEPFBSD) ; \
fi
$(PHC) : $(PHC).gz.uuencoded
@if [ -f $(PHC).gz.uuencoded ]; then \
uudecode $(PHC).gz.uuencoded ; \
gzip -d $(PHC).gz ; \
chmod +x $(PHC) ; \
fi
distclean:
rm -f asir ox_asir fep fep.linux fep.fbsd lin_phcv2p phc .configure_done
uuencode:
@if [ -f $(FEPLINUX) ]; then \
echo '$OpenXM: OpenXM/bin/Makefile,v 1.11 2000/09/04 03:17:22 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \
gzip -c $(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(FEPLINUX).gz.uuencoded ; \
fi
@if [ -f $(FEPFBSD) ]; then \
echo '$OpenXM: OpenXM/bin/Makefile,v 1.11 2000/09/04 03:17:22 takayama Exp $' > $(FEPFBSD).gz.uuencoded ; \
gzip -c $(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(FEPFBSD).gz.uuencoded ; \
fi
@if [ -f $(PHC) ]; then \
echo '$OpenXM: OpenXM/bin/Makefile,v 1.11 2000/09/04 03:17:22 takayama Exp $' > $(PHC).gz.uuencoded ; \
gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \
fi