summaryrefslogtreecommitdiff
path: root/distrib/sun3/common/Make.crunch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
commitd6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch)
treeece253b876159b39c620e62b6c9b1174642e070e /distrib/sun3/common/Make.crunch
initial import of NetBSD tree
Diffstat (limited to 'distrib/sun3/common/Make.crunch')
-rw-r--r--distrib/sun3/common/Make.crunch20
1 files changed, 20 insertions, 0 deletions
diff --git a/distrib/sun3/common/Make.crunch b/distrib/sun3/common/Make.crunch
new file mode 100644
index 00000000000..b89e7576c2c
--- /dev/null
+++ b/distrib/sun3/common/Make.crunch
@@ -0,0 +1,20 @@
+# $NetBSD: Make.crunch,v 1.2 1995/10/13 16:38:20 gwr Exp $
+#
+# This is included by subdirectories building a crunched binary.
+# Assume the following are already defined: TOP, CBIN
+
+CBIN?= xxx-crunched
+CRUNCHCONF= ${TOP}/common/${CBIN}.conf
+
+CLEANFILES+= ${CBIN} ${CBIN}.c ${CBIN}.cache ${CBIN}.mk ${CBIN}.syms
+CLEANFILES+= *.lo *_stub.o *_stub.c
+
+# Keep a copy that is not stripped so I can debug...
+${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
+ make -f ${CBIN}.mk all STRIP=true
+ cp -p ${CBIN} ${CBIN}.syms
+ strip ${CBIN}
+
+${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
+ crunchgen ${CRUNCHCONF}
+