2016-04-16 19:35:47 +00:00
|
|
|
SHELL = /bin/bash
|
|
|
|
CFLAGS = -Wall -g -DNDEBUG -fPIC
|
|
|
|
LDLIBS = -ldl
|
2016-04-12 03:21:45 +00:00
|
|
|
|
2016-04-13 14:36:55 +00:00
|
|
|
EXERCISES := $(shell ./list-exercises)
|
2016-04-13 13:41:20 +00:00
|
|
|
|
2016-07-24 22:01:01 +00:00
|
|
|
all: $(EXERCISES)
|
2016-04-12 03:25:45 +00:00
|
|
|
|
2016-04-13 22:28:47 +00:00
|
|
|
ex19: object.o
|
|
|
|
|
2016-04-16 02:08:05 +00:00
|
|
|
ex22_main: ex22.o
|
|
|
|
|
2016-04-12 03:21:45 +00:00
|
|
|
clean:
|
2016-04-13 22:28:47 +00:00
|
|
|
shopt -s nullglob ; \
|
|
|
|
$(RM) $(EXERCISES) *.o *.a
|
2016-04-13 13:41:20 +00:00
|
|
|
|
|
|
|
test:
|
2016-04-13 14:36:55 +00:00
|
|
|
@./runtests
|
|
|
|
|
|
|
|
exercises:
|
|
|
|
@echo $(EXERCISES)
|
2016-07-24 22:01:01 +00:00
|
|
|
|
|
|
|
.PHONY: docker-image
|
|
|
|
docker-image:
|
|
|
|
docker build -t meatballhat/lcthw:latest .
|
|
|
|
|
|
|
|
.PHONY: docker-run
|
|
|
|
docker-run:
|
2016-08-29 16:45:08 +00:00
|
|
|
docker run -it -v $(PWD):/app meatballhat/lcthw
|