aboutsummaryrefslogtreecommitdiff
path: root/unix/make/Makefile.TOP
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-01 19:36:29 +0000
committerrsc <devnull@localhost>2004-03-01 19:36:29 +0000
commitaa738614530c1525b2337a3812d238b9776d51f0 (patch)
tree0e989d3bfe7b0682fb3437429086048bef8a4d9c /unix/make/Makefile.TOP
parent63dd44c8ca13354de84c4da659454526ec6750db (diff)
downloadplan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.gz
plan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.bz2
plan9port-aa738614530c1525b2337a3812d238b9776d51f0.zip
Build Unix-friendly versions directly from library.
Diffstat (limited to 'unix/make/Makefile.TOP')
-rw-r--r--unix/make/Makefile.TOP20
1 files changed, 20 insertions, 0 deletions
diff --git a/unix/make/Makefile.TOP b/unix/make/Makefile.TOP
new file mode 100644
index 00000000..f6abc8c1
--- /dev/null
+++ b/unix/make/Makefile.TOP
@@ -0,0 +1,20 @@
+
+# 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.
+
+include Make.$(SYSNAME)-$(OBJTYPE)
+
+PREFIX=/usr/local
+
+NUKEFILES=
+
+TGZFILES=
+