box-o-sand/lcthw-remnants/Makefile

23 lines
360 B
Makefile
Raw Normal View History

CFLAGS += -Wall -Wextra -pedantic -std=gnu99 -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 02:05:27 +00:00
all: $(EXERCISES)
$(MAKE) -f ex19.mk
2011-11-02 02:05:27 +00:00
$(MAKE) -f ex22.mk
2011-11-02 01:56:34 +00:00
test: all
$(MAKE) -f ex19.mk test
./test_ex24_iofunctions.sh
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
2011-11-02 02:05:27 +00:00
$(MAKE) -f ex22.mk clean
.PHONY: all test clean