tmake -> mk - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 99947423b136903263513b9022aab6586c8c6cc5
parent db6608bd819d10cc2ddb57d18054d62d4ca15596
Author: rsc 
Date:   Sun, 23 Nov 2003 18:22:36 +0000

make -> mk

Diffstat:
  D src/Make.Darwin-PowerMacintosh      |       8 --------
  D src/Make.FreeBSD-386                |       8 --------
  D src/Make.HP-UX-9000                 |       7 -------
  D src/Make.Linux-386                  |       8 --------
  D src/Make.NetBSD-386                 |       8 --------
  D src/Make.OSF1-alpha                 |       7 -------
  D src/Make.SunOS-sun4u                |       3 ---
  D src/Make.SunOS-sun4u-cc             |       5 -----
  D src/Make.SunOS-sun4u-gcc            |       5 -----
  D src/Makecommon                      |      17 -----------------
  D src/Makefile                        |      21 ---------------------
  D src/Makehdr                         |      23 -----------------------
  D src/Makemany                        |      15 ---------------
  D src/Makeone                         |      13 -------------
  D src/Makesyslib                      |       9 ---------
  D src/libframe/Makefile               |      22 ----------------------
  A src/libframe/mkfile                 |      22 ++++++++++++++++++++++
  A src/libip/mkfile                    |      20 ++++++++++++++++++++
  D src/libregexp/Makefile              |      27 ---------------------------
  A src/libregexp/mkfile                |      27 +++++++++++++++++++++++++++
  D src/libutf/Makefile                 |      31 -------------------------------
  A src/libutf/mkfile                   |      31 +++++++++++++++++++++++++++++++

