1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
CC=gcc -g -Wall PROGS=slist list simpleq tailq circleq all: $(PROGS) slist: slist.c $(CC) -o $@ $? list: list.c $(CC) -o $@ $? simpleq: simpleq.c $(CC) -o $@ $? tailq: tailq.c $(CC) -o $@ $? circelq: circleq.c $(CC) -o $@ $? clean: rm -f $(PROGS) *.core