version 1.4, 2000/01/09 21:04:04 |
version 1.10, 2000/03/10 08:11:17 |
|
|
# $OpenXM: OpenXM/bin/Makefile,v 1.3 2000/01/09 20:27:28 maekawa Exp $ |
# $OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $ |
|
|
LIBDIR=../lib |
LIBDIR=../lib |
FEP=fep.linux |
FEPLINUX=fep.linux |
|
FEPFBSD=fep.fbsd |
PHC=lin_phcv2p |
PHC=lin_phcv2p |
|
RM=rm |
|
|
configure: |
configure: |
@if [ -f $(FEP).gz.uuencoded ]; then \ |
@if [ -f .configure_done ] ; then \ |
uudecode -p $(FEP).gz.uuencoded | gzip -dc > $(FEP) ; \ |
echo "OpenXM/bin is already configured." ; \ |
chmod +x $(FEP) ; \ |
else \ |
|
make configure-real ; \ |
fi |
fi |
|
|
@if [ -f $(PHC).gz.uuencoded ]; then \ |
clean-for-install: |
uudecode -p $(PHC).gz.uuencoded | gzip -dc > $(PHC) ; \ |
$(RM) -f *uuencoded* |
chmod +x $(PHC) ; \ |
|
fi |
|
|
|
|
configure-real: $(FEPLINUX) $(FEPFBSD) $(PHC) |
@if [ "`uname`" = "Linux" ]; then \ |
@if [ "`uname`" = "Linux" ]; then \ |
rm -f fep phc ; \ |
rm -f fep phc ; \ |
ln -f -s $(FEP) fep ; \ |
ln -f -s $(FEPLINUX) fep ; \ |
ln -f -s $(PHC) phc ; \ |
ln -f -s $(PHC) phc ; \ |
|
echo "Linux binary generation: fep, phc" ; \ |
else \ |
else \ |
echo "We have the binary of phc only for linux." ; \ |
echo "Not Linux" ; \ |
fi |
fi |
|
-@if [ "`uname`" = "FreeBSD" ]; then \ |
|
rm -f fep phc ; \ |
|
ln -f -s $(FEPFBSD) fep ; \ |
|
ln -f -s $(PHC) phc ; \ |
|
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 asir |
rm -f ox_asir |
ln -f -s $(LIBDIR)/asir/ox_asir 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: |
distclean: |
rm -f asir fep fep.linux lin_phcv2p phc |
rm -f asir ox_asir fep fep.linux fep.fbsd lin_phcv2p phc .configure_done |
|
|
uuencode: |
uuencode: |
@if [ -f $(FEP) ]; then \ |
@if [ -f $(FEPLINUX) ]; then \ |
echo '$OpenXM$' > $(FEP).gz.uuencoded ; \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \ |
gzip -c $(FEP) | uuencode $(FEP).gz >> $(FEP).gz.uuencoded ; \ |
gzip -c $(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(FEPLINUX).gz.uuencoded ; \ |
fi |
fi |
|
@if [ -f $(FEPFBSD) ]; then \ |
|
echo '$OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $' > $(FEPFBSD).gz.uuencoded ; \ |
|
gzip -c $(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(FEPFBSD).gz.uuencoded ; \ |
|
fi |
@if [ -f $(PHC) ]; then \ |
@if [ -f $(PHC) ]; then \ |
echo '$OpenXM$' > $(PHC).gz.uuencoded ; \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $' > $(PHC).gz.uuencoded ; \ |
gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \ |
gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \ |
fi |
fi |