This commit is contained in:
Dan Buch
2016-04-16 15:35:47 -04:00
parent d8c63c261d
commit 1fdab16d96
3 changed files with 85 additions and 3 deletions

View File

@@ -1,14 +1,18 @@
SHELL=/bin/bash
CFLAGS=-Wall -g -DNDEBUG
SHELL = /bin/bash
CFLAGS = -Wall -g -DNDEBUG -fPIC
LDLIBS = -ldl
EXERCISES := $(shell ./list-exercises)
all: $(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