version 1.5, 2000/01/19 07:28:37 |
version 1.10, 2000/03/10 08:11:17 |
|
|
# $OpenXM: OpenXM/bin/Makefile,v 1.4 2000/01/09 21:04:04 maekawa Exp $ |
# $OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $ |
|
|
LIBDIR=../lib |
LIBDIR=../lib |
FEPLINUX=fep.linux |
FEPLINUX=fep.linux |
FEPFBSD=fep.fbsd |
FEPFBSD=fep.fbsd |
PHC=lin_phcv2p |
PHC=lin_phcv2p |
|
RM=rm |
|
|
configure: |
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 ; \ |
|
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 ; \ |
|
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 \ |
@if [ -f $(FEPLINUX).gz.uuencoded ]; then \ |
uudecode $(FEPLINUX).gz.uuencoded ; \ |
uudecode $(FEPLINUX).gz.uuencoded ; \ |
gzip -d $(FEPLINUX).gz ; \ |
gzip -d $(FEPLINUX).gz ; \ |
chmod +x $(FEPLINUX) ; \ |
chmod +x $(FEPLINUX) ; \ |
fi |
fi |
|
|
|
$(FEPFBSD) : $(FEPFBSD).gz.uuencoded |
@if [ -f $(FEPFBSD).gz.uuencoded ]; then \ |
@if [ -f $(FEPFBSD).gz.uuencoded ]; then \ |
uudecode $(FEPFBSD).gz.uuencoded ; \ |
uudecode $(FEPFBSD).gz.uuencoded ; \ |
gzip -d $(FEPFBSD).gz ; \ |
gzip -d $(FEPFBSD).gz ; \ |
chmod +x $(FEPFBSD) ; \ |
chmod +x $(FEPFBSD) ; \ |
fi |
fi |
|
|
|
$(PHC) : $(PHC).gz.uuencoded |
@if [ -f $(PHC).gz.uuencoded ]; then \ |
@if [ -f $(PHC).gz.uuencoded ]; then \ |
uudecode $(PHC).gz.uuencoded ; \ |
uudecode $(PHC).gz.uuencoded ; \ |
gzip -d $(PHC).gz ; \ |
gzip -d $(PHC).gz ; \ |
chmod +x $(PHC) ; \ |
chmod +x $(PHC) ; \ |
fi |
fi |
|
|
@if [ "`uname`" = "Linux" ]; then \ |
|
rm -f fep phc ; \ |
|
ln -f -s $(FEPLINUX) fep ; \ |
|
ln -f -s $(PHC) phc ; \ |
|
else \ |
|
echo "We have the binary of phc only for linux." ; \ |
|
fi |
|
|
|
rm -f asir |
|
ln -f -s $(LIBDIR)/asir/ox_asir asir |
|
|
|
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 $(FEPLINUX) ]; then \ |
@if [ -f $(FEPLINUX) ]; then \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.4 2000/01/09 21:04:04 maekawa Exp $' > $(FEPLINUX).gz.uuencoded ; \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \ |
gzip -c $(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(FEPLINUX).gz.uuencoded ; \ |
gzip -c $(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(FEPLINUX).gz.uuencoded ; \ |
fi |
fi |
@if [ -f $(FEPFBSD) ]; then \ |
@if [ -f $(FEPFBSD) ]; then \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.4 2000/01/09 21:04:04 maekawa Exp $' > $(FEPFBSD).gz.uuencoded ; \ |
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 ; \ |
gzip -c $(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(FEPFBSD).gz.uuencoded ; \ |
fi |
fi |
@if [ -f $(PHC) ]; then \ |
@if [ -f $(PHC) ]; then \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.4 2000/01/09 21:04:04 maekawa Exp $' > $(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 |