SHELL = /bin/bash CFLAGS = -Wall -g -DNDEBUG -fPIC LDLIBS = -ldl EXERCISES := $(shell ./list-exercises) all: $(EXERCISES) libex29.so ex19: object.o ex22_main: ex22.o libex29.so: libex29.o $(CC) -shared -o $@ $< clean: shopt -s nullglob ; \ $(RM) $(EXERCISES) *.o *.a test: @./runtests exercises: @echo $(EXERCISES)