aboutsummaryrefslogtreecommitdiff
path: root/src/Makehdr
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makehdr')
-rw-r--r--src/Makehdr21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Makehdr b/src/Makehdr
new file mode 100644
index 00000000..ed204604
--- /dev/null
+++ b/src/Makehdr
@@ -0,0 +1,21 @@
+# this works in gnu make
+SYSNAME:=${shell uname}
+OBJTYPE:=${shell uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g'}
+
+# this works in bsd make
+SYSNAME!=uname
+OBJTYPE!=uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g'
+
+# the gnu rules will mess up bsd but not vice versa,
+# hence the gnu rules come first.
+
+X11=/usr/X11R6
+LDFLAGS=
+CFLAGS=
+
+include $(9SRC)/Make.$(SYSNAME)-$(OBJTYPE)
+LDFLAGS+=-L$(9SRC)/lib
+
+CLEANFILES=*.$O
+NUKEFILES=
+