version 1.4, 2000/01/09 21:04:04 |
version 1.13, 2000/10/31 06:17:58 |
|
|
# $OpenXM: OpenXM/bin/Makefile,v 1.3 2000/01/09 20:27:28 maekawa Exp $ |
# $OpenXM: OpenXM/bin/Makefile,v 1.12 2000/10/31 05:42:45 maekawa Exp $ |
|
|
|
OPENXM_CONTRIB=../../OpenXM_contrib |
|
|
LIBDIR=../lib |
LIBDIR=../lib |
FEP=fep.linux |
FEPLINUX=fep.linux |
PHC=lin_phcv2p |
FEPFBSD=fep.fbsd |
|
PHCFBSD=fbsd-phcv2p |
|
PHCLINUX=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 \ |
|
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 |
|
|
@if [ -f $(PHC).gz.uuencoded ]; then \ |
clean-for-install: |
uudecode -p $(PHC).gz.uuencoded | gzip -dc > $(PHC) ; \ |
$(RM) -f *uuencoded* |
chmod +x $(PHC) ; \ |
|
|
configure-freebsd: |
|
if [ -f ${PHCFBSD}.gz.uuencoded ]; then \ |
|
uudecode -p ${PHCFBSD}.gz.uuencoded | zcat - > phc ; \ |
|
chmod +x phc ; \ |
fi |
fi |
|
if [ -f ${FEPFBSD}.gz.uuencoded ]; then \ |
|
uudecode -p ${FEPFBSD}.gz.uuencoded | zcat - > fep ; \ |
|
chmod +x fep ; \ |
|
fi |
|
|
@if [ "`uname`" = "Linux" ]; then \ |
configure-linux: |
rm -f fep phc ; \ |
if [ -f ${PHCLINUX}.gz.uuencoded ]; then \ |
ln -f -s $(FEP) fep ; \ |
uudecode -p ${PHCLINUX}.gz.uuencoded | zcat - > phc ; \ |
ln -f -s $(PHC) phc ; \ |
chmod +x phc ; \ |
else \ |
|
echo "We have the binary of phc only for linux." ; \ |
|
fi |
fi |
|
if [ -f ${FEPLINUX}.gz.uuencoded ]; then \ |
|
uudecode -p ${FEPLINUX}.gz.uuencoded | zcat - > fep ; \ |
|
chmod +x fep ; \ |
|
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 phc |
|
@rm -f .configure_done |
|
|
uuencode: |
uuencode: |
@if [ -f $(FEP) ]; then \ |
@if [ -f $(FEPLINUX) ]; then \ |
echo '$OpenXM$' > $(FEP).gz.uuencoded ; \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.12 2000/10/31 05:42:45 maekawa 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.12 2000/10/31 05:42:45 maekawa 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.12 2000/10/31 05:42:45 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 |