22 files changed, 100 insertions(+), 237 deletions(-)
---
diff --git a/src/Make.Darwin-PowerMacintosh b/src/Make.Darwin-PowerMacintosh
t@@ -1,8 +0,0 @@
-CC=gcc
-CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -I${PREFIX}/include
-O=o
-AR=ar
-ARFLAGS=rvc
-NAN=nan64.$O
-RANLIB=ranlib
-LD=gcc
diff --git a/src/Make.FreeBSD-386 b/src/Make.FreeBSD-386
t@@ -1,8 +0,0 @@
-CC=gcc
-CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -I$(PREFIX)/include
-O=o
-AR=ar
-ARFLAGS=rvc
-NAN=nan64.$O        # default, can be overriden by Make.$(SYSNAME)
-NAN=nan64.$O
-RANLIB=true
diff --git a/src/Make.HP-UX-9000 b/src/Make.HP-UX-9000
t@@ -1,7 +0,0 @@
-CC=cc
-CFLAGS=-O -c -Ae -I.
-O=o
-AR=ar
-ARFLAGS=rvc
-NAN=nan64.$O
-RANLIB=true
diff --git a/src/Make.Linux-386 b/src/Make.Linux-386
t@@ -1,8 +0,0 @@
-CC=gcc
-CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I.
-O=o
-AR=ar
-ARFLAGS=rvc
-NAN=nan64.$O        # default, can be overriden by Make.$(SYSNAME)
-NAN=nan64.$O
-RANLIB=true
diff --git a/src/Make.NetBSD-386 b/src/Make.NetBSD-386
t@@ -1,8 +0,0 @@
-CC=gcc
-CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -I$(PREFIX)/include
-O=o
-AR=ar
-ARFLAGS=rvc
-NAN=nan64.$O        # default, can be overriden by Make.$(SYSNAME)
-NAN=nan64.$O
-RANLIB=true
diff --git a/src/Make.OSF1-alpha b/src/Make.OSF1-alpha
t@@ -1,7 +0,0 @@
-CC=cc
-CFLAGS+=-g -c -I.
-O=o
-AR=ar
-ARFLAGS=rvc
-NAN=nan64.$O
-RANLIB=true
diff --git a/src/Make.SunOS-sun4u b/src/Make.SunOS-sun4u
t@@ -1,3 +0,0 @@
-include Make.SunOS-sun4u-$(CC)
-NAN=nan64.$O
-RANLIB=true
diff --git a/src/Make.SunOS-sun4u-cc b/src/Make.SunOS-sun4u-cc
t@@ -1,5 +0,0 @@
-CC=cc
-CFLAGS+=-g -c -I. -O
-O=o
-AR=ar
-ARFLAGS=rvc
diff --git a/src/Make.SunOS-sun4u-gcc b/src/Make.SunOS-sun4u-gcc
t@@ -1,5 +0,0 @@
-CC=gcc
-CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c
-O=o
-AR=ar
-ARFLAGS=rvc
diff --git a/src/Makecommon b/src/Makecommon
t@@ -1,17 +0,0 @@
-.c.$O:
-        @echo cc $*.c
-        @$(CC) $(CFLAGS) -I$(PLAN9)/include $*.c
-
-%.$O: %.c
-        @echo cc $*.c
-        @$(CC) $(CFLAGS) -I$(PLAN9)/include $*.c
-
-$(OFILES): $(HFILES)
-
-clean:
-        rm -f $(CLEANFILES)
-
-nuke:
-        rm -f $(CLEANFILES) $(NUKEFILES)
-
-.phony: all install clean nuke
diff --git a/src/Makefile b/src/Makefile
t@@ -1,21 +0,0 @@
-LIBS=\
-        lib9\
-        libbio\
-        libdraw\
-        libfmt\
-        libframe\
-        libregexp\
-        libthread\
-        libutf\
-
-CMDS=\
-        cmd/mk\
-        cmd/sam\
-        cmd/samterm\
-
-all clean install nuke:
-        for i in $(LIBS) $(CMDS); \
-        do \
-                (echo $$i; cd $$i; $(MAKE) $@); \
-        done
-
diff --git a/src/Makehdr b/src/Makehdr
t@@ -1,23 +0,0 @@
-# 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=
-
-BIN=$(PLAN9)/bin
-
-include $(PLAN9)/src/Make.$(SYSNAME)-$(OBJTYPE)
-LDFLAGS+=-L$(PLAN9)/lib
-
-CLEANFILES=*.$O
-NUKEFILES=
-
diff --git a/src/Makemany b/src/Makemany
t@@ -1,15 +0,0 @@
-all: $(TARG)
-
-a.%: %.o $(OFILES)
-        $(CC) -o $@ $^ $(LDFLAGS)
-
-CLEANFILES+=$(TARG)
-NUKEFILES+=$(BIN)/$(TARG)
-
-include $(PLAN9)/src/Makecommon
-
-install: $(TARG)
-        for i in $(TARG); do cp a.$$i $(BIN); done
-
-
-
diff --git a/src/Makeone b/src/Makeone
t@@ -1,13 +0,0 @@
-all: $(TARG)
-
-$(TARG): $(OFILES)
-        $(CC) -o $(TARG) $(OFILES) $(LDFLAGS)
-
-CLEANFILES+=$(TARG)
-NUKEFILES+=$(BIN)/$(TARG)
-
-include $(PLAN9)/src/Makecommon
-
-install: $(TARG)
-        cp $(TARG) $(BIN)
-
diff --git a/src/Makesyslib b/src/Makesyslib
t@@ -1,9 +0,0 @@
-all install: $(PLAN9)/lib/$(LIB)
-
-$(PLAN9)/lib/$(LIB): $(OFILES)
-        $(AR) $(ARFLAGS) $(PLAN9)/lib/$(LIB) $(OFILES)
-        $(RANLIB) $(PLAN9)/lib/$(LIB)
-
-include $(PLAN9)/src/Makecommon
-
-NUKEFILES+=$(PLAN9)/lib/$(LIB)
diff --git a/src/libframe/Makefile b/src/libframe/Makefile
t@@ -1,22 +0,0 @@
-PLAN9=../..
-include $(PLAN9)/src/Makehdr
-
-LIB=libframe.a
-
-OFILES=\
-        frbox.$O\
-        frdelete.$O\
-        frdraw.$O\
-        frinit.$O\
-        frinsert.$O\
-        frptofchar.$O\
-        frselect.$O\
-        frstr.$O\
-        frutil.$O\
-
-HFILES=\
-        $(PLAN9)/include/frame.h\
-        $(PLAN9)/include/draw.h\
-
-include $(PLAN9)/src/Makesyslib
-
diff --git a/src/libframe/mkfile b/src/libframe/mkfile
t@@ -0,0 +1,22 @@
+PLAN9=../..
+<$PLAN9/src/mkhdr
+
+LIB=libframe.a
+
+OFILES=\
+        frbox.$O\
+        frdelete.$O\
+        frdraw.$O\
+        frinit.$O\
+        frinsert.$O\
+        frptofchar.$O\
+        frselect.$O\
+        frstr.$O\
+        frutil.$O\
+
+HFILES=\
+        $PLAN9/include/frame.h\
+        $PLAN9/include/draw.h\
+
+<$PLAN9/src/mksyslib
+
diff --git a/src/libip/mkfile b/src/libip/mkfile
t@@ -0,0 +1,20 @@
+PLAN9=../..
+<$PLAN9/src/mkhdr
+
+LIB=libip.a
+OFILES=\
+        eipfmt.$O\
+        parseip.$O\
+        parseether.$O\
+        myetheraddr.$O\
+        myipaddr.$O\
+        classmask.$O\
+        bo.$O\
+        readipifc.$O\
+        ipaux.$O\
+        ptclbsum.$O\
+
+HFILES=\
+        ip.h
+
+<$PLAN9/src/mksyslib
diff --git a/src/libregexp/Makefile b/src/libregexp/Makefile
t@@ -1,27 +0,0 @@
-PLAN9=../..
-include $(PLAN9)/src/Makehdr
-
-LIB=libregexp9.a
-
-OFILES=\
-        regcomp.$O\
-        regerror.$O\
-        regexec.$O\
-        regsub.$O\
-        regaux.$O\
-        rregaux.$O\
-        rregexec.$O\
-        rregsub.$O\
-
-HFILES=\
-        $(PLAN9)/include/regexp9.h\
-        regcomp.h\
-
-include $(PLAN9)/src/Makesyslib
-
-test: test.$O $(LIB)
-        $(CC) -o test test.$O $(LIB) -L/usr/local/lib -lfmt -lutf
-
-test2: test2.$O $(LIB)
-        $(CC) -o test2 test2.$O $(LIB) -L/usr/local/lib -lfmt -lutf
-
diff --git a/src/libregexp/mkfile b/src/libregexp/mkfile
t@@ -0,0 +1,27 @@
+PLAN9=../..
+<$PLAN9/src/mkhdr
+
+LIB=libregexp9.a
+
+OFILES=\
+        regcomp.$O\
+        regerror.$O\
+        regexec.$O\
+        regsub.$O\
+        regaux.$O\
+        rregaux.$O\
+        rregexec.$O\
+        rregsub.$O\
+
+HFILES=\
+        $PLAN9/include/regexp9.h\
+        regcomp.h\
+
+<$PLAN9/src/mksyslib
+
+test: test.$O $LIB
+        $CC -o test test.$O $LIB -L/usr/local/lib -lfmt -lutf
+
+test2: test2.$O $LIB
+        $CC -o test2 test2.$O $LIB -L/usr/local/lib -lfmt -lutf
+
diff --git a/src/libutf/Makefile b/src/libutf/Makefile
t@@ -1,31 +0,0 @@
-PLAN9=../..
-include $(PLAN9)/src/Makehdr
-
-LIB=libutf.a
-
-OFILES=\
-        rune.$O\
-        runestrcat.$O\
-        runestrchr.$O\
-        runestrcmp.$O\
-        runestrcpy.$O\
-        runestrdup.$O\
-        runestrlen.$O\
-        runestrecpy.$O\
-        runestrncat.$O\
-        runestrncmp.$O\
-        runestrncpy.$O\
-        runestrrchr.$O\
-        runestrstr.$O\
-        runetype.$O\
-        utfecpy.$O\
-        utflen.$O\
-        utfnlen.$O\
-        utfrrune.$O\
-        utfrune.$O\
-        utfutf.$O\
-
-HFILES=\
-        $(PLAN9)/include/utf.h\
-
-include $(PLAN9)/src/Makesyslib
diff --git a/src/libutf/mkfile b/src/libutf/mkfile
t@@ -0,0 +1,31 @@
+PLAN9=../..
+<$PLAN9/src/mkhdr
+
+LIB=libutf.a
+
+OFILES=\
+        rune.$O\
+        runestrcat.$O\
+        runestrchr.$O\
+        runestrcmp.$O\
+        runestrcpy.$O\
+        runestrdup.$O\
+        runestrlen.$O\
+        runestrecpy.$O\
+        runestrncat.$O\
+        runestrncmp.$O\
+        runestrncpy.$O\
+        runestrrchr.$O\
+        runestrstr.$O\
+        runetype.$O\
+        utfecpy.$O\
+        utflen.$O\
+        utfnlen.$O\
+        utfrrune.$O\
+        utfrune.$O\
+        utfutf.$O\
+
+HFILES=\
+        $PLAN9/include/utf.h\
+
+<$PLAN9/src/mksyslib