box-o-sand/Makefile

25 lines
382 B
Makefile
Raw Normal View History

2011-10-28 01:14:28 +00:00
CFLAGS=-Wall -g -DNDEBUG
2011-09-04 04:00:55 +00:00
2011-11-02 01:56:34 +00:00
EXERCISES = $(patsubst %.c,%,$(shell ls ex*.c | egrep -v "ex(19|22)"))
2011-09-05 02:18:49 +00:00
2011-11-02 01:56:34 +00:00
all: $(EXERCISES) ex22_main
$(MAKE) -f ex19.mk
2011-11-02 01:56:34 +00:00
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
2011-09-04 04:00:55 +00:00
clean:
2011-09-05 02:18:49 +00:00
rm -f $(EXERCISES)
$(MAKE) -f ex19.mk clean
.PHONY: all test clean