You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
box-o-sand/Makefile

25 lines
382 B

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