CCL Home Page
Up Directory CCL makefile
TARGETS = hack exam1 exam2 exam3 c50lib.tar.gz
SOURCES = makefile c50lib.c c50lib.h common.c hack.c \
	  exam1.c exam2.c exam3.c

all: $(TARGETS)

c50lib.o: c50lib.c c50lib.h
	gcc -g -DQUASISTATIC="" -c -o c50lib.o c50lib.c

.c.o:
	gcc -g -c -o $@ $(@:.o=.c)

hack: hack.o c50lib.o common.o
	gcc -g -o hack hack.o c50lib.o common.o

exam1: exam1.o c50lib.o common.o
	gcc -g -o exam1 exam1.o c50lib.o common.o

exam2: exam2.o c50lib.o common.o
	gcc -g -o exam2 exam2.o c50lib.o common.o

exam3: exam3.o c50lib.o common.o
	gcc -g -o exam3 exam3.o c50lib.o common.o

tgz: c50lib.tar.gz

c50lib.tar.gz: $(SOURCES)
	rm -f c50lib.tar.gz
	tar cf c50lib.tar $(SOURCES)
	gzip c50lib.tar

clean:
	rm -f *~ *.o $(TARGETS)

Modified: Sat Mar 30 17:00:00 1996 GMT
Page accessed 5799 times since Sat Apr 17 22:02:50 1999 GMT