Working version of ex22

This commit is contained in:
Dan Buch
2011-11-01 21:56:34 -04:00
parent 877763c15c
commit f2110a5d13
4 changed files with 99 additions and 3 deletions

View File

@@ -1,12 +1,17 @@
CFLAGS=-Wall -g -DNDEBUG
EXERCISES = $(patsubst %.c,%,$(shell ls ex*.c | grep -v ex19))
EXERCISES = $(patsubst %.c,%,$(shell ls ex*.c | egrep -v "ex(19|22)"))
all: $(EXERCISES)
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