diff --git a/lang/occam/comp/Makefile b/lang/occam/comp/Makefile index bf25eb7b4..19c37210d 100644 --- a/lang/occam/comp/Makefile +++ b/lang/occam/comp/Makefile @@ -6,9 +6,10 @@ PRIMARY= occam.o Lpars.o keytab.o lex.yy.o code.o em.o SECUNDARY= symtab.o expr.o builtin.o TERTIARY= report.o LLOPT= +LEXLIB=-ll LIBRARY= $(MODLIB)/libem_mes.a $(MODLIB)/libemk.a \ $(MODLIB)/libprint.a $(MODLIB)/libstring.a \ - $(MODLIB)/libsystem.a -lln + $(MODLIB)/libsystem.a $(LEXLIB) CFLAGS = -Dvoid=int -O $(INCL) # void = int, because some compilers don't understand void HSRC = code.h em.h expr.h sizes.h symtab.h token.h diff --git a/util/ncgg/Makefile b/util/ncgg/Makefile index f44898584..fef1119f3 100644 --- a/util/ncgg/Makefile +++ b/util/ncgg/Makefile @@ -10,10 +10,11 @@ INCLUDES=-I$(EMH) CFLAGS=-O $(INCLUDES) YFLAGS=-v -d LDFLAGS=-i +LEXLIB=-ll cgg: cgg.o $(OFILES) output.o - cc $(LDFLAGS) $(OFILES) output.o $(EMHOME)/lib/em_data.a -ll -o cgg + cc $(LDFLAGS) $(OFILES) output.o $(EMHOME)/lib/em_data.a $(LEXLIB) -o cgg install: cgg rm -f $(EMHOME)/lib/ncgg