aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--palm/prc-tools/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/palm/prc-tools/Makefile b/palm/prc-tools/Makefile
index e164650d4c8f..887c22581aef 100644
--- a/palm/prc-tools/Makefile
+++ b/palm/prc-tools/Makefile
@@ -3,7 +3,7 @@
# Date created: November, 1997
# Whom: Paul Traina <pst@freebsd.org>
#
-# $Id: Makefile,v 1.6 1998/01/01 17:29:06 asami Exp $
+# $Id: Makefile,v 1.7 1998/02/19 06:55:19 asami Exp $
#
# *WARNING* write access to ${PREFIX} is required DURING build because the
# make "all" target actually installs the gnu tools before building the
@@ -61,6 +61,20 @@ STRIP= build-prc \
pilrc \
txt2bitm
+# check for "-m486" and bomb out if the user has it
+pre-build:
+ @if ${ECHO} ${CFLAGS} | ${GREP} -- "-m486" > /dev/null ; then \
+ ${ECHO} "ERROR: You have \"-m486\" defined some-" ; \
+ ${ECHO} " where, either in /etc/make.conf" ; \
+ ${ECHO} " or in the CFLAGS environment" ; \
+ ${ECHO} " variable. This will cause this" ; \
+ ${ECHO} " port to not build properly. Please" ; \
+ ${ECHO} " fix this and re-run make." ; \
+ exit 1 ; \
+ else \
+ ${ECHO} "Your environment looks OK." ; \
+ fi
+
# after we apply freebsd patches, apply prc-tool's patches to gcc/gdb/...
post-patch:
(cd ${WRKSRC} ; make patch)