# Makefile for various versions of "mycat"

CC = gcc
LEX = flex
CFLAGS = -g



# For "mycat4", we'll give "make" all the gory details.
mycat4: mycat4.o dump4.o
	$(CC) -o mycat4 mycat4.o dump4.o

mycat4.o: mycat4.c
	$(CC) -c mycat4.c

dump4.o: dump4.c
	$(CC) -c dump4.c

# Note that it would have guessed the command lines correctly
# if we'd left them out, as in

mycat5: mycat5.o dump5.o



mycat6: mycat6.o dump6.o

mycat6.o: mycat6.c mystuff.h

dump6.o: dump6.c mystuff.h

# Extremely stripped down, using just the defaults
mycat:


clongword: clongword.c

lexlongword: lexlongword.c
lexlongword.c: lexlongword.l

caesar1:	caesar1.c
	$(CC) $(CFLAGS) caesar1.c -ll -o caesar1
caesar1.c:	caesar1.l

caesar2:	caesar2.c
	$(CC) $(CFLAGS) caesar2.c -ll -o caesar2
caesar2.c:	caesar2.l

