===================================================================
RCS file: /home/cvs/OpenXM/bin/Attic/Makefile,v
retrieving revision 1.9
retrieving revision 1.12
diff -u -p -r1.9 -r1.12
--- OpenXM/bin/Attic/Makefile	2000/03/10 08:03:27	1.9
+++ OpenXM/bin/Attic/Makefile	2000/10/31 05:42:45	1.12
@@ -1,5 +1,7 @@
-# $OpenXM: OpenXM/bin/Makefile,v 1.8 2000/01/21 09:51:08 noro Exp $
+# $OpenXM: OpenXM/bin/Makefile,v 1.11 2000/09/04 03:17:22 takayama Exp $
 
+OPENXM_CONTRIB=../../OpenXM_contrib
+
 LIBDIR=../lib
 FEPLINUX=fep.linux
 FEPFBSD=fep.fbsd
@@ -10,67 +12,56 @@ configure:
 	@if [ -f .configure_done ] ; then \
 		echo "OpenXM/bin is already configured." ; \
 	else \
-		make configure-real ; \
-		$(RM) -f *uuencoded* ; \
-	fi
-
-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" ; \
+		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
-	-@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
+clean-for-install:
+	$(RM) -f *uuencoded* 
 
-$(FEPLINUX) : $(FEPLINUX).gz.uuencoded
-	@if [ -f $(FEPLINUX).gz.uuencoded ]; then \
-		uudecode $(FEPLINUX).gz.uuencoded ; \
-		gzip -d $(FEPLINUX).gz ; \
-		chmod +x $(FEPLINUX) ; \
+configure-freebsd:
+	(cd ${OPENXM_CONTRIB}/PHC/Objects/ ; make phc)
+	install /tmp/phc .
+	if [ -f ${FEPFBSD}.gz.uuencoded ]; then \
+		uudecode -p ${FEPFBSD}.gz.uuencoded | zcat - > fep ; \
+		chmod +x fep ; \
 	fi
 
-$(FEPFBSD) : $(FEPFBSD).gz.uuencoded
-	@if [ -f $(FEPFBSD).gz.uuencoded ]; then \
-		uudecode $(FEPFBSD).gz.uuencoded ; \
-		gzip -d $(FEPFBSD).gz ; \
-		chmod +x $(FEPFBSD) ; \
+configure-linux:
+	if [ -f ${PHC}.gz.uuencoded ]; then \
+		uudecode -p ${PHC}.gz.uuencoded | zcat - > phc ; \
+		chmod +x phc ; \
 	fi
-
-$(PHC) : $(PHC).gz.uuencoded
-	@if [ -f $(PHC).gz.uuencoded ]; then \
-		uudecode $(PHC).gz.uuencoded ; \
-		gzip -d $(PHC).gz ; \
-		chmod +x $(PHC) ; \
+	if [ -f ${FEPLINUX}.gz.uuencoded ]; then \
+		uudecode -p ${FEPLINUX}.gz.uuencoded | zcat - > fep ; \
+		chmod +x fep ; \
 	fi
 
 distclean:
-	rm -f asir ox_asir fep fep.linux fep.fbsd lin_phcv2p phc .configure_done
+	if [ "`uname`" = "FreeBSD" ]; then \
+		(cd ${OPENXM_CONTRIB}/PHC/Objects/ ; make clean) \
+	fi
+	rm -f asir ox_asir fep phc
+	@rm -f .configure_done
 
 uuencode:
 	@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.11 2000/09/04 03:17:22 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \
 		gzip -c $(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(FEPLINUX).gz.uuencoded ; \
 	fi
 	@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.11 2000/09/04 03:17:22 takayama Exp $' > $(FEPFBSD).gz.uuencoded ; \
 		gzip -c $(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(FEPFBSD).gz.uuencoded ; \
 	fi
 	@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.11 2000/09/04 03:17:22 takayama Exp $' > $(PHC).gz.uuencoded ; \
 		gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \
 	fi