Build Unix-friendly versions directly from library.

This commit is contained in:
rsc 2004-03-01 19:36:29 +00:00
parent 63dd44c8ca
commit aa73861453
34 changed files with 966 additions and 0 deletions

20
unix/make/Makefile.TOP Normal file
View file

@ -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=