From 869e3bdc9a3327fe3fd03fa7789f6c95934189a1 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 18 May 1987 13:37:44 +0000 Subject: [PATCH] Added lintlib --- modules/src/em_mes/Makefile | 7 ++++++- modules/src/input/Makefile | 4 ++++ modules/src/object/Makefile | 7 ++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/modules/src/em_mes/Makefile b/modules/src/em_mes/Makefile index 23945ff18..3d4e4ae78 100644 --- a/modules/src/em_mes/Makefile +++ b/modules/src/em_mes/Makefile @@ -6,7 +6,8 @@ SRC = C_ms_err.c C_ms_opt.c C_ms_emx.c C_ms_reg.c C_ms_src.c\ C_ms_flt.c C_ms_com.c C_ms_par.c C_ms_ego.c C_ms_gto.c OBJ = C_ms_err.o C_ms_opt.o C_ms_emx.o C_ms_reg.o C_ms_src.o\ C_ms_flt.o C_ms_com.o C_ms_par.o C_ms_ego.o C_ms_gto.o -CFLAGS=-I$(EMHOME)/h -I$(HDIR) -O +INCLUDES=-I$(EMHOME)/h -I$(HDIR) +CFLAGS = $(INCLUDES) -O all: libem_mes.a @@ -31,3 +32,7 @@ opr: clean: rm -f *.[oa] + +lintlib: + lint $(INCLUDES) -Cem_mes $(SRC) + mv llib-lem_mes.ln $(EMHOME)/modules/lib diff --git a/modules/src/input/Makefile b/modules/src/input/Makefile index bc97a7198..17dbaeb62 100644 --- a/modules/src/input/Makefile +++ b/modules/src/input/Makefile @@ -33,3 +33,7 @@ opr: clean: rm -f *.[oa] + +lintlib: + lint -Cinput AtEoIF.c AtEoIT.c + mv llib-linput.ln $(MODULES)/lib diff --git a/modules/src/object/Makefile b/modules/src/object/Makefile index d7699b74c..54cea5ba0 100644 --- a/modules/src/object/Makefile +++ b/modules/src/object/Makefile @@ -2,7 +2,8 @@ EMHOME = ../../.. MODULES = $(EMHOME)/modules INSTALL = $(MODULES)/install COMPARE = $(MODULES)/compare -CFLAGS = -O -I$(EMHOME)/h +INCLUDES = -I$(EMHOME)/h +CFLAGS = -O $(INCLUDES) CFILES = rd_arhdr.c wr_arhdr.c \ rd_ranlib.c wr_ranlib.c \ rd_bytes.c wr_bytes.c \ @@ -52,6 +53,10 @@ byte_order: byte_order.o byte_order.h: byte_order byte_order > byte_order.h +lintlib: byte_order.h + lint $(INCLUDES) -Cobject $(CFILES) + mv llib-lobject.ln $(MODULES)/lib + #AUTOAUTOAUTOAUTOAUTOAUTOAUTO rd_arhdr.o: byte_order.h object.h wr_arhdr.o: byte_order.h object.h -- 2.34.1