30 lines
446 B
Makefile
30 lines
446 B
Makefile
SHELL = /bin/bash
|
|
CFLAGS = -Wall -g -DNDEBUG -fPIC
|
|
LDLIBS = -ldl
|
|
|
|
EXERCISES := $(shell ./list-exercises)
|
|
|
|
all: $(EXERCISES)
|
|
|
|
ex19: object.o
|
|
|
|
ex22_main: ex22.o
|
|
|
|
clean:
|
|
shopt -s nullglob ; \
|
|
$(RM) $(EXERCISES) *.o *.a
|
|
|
|
test:
|
|
@./runtests
|
|
|
|
exercises:
|
|
@echo $(EXERCISES)
|
|
|
|
.PHONY: docker-image
|
|
docker-image:
|
|
docker build -t meatballhat/lcthw:latest .
|
|
|
|
.PHONY: docker-run
|
|
docker-run:
|
|
docker run -it -v $(PWD):/app meatballhat/lcthw:latest bash -l
|