From: ceriel Date: Mon, 18 May 1987 13:10:25 +0000 (+0000) Subject: Added lintlib X-Git-Tag: release-5-5~4130 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ff505d48ed201696a3476d231a200729280b1f8b;p=ack.git Added lintlib --- diff --git a/modules/src/print/Makefile b/modules/src/print/Makefile index c31d46f8c..93c8c629c 100644 --- a/modules/src/print/Makefile +++ b/modules/src/print/Makefile @@ -3,7 +3,8 @@ LIBPRINT = libprint.a MODDIR=$(EMHOME)/modules INSTALL = $(MODDIR)/install COMPARE = $(MODDIR)/compare -CFLAGS = -c -O -I$(MODDIR)/h +INCLUDES = -I$(MODDIR)/h +CFLAGS = -c -O $(INCLUDES) SRC = doprnt.c fprint.c print.c sprint.c format.c OBJ = doprnt.o fprint.o print.o sprint.o format.o @@ -31,6 +32,10 @@ opr: clean: rm -f *.o $(LIBPRINT) +lintlib: + lint $(INCLUDES) -Cprint $(SRC) + mv llib-lprint.ln $(MODDIR)/lib + doprnt.o: param.h fprint.o: param.h print.o: param.h diff --git a/modules/src/system/Makefile b/modules/src/system/Makefile index 213900183..dee6ac420 100644 --- a/modules/src/system/Makefile +++ b/modules/src/system/Makefile @@ -3,7 +3,8 @@ MODULES = $(EMHOME)/modules INSTALL = $(MODULES)/install COMPARE = $(MODULES)/compare LIBSYS = libsystem.a -CFLAGS = -I. -O +INCLUDES = -I. +CFLAGS = $(INCLUDES) -O OBJ = access.o break.o chmode.o close.o create.o filesize.o \ modtime.o lock.o open.o read.o remove.o stop.o \ system.o time.o unlock.o write.o @@ -38,6 +39,10 @@ pr: opr: make pr | opr +lintlib: + lint $(INCLUDES) -Csystem $(CSRC) + mv llib-lsystem.ln $(MODULES)/lib + access.o: system.h break.o: system.h close.o: system.h