box-o-sand/Makefile
2011-11-01 21:56:34 -04:00

25 lines
382 B
Makefile

CFLAGS=-Wall -g -DNDEBUG
EXERCISES = $(patsubst %.c,%,$(shell ls ex*.c | egrep -v "ex(19|22)"))
all: $(EXERCISES) ex22_main
$(MAKE) -f ex19.mk
ex22_main: ex22.c ex22_main.c ex22.h
$(CC) $(CFLAGS) -c -o ex22.o ex22.c
$(CC) $(CFLAGS) ex22_main.c ex22.o -o $@
test: all
$(MAKE) -f ex19.mk test
clean:
rm -f $(EXERCISES)
$(MAKE) -f ex19.mk clean
.PHONY: all test clean