version 1.10, 2000/03/10 08:11:17 |
version 1.12, 2000/10/31 05:42:45 |
|
|
# $OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $ |
# $OpenXM: OpenXM/bin/Makefile,v 1.11 2000/09/04 03:17:22 takayama Exp $ |
|
|
|
OPENXM_CONTRIB=../../OpenXM_contrib |
|
|
LIBDIR=../lib |
LIBDIR=../lib |
FEPLINUX=fep.linux |
FEPLINUX=fep.linux |
FEPFBSD=fep.fbsd |
FEPFBSD=fep.fbsd |
|
|
@if [ -f .configure_done ] ; then \ |
@if [ -f .configure_done ] ; then \ |
echo "OpenXM/bin is already configured." ; \ |
echo "OpenXM/bin is already configured." ; \ |
else \ |
else \ |
make configure-real ; \ |
rm -f fep phc ; \ |
|
if [ "`uname`" = "FreeBSD" ]; then \ |
|
make configure-freebsd ; \ |
|
fi ; \ |
|
if [ "`uname`" = "Linux" ]; then \ |
|
make configure-linux ; \ |
|
fi ; \ |
|
rm -f ox_asir ; \ |
|
ln -f -s ./asir ox_asir ; \ |
|
@touch ./configure_done ; \ |
fi |
fi |
|
|
clean-for-install: |
clean-for-install: |
$(RM) -f *uuencoded* |
$(RM) -f *uuencoded* |
|
|
configure-real: $(FEPLINUX) $(FEPFBSD) $(PHC) |
configure-freebsd: |
@if [ "`uname`" = "Linux" ]; then \ |
(cd ${OPENXM_CONTRIB}/PHC/Objects/ ; make phc) |
rm -f fep phc ; \ |
install /tmp/phc . |
ln -f -s $(FEPLINUX) fep ; \ |
if [ -f ${FEPFBSD}.gz.uuencoded ]; then \ |
ln -f -s $(PHC) phc ; \ |
uudecode -p ${FEPFBSD}.gz.uuencoded | zcat - > fep ; \ |
echo "Linux binary generation: fep, phc" ; \ |
chmod +x fep ; \ |
else \ |
|
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 ox_asir |
configure-linux: |
ln -f -s ./asir ox_asir |
if [ -f ${PHC}.gz.uuencoded ]; then \ |
@touch .configure_done |
uudecode -p ${PHC}.gz.uuencoded | zcat - > phc ; \ |
|
chmod +x phc ; \ |
$(FEPLINUX) : $(FEPLINUX).gz.uuencoded |
|
@if [ -f $(FEPLINUX).gz.uuencoded ]; then \ |
|
uudecode $(FEPLINUX).gz.uuencoded ; \ |
|
gzip -d $(FEPLINUX).gz ; \ |
|
chmod +x $(FEPLINUX) ; \ |
|
fi |
fi |
|
if [ -f ${FEPLINUX}.gz.uuencoded ]; then \ |
$(FEPFBSD) : $(FEPFBSD).gz.uuencoded |
uudecode -p ${FEPLINUX}.gz.uuencoded | zcat - > fep ; \ |
@if [ -f $(FEPFBSD).gz.uuencoded ]; then \ |
chmod +x fep ; \ |
uudecode $(FEPFBSD).gz.uuencoded ; \ |
|
gzip -d $(FEPFBSD).gz ; \ |
|
chmod +x $(FEPFBSD) ; \ |
|
fi |
fi |
|
|
$(PHC) : $(PHC).gz.uuencoded |
distclean: |
@if [ -f $(PHC).gz.uuencoded ]; then \ |
if [ "`uname`" = "FreeBSD" ]; then \ |
uudecode $(PHC).gz.uuencoded ; \ |
(cd ${OPENXM_CONTRIB}/PHC/Objects/ ; make clean) \ |
gzip -d $(PHC).gz ; \ |
|
chmod +x $(PHC) ; \ |
|
fi |
fi |
|
rm -f asir ox_asir fep phc |
|
@rm -f .configure_done |
|
|
distclean: |
|
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.9 2000/03/10 08:03:27 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \ |
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 ; \ |
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.9 2000/03/10 08:03:27 takayama Exp $' > $(FEPFBSD).gz.uuencoded ; \ |
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 ; \ |
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.9 2000/03/10 08:03:27 takayama Exp $' > $(PHC).gz.uuencoded ; \ |
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 ; \ |
gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \ |
fi |
fi |