From ebacc5395f33140fb21f171bc7cbd9947326ab95 Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Wed, 9 May 1990 11:31:27 +0000 Subject: [PATCH] add LCC - a better C-Compiler for WEGA --- WEGA/contrib/lcc/lib/libc/u8k/makefile | 57 ++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 WEGA/contrib/lcc/lib/libc/u8k/makefile diff --git a/WEGA/contrib/lcc/lib/libc/u8k/makefile b/WEGA/contrib/lcc/lib/libc/u8k/makefile new file mode 100644 index 0000000..8f46980 --- /dev/null +++ b/WEGA/contrib/lcc/lib/libc/u8k/makefile @@ -0,0 +1,57 @@ +# +# makefile for libc/u8k +# + +SHELL=/bin/sh +PROT=644 +GRP=system +OWN=wega + +all: +# +# compile crt runtime routines, a makefile exists in the directory +# + cd crt ; make +# +# compile csu start up routines, a makefile exists in the directory +# + cd csu ; make +# +# compile gen routines, a makefile exists in the directory +# + cd gen ; make +# +# compile sys system call routines, a makefile exists in the directory +# + cd sys ; make + +archive: +# +# Note that "archive" is invoked with libc/object as current directory. +# +# figure out the correct ordering for all the archive modules except +# cuexit and fakcu, which must go at end of archive. + chmog $(PROT) $(OWN) $(GRP) *.o + mv cuexit.o cuexit.x + mv fakcu.o fakcu.x + mv signal.o signal.x +# $(LORDER) *.o | tsort >objlist # + ar q scratch.a *.o && lorder scratch.a | tsort > objlist; rm scratch.a + mv cuexit.x cuexit.o + mv fakcu.x fakcu.o + mv signal.x signal.o +# +# build the archive with the modules in correct order. + $(AR) q ../lib.Llibc signal.o `cat objlist` cuexit.o fakcu.o + $(AR) t ../lib.Llibc >../Llib.contents + rm -f *.o + +clean: + -rm -f *.o + +cleanc: + -rm -f crt/chrtab.o gen/malloc.o + +clobber: clean + -rm -f */*.o +