plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 99947423b136903263513b9022aab6586c8c6cc5
parent db6608bd819d10cc2ddb57d18054d62d4ca15596
Author: rsc <devnull@localhost>
Date:   Sun, 23 Nov 2003 18:22:36 +0000

make -> mk

Diffstat:
Dsrc/Make.Darwin-PowerMacintosh | 8--------
Dsrc/Make.FreeBSD-386 | 8--------
Dsrc/Make.HP-UX-9000 | 7-------
Dsrc/Make.Linux-386 | 8--------
Dsrc/Make.NetBSD-386 | 8--------
Dsrc/Make.OSF1-alpha | 7-------
Dsrc/Make.SunOS-sun4u | 3---
Dsrc/Make.SunOS-sun4u-cc | 5-----
Dsrc/Make.SunOS-sun4u-gcc | 5-----
Dsrc/Makecommon | 17-----------------
Dsrc/Makefile | 21---------------------
Dsrc/Makehdr | 23-----------------------
Dsrc/Makemany | 15---------------
Dsrc/Makeone | 13-------------
Dsrc/Makesyslib | 9---------
Dsrc/libframe/Makefile | 22----------------------
Asrc/libframe/mkfile | 22++++++++++++++++++++++
Asrc/libip/mkfile | 20++++++++++++++++++++
Dsrc/libregexp/Makefile | 27---------------------------
Asrc/libregexp/mkfile | 27+++++++++++++++++++++++++++
Dsrc/libutf/Makefile | 31-------------------------------
Asrc/libutf/mkfile | 31+++++++++++++++++++++++++++++++
22 files changed, 100 insertions(+), 237 deletions(-)

diff --git a/src/Make.Darwin-PowerMacintosh b/src/Make.Darwin-PowerMacintosh @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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