box-o-sand/lcthw-remnants-2/Makefile
2016-04-16 15:35:47 -04:00

25 lines
328 B
Makefile

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)