##	Makefile for the SR Makefile Maker, srm.


CFLAGS = -g
SHELL = /bin/sh


O =	main.o alloc.o twalk.o srfile.o fill.o opts.o
OBJ =	$(O) lex.yy.o ../util.o
LIB =	-ll

SABER =	$(O:o=c) lex.yy.o ../util.c


srm:	$(OBJ)
	$(CC) $(CFLAGS) -o srm $(OBJ) $(LIB)

lex.yy.c: scan.l
	lex scan.l


install:
	cd ..; make i-srm

clean:
	rm -f *.o core lex.yy.c


depend:	lex.yy.c
	sh ../depend.sh


lint:	lex.yy.c
	lint *.c ../util.c >lint.raw
	sed -f lint.sed <lint.raw >lint.out

tags:
	/usr/local/gnuemacs/etc/etags *.c
TAGS:
	ctags *.c

saber:	$(SABER)
	#load $(SABER) $(LIB)


################################################################################
# The rest of this file is generated by `make depend'.  Don't change it by hand.
################################################################################

# >>DO NOT DELETE THIS LINE<< #
#   "make depend" was last run:  Fri Jul 21 22:18:12 MST 1989
alloc.o: alloc.c
alloc.o: ../util.h
alloc.o: srm.h
alloc.o: ../libc.h
fill.o: fill.c
fill.o: ../config.h
fill.o: srm.h
fill.o: ../libc.h
lex.yy.o: lex.yy.c
lex.yy.o: ../util.h
lex.yy.o: srm.h
lex.yy.o: ../libc.h
main.o: main.c
main.o: ../config.h
main.o: ../paths.h
main.o: ../util.h
main.o: srm.h
main.o: ../libc.h
opts.o: opts.c
opts.o: srm.h
opts.o: ../libc.h
srfile.o: srfile.c
srfile.o: ../config.h
srfile.o: ../util.h
srfile.o: srm.h
srfile.o: ../libc.h
twalk.o: twalk.c
twalk.o: srm.h
twalk.o: ../libc.h
