version 1.8, 2000/01/21 09:51:08 |
version 1.13, 2000/10/31 06:17:58 |
|
|
# $OpenXM: OpenXM/bin/Makefile,v 1.7 2000/01/20 03:47:25 takayama Exp $ |
# $OpenXM: OpenXM/bin/Makefile,v 1.12 2000/10/31 05:42:45 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: $(FEPLINUX) $(FEPFBSD) $(PHC) |
configure: |
@if [ "`uname`" = "Linux" ]; then \ |
@if [ -f .configure_done ] ; then \ |
rm -f fep phc ; \ |
echo "OpenXM/bin is already configured." ; \ |
ln -f -s $(FEPLINUX) fep ; \ |
|
ln -f -s $(PHC) phc ; \ |
|
echo "Linux binary generation: fep, phc" ; \ |
|
else \ |
else \ |
echo "Not Linux" ; \ |
|
fi |
|
-@if [ "`uname`" = "FreeBSD" ]; then \ |
|
rm -f fep phc ; \ |
rm -f fep phc ; \ |
ln -f -s $(FEPFBSD) fep ; \ |
if [ "`uname`" = "FreeBSD" ]; then \ |
ln -f -s $(PHC) phc ; \ |
make configure-freebsd ; \ |
brandelf -t Linux ./phc ; \ |
fi ; \ |
echo "FreeBSD binary generation: fep and phc. Linux Emulation is requied to execute phc." ; \ |
if [ "`uname`" = "Linux" ]; then \ |
else \ |
make configure-linux ; \ |
echo "Not FreeBSD" ; \ |
fi ; \ |
|
rm -f ox_asir ; \ |
|
ln -f -s ./asir ox_asir ; \ |
|
touch ./.configure_done ; \ |
fi |
fi |
|
|
rm -f asir |
clean-for-install: |
ln -f -s $(LIBDIR)/asir/asir asir |
$(RM) -f *uuencoded* |
rm -f ox_asir |
|
ln -f -s $(LIBDIR)/asir/asir ox_asir |
|
|
|
$(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 |
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.7 2000/01/20 03:47:25 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \ |
echo '$OpenXM: OpenXM/bin/Makefile,v 1.12 2000/10/31 05:42:45 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.7 2000/01/20 03:47:25 takayama Exp $' > $(FEPFBSD).gz.uuencoded ; \ |
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 ; \ |
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.7 2000/01/20 03:47:25 takayama Exp $' > $(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 |