Added lintlib

This commit is contained in:
ceriel 1987-05-18 13:10:25 +00:00
parent 46a07e1da5
commit ff505d48ed
2 changed files with 12 additions and 2 deletions

View file

@ -3,7 +3,8 @@ LIBPRINT = libprint.a
MODDIR=$(EMHOME)/modules MODDIR=$(EMHOME)/modules
INSTALL = $(MODDIR)/install INSTALL = $(MODDIR)/install
COMPARE = $(MODDIR)/compare 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 SRC = doprnt.c fprint.c print.c sprint.c format.c
OBJ = doprnt.o fprint.o print.o sprint.o format.o OBJ = doprnt.o fprint.o print.o sprint.o format.o
@ -31,6 +32,10 @@ opr:
clean: clean:
rm -f *.o $(LIBPRINT) rm -f *.o $(LIBPRINT)
lintlib:
lint $(INCLUDES) -Cprint $(SRC)
mv llib-lprint.ln $(MODDIR)/lib
doprnt.o: param.h doprnt.o: param.h
fprint.o: param.h fprint.o: param.h
print.o: param.h print.o: param.h

View file

@ -3,7 +3,8 @@ MODULES = $(EMHOME)/modules
INSTALL = $(MODULES)/install INSTALL = $(MODULES)/install
COMPARE = $(MODULES)/compare COMPARE = $(MODULES)/compare
LIBSYS = libsystem.a LIBSYS = libsystem.a
CFLAGS = -I. -O INCLUDES = -I.
CFLAGS = $(INCLUDES) -O
OBJ = access.o break.o chmode.o close.o create.o filesize.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 \ modtime.o lock.o open.o read.o remove.o stop.o \
system.o time.o unlock.o write.o system.o time.o unlock.o write.o
@ -38,6 +39,10 @@ pr:
opr: opr:
make pr | opr make pr | opr
lintlib:
lint $(INCLUDES) -Csystem $(CSRC)
mv llib-lsystem.ln $(MODULES)/lib
access.o: system.h access.o: system.h
break.o: system.h break.o: system.h
close.o: system.h close.o: system.h