From 351429c19c5d41eaddb5da4f276e51a2af1fcdda Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 14 Jul 1988 09:15:21 +0000 Subject: [PATCH] make to work again --- util/cgg/Makefile | 2 +- util/cgg/bootgram.y | 8 ++++++++ util/cgg/booth.h | 6 ------ util/cgg/bootlex.l | 7 +++++++ util/cgg/main.c | 7 +++++++ 5 files changed, 23 insertions(+), 7 deletions(-) diff --git a/util/cgg/Makefile b/util/cgg/Makefile index 488881914..8de776262 100644 --- a/util/cgg/Makefile +++ b/util/cgg/Makefile @@ -6,7 +6,7 @@ LDFLAGS=-i LINTOPTS=-hbxac $(PREFLAGS) LIBS=../../lib/em_data.a # LEXLIB is system dependent, try -ll or -lln first -LEXLIB=-lln +LEXLIB = -lln cgg: bootgram.o main.o bootlex.o $(CC) $(LDFLAGS) bootgram.o main.o bootlex.o $(LIBS) $(LEXLIB) -o cgg diff --git a/util/cgg/bootgram.y b/util/cgg/bootgram.y index f74d95817..41aca0721 100644 --- a/util/cgg/bootgram.y +++ b/util/cgg/bootgram.y @@ -11,8 +11,16 @@ static char rcsid[]="$Header$"; * Author: Hans van Staveren */ +#include +#include +#include +#include +#include +#include + #define extern #include "booth.h" +#undef extern %} diff --git a/util/cgg/booth.h b/util/cgg/booth.h index 42c5a9a20..e44c8a4c7 100644 --- a/util/cgg/booth.h +++ b/util/cgg/booth.h @@ -55,12 +55,6 @@ typedef char * string; extern char *malloc(),*myalloc(); -#include -#include -#include -#include -#include -#include #include typedef struct list1str { diff --git a/util/cgg/bootlex.l b/util/cgg/bootlex.l index 254c56270..99a49ba5c 100644 --- a/util/cgg/bootlex.l +++ b/util/cgg/bootlex.l @@ -16,6 +16,13 @@ static char rcsid2[]="$Header$"; #define MAXBACKUP 50 +#include +#include +#include +#include +#include +#include + #include "booth.h" #include "y.tab.h" %} diff --git a/util/cgg/main.c b/util/cgg/main.c index f397e3f34..bbbb06eaf 100644 --- a/util/cgg/main.c +++ b/util/cgg/main.c @@ -1,3 +1,10 @@ +#include +#include +#include +#include +#include +#include + #include "booth.h" char *strncpy(), strcpy(), sprintf(); -- 2.34.1