Working version of ex22
This commit is contained in:
9
Makefile
9
Makefile
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user