From dff7059c95d75e458fb77c1923a4e80df03cced2 Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Tue, 12 Jun 1990 15:40:35 +0000 Subject: [PATCH] add LCC - a better C-Compiler for WEGA --- WEGA/contrib/lcc/cmd/cpp/makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 WEGA/contrib/lcc/cmd/cpp/makefile diff --git a/WEGA/contrib/lcc/cmd/cpp/makefile b/WEGA/contrib/lcc/cmd/cpp/makefile new file mode 100644 index 0000000..f6537d5 --- /dev/null +++ b/WEGA/contrib/lcc/cmd/cpp/makefile @@ -0,0 +1,31 @@ +COMSRC= . +INSTDIR= /z/LCC/lib +CC= lcc +CFLAGS= -O +DEFLIST= -Dunix -Du8k +INCLIST= -I$(COMSRC) + +FLEX= -DFLEXNAMES + +CC_CMD= $(CC) -c $(CFLAGS) $(DEFLIST) $(FLEX) $(INCLIST) + +OFILES= cpp.o cpy.o + +#------------------------- +lcpp: $(OFILES) makefile + lcc -o lcpp $(OFILES) + chmod 751 lcpp + +install: lcpp + cp lcpp $(INSTDIR) + chmod 751 $(INSTDIR)/lcpp + +cpy.c : $(COMSRC)/cpy.y + $(YACC) $(COMSRC)/cpy.y + mv y.tab.c cpy.c + +cpy.o: cpy.c $(COMSRC)/yylex.c + $(CC_CMD) ./cpy.c + +cpp.o: $(COMSRC)/cpp.c + $(CC_CMD) $(COMSRC)/cpp.c