CC=cc INCLUDES=-I../include -I. CFLAGS=-fno-common $(INCLUDES) WFLAGS= -Wall \ -pedantic \ -Wpointer-arith \ -Wstrict-prototypes \ -Wmissing-declarations \ -Wnested-externs \ -Wshadow \ -Wmissing-prototypes #CFLAGS = $(WFLAGS) -fno-common $(INCLUDES) # 4 lines OBS = \ regsub.o\ regexp.o LIB= ../lib/reg.a INC= ../include/reg.h $(LIB): $(OBS) ar r $@ $(OBS) && ranlib $@ # deps -I../include ######################################## !! sh regexp.o: \ regexp.c \ libregConfig.h \ ../include/reg.h \ regmagic.h \ ../include/appDebugon.h \ ../include/appDebug.h regsub.o: \ regsub.c \ libregConfig.h \ ../include/reg.h \ regmagic.h \ ../include/appDebugon.h \ ../include/appDebug.h