From 3bff0b20ac0599c335a0e5714e2ce537b11c50e7 Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Wed, 22 Aug 1990 12:17:36 +0000 Subject: [PATCH] add LCC - a better C-Compiler for WEGA --- WEGA/contrib/lcc/cmd/c2/makefile | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 WEGA/contrib/lcc/cmd/c2/makefile diff --git a/WEGA/contrib/lcc/cmd/c2/makefile b/WEGA/contrib/lcc/cmd/c2/makefile new file mode 100644 index 0000000..d27cc26 --- /dev/null +++ b/WEGA/contrib/lcc/cmd/c2/makefile @@ -0,0 +1,54 @@ +# +# makefile for lcopt +# + +SHELL=/bin/sh + +OWN= wega +GRP= system +PROT= 751 + +ROOT= /z/LCC +LIB= $(ROOT)/lib +CC= lcc + +CFLAGS= -O + +all: lcopt + +lcopt: c20.o c21.o + lcc -o lcopt c2*.o + chmog $(PROT) $(OWN) $(GRP) lcopt + +c20.o c21.o: c2.h + +move: + rm -f $(LIB)/lcopt + cp lcopt $(LIB)/lcopt + chmog $(PROT) $(OWN) $(GRP) $(LIB)/lcopt + +install: all save move + +#-------------------------- + +uninstall: $(LIB)/OLDlcopt + + mv $(LIB)/OLDlcopt $(LIB)/lcopt + +#-------------------------- + +save: + if test -f $(LIB)/lcopt ; \ + then \ + rm -f $(LIB)/OLDlcopt ; \ + mv $(LIB)/lcopt $(LIB)/OLDlcopt ; \ + fi + +clean: + -rm -f *.o lcopt + +clobber: + -rm -f *.o lcopt + +c.o. : + cc $(CFLAGS) -c $<