Blob


1 # this works in gnu make
2 SYSNAME:=${shell uname}
3 OBJTYPE:=${shell uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g'}
5 # this works in bsd make
6 SYSNAME!=uname
7 OBJTYPE!=uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g'
9 # the gnu rules will mess up bsd but not vice versa,
10 # hence the gnu rules come first.
12 X11=/usr/X11R6
13 LDFLAGS=
14 CFLAGS=
16 include $(PLAN9)/src/Make.$(SYSNAME)-$(OBJTYPE)
17 LDFLAGS+=-L$(PLAN9)/lib
19 CLEANFILES=*.$O
20 NUKEFILES=