From 5fe6bf0fcdcfc85c90285a665783155485ef1ca7 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 18 Mar 1987 09:35:31 +0000 Subject: [PATCH] made to work on pdp-11 --- lang/cem/cemcom/Makefile | 9 +++++---- lang/cem/cemcom/Resolve | 12 +++++++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lang/cem/cemcom/Makefile b/lang/cem/cemcom/Makefile index a1636dd18..44f28ad77 100644 --- a/lang/cem/cemcom/Makefile +++ b/lang/cem/cemcom/Makefile @@ -44,6 +44,7 @@ GENOPTIONS = # Special #defines during compilation CDEFS = $(EM_INCLUDES) $(LIB_INCLUDES) CFLAGS = $(CDEFS) $(COPTIONS) -O +LDFLAGS = -i # Grammar files and their objects LSRC = tokenfile.g declar.g statement.g expression.g program.g @@ -139,11 +140,11 @@ lint: Cfiles @rm -f nmclash.o a.out longnames: $(SRC) $(HFILES) - sh -c 'if test -f longnames ; then $(PRID) -l7 longnames $? > Xlongnames ; mv Xlongnames longnames ; else $(PRID) -l7 $? > longnames ; fi' + sh -c 'if test -f longnames ; then : ; else touch longnames ; fi ; $(PRID) -l7 longnames $? > Xlongnames ; mv Xlongnames longnames' # entry points not to be used directly -Cfiles: hfiles LLfiles $(GENCFILES) $(GHSTRSRC) $(GHSRC) makefile +Cfiles: hfiles LLfiles $(GENCFILES) $(GSRC) $(GHSRC) makefile echo $(SRC) $(HFILES) > Cfiles hfiles: ./make.hfiles Parameters @@ -193,11 +194,11 @@ depend: Cfiles #INCLINCLINCLINCL $(CURRDIR)/main: $(OBJ) $(CURRDIR)/makefile - $(CC) $(COPTIONS) $(LFLAGS) $(OBJ) $(LIBS) -o $(CURRDIR)/main + $(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(LIBS) -o $(CURRDIR)/main size $(CURRDIR)/main $(CURRDIR)/emain: $(OBJ) $(CURRDIR)/makefile - $(CC) $(COPTIONS) $(LFLAGS) $(OBJ) $(ELIBS) -o $(CURRDIR)/emain + $(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(ELIBS) -o $(CURRDIR)/emain size $(CURRDIR)/emain Xlint: diff --git a/lang/cem/cemcom/Resolve b/lang/cem/cemcom/Resolve index 5522cc6f8..cc5a90842 100755 --- a/lang/cem/cemcom/Resolve +++ b/lang/cem/cemcom/Resolve @@ -40,11 +40,6 @@ else mv Xclashes clashes fi rm -f makefile -ed - $PW/makefile <<'EOF' -/^#EXCLEXCL/,/^#INCLINCL/d -w makefile -q -EOF for i in `cat $PW/Cfiles` do cat >> makefile < $i EOF done +make `cat $PW/Cfiles` +rm -f makefile +ed - $PW/makefile <<'EOF' +/^#EXCLEXCL/,/^#INCLINCL/d +w makefile +q +EOF make CURRDIR=$PW $target -- 2.34.1