version 1.9, 2000/03/10 08:03:27 |
version 1.14, 2000/10/31 06:24:05 |
|
|
# $OpenXM: OpenXM/bin/Makefile,v 1.8 2000/01/21 09:51:08 noro Exp $ |
# $OpenXM: OpenXM/bin/Makefile,v 1.13 2000/10/31 06:17:58 maekawa Exp $ |
|
|
|
OPENXM_CONTRIB=../../OpenXM_contrib |
|
|
LIBDIR=../lib |
LIBDIR=../lib |
FEPLINUX=fep.linux |
FEPLINUX=fep.linux |
FEPFBSD=fep.fbsd |
FEPFBSD=fep.fbsd |
PHC=lin_phcv2p |
PHCFBSD=fbsd_phcv2p |
|
PHCLINUX=lin_phcv2p |
RM=rm |
RM=rm |
|
|
configure: |
configure: |
@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 *uuencoded* ; \ |
|
fi |
|
|
|
configure-real: $(FEPLINUX) $(FEPFBSD) $(PHC) |
|
@if [ "`uname`" = "Linux" ]; then \ |
|
rm -f fep phc ; \ |
rm -f fep phc ; \ |
ln -f -s $(FEPLINUX) fep ; \ |
if [ "`uname`" = "FreeBSD" ]; then \ |
ln -f -s $(PHC) phc ; \ |
make configure-freebsd ; \ |
echo "Linux binary generation: fep, phc" ; \ |
fi ; \ |
else \ |
if [ "`uname`" = "Linux" ]; then \ |
echo "Not Linux" ; \ |
make configure-linux ; \ |
|
fi ; \ |
|
rm -f ox_asir ; \ |
|
ln -f -s ./asir ox_asir ; \ |
|
touch ./.configure_done ; \ |
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 |
clean-for-install: |
ln -f -s ./asir ox_asir |
$(RM) -f *uuencoded* |
@touch .configure_done |
|
|
|
$(FEPLINUX) : $(FEPLINUX).gz.uuencoded |
configure-freebsd: |
@if [ -f $(FEPLINUX).gz.uuencoded ]; then \ |
if [ -f ${PHCFBSD}.gz.uuencoded ]; then \ |
uudecode $(FEPLINUX).gz.uuencoded ; \ |
uudecode -p ${PHCFBSD}.gz.uuencoded | zcat - > phc ; \ |
gzip -d $(FEPLINUX).gz ; \ |
chmod +x phc ; \ |
chmod +x $(FEPLINUX) ; \ |
|
fi |
fi |
|
if [ -f ${FEPFBSD}.gz.uuencoded ]; then \ |
$(FEPFBSD) : $(FEPFBSD).gz.uuencoded |
uudecode -p ${FEPFBSD}.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 |
configure-linux: |
@if [ -f $(PHC).gz.uuencoded ]; then \ |
if [ -f ${PHCLINUX}.gz.uuencoded ]; then \ |
uudecode $(PHC).gz.uuencoded ; \ |
uudecode -p ${PHCLINUX}.gz.uuencoded | zcat - > phc ; \ |
gzip -d $(PHC).gz ; \ |
chmod +x phc ; \ |
chmod +x $(PHC) ; \ |
|
fi |
fi |
|
if [ -f ${FEPLINUX}.gz.uuencoded ]; then \ |
|
uudecode -p ${FEPLINUX}.gz.uuencoded | zcat - > fep ; \ |
|
chmod +x fep ; \ |
|
fi |
|
|
distclean: |
distclean: |
rm -f asir ox_asir fep fep.linux fep.fbsd lin_phcv2p phc .configure_done |
rm -f asir ox_asir fep phc |
|
@rm -f .configure_done |
|
|
uuencode: |
uuencode: |
@if [ -f $(FEPLINUX) ]; then \ |
@if [ -f $(FEPLINUX) ]; then \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.8 2000/01/21 09:51:08 noro Exp $' > $(FEPLINUX).gz.uuencoded ; \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.13 2000/10/31 06:17:58 maekawa 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.8 2000/01/21 09:51:08 noro Exp $' > $(FEPFBSD).gz.uuencoded ; \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.13 2000/10/31 06:17:58 maekawa 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.8 2000/01/21 09:51:08 noro Exp $' > $(PHC).gz.uuencoded ; \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.13 2000/10/31 06:17:58 maekawa Exp $' > $(PHC).gz.uuencoded ; \ |
gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \ |
gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \ |
fi |
fi |