|
|
@ -4,15 +4,12 @@ LDLIBS = -ldl
|
|
|
|
|
|
|
|
|
|
|
|
EXERCISES := $(shell ./list-exercises)
|
|
|
|
EXERCISES := $(shell ./list-exercises)
|
|
|
|
|
|
|
|
|
|
|
|
all: $(EXERCISES) libex29.so
|
|
|
|
all: $(EXERCISES)
|
|
|
|
|
|
|
|
|
|
|
|
ex19: object.o
|
|
|
|
ex19: object.o
|
|
|
|
|
|
|
|
|
|
|
|
ex22_main: ex22.o
|
|
|
|
ex22_main: ex22.o
|
|
|
|
|
|
|
|
|
|
|
|
libex29.so: libex29.o
|
|
|
|
|
|
|
|
$(CC) -shared -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
clean:
|
|
|
|
shopt -s nullglob ; \
|
|
|
|
shopt -s nullglob ; \
|
|
|
|
$(RM) $(EXERCISES) *.o *.a
|
|
|
|
$(RM) $(EXERCISES) *.o *.a
|
|
|
@ -22,3 +19,11 @@ test:
|
|
|
|
|
|
|
|
|
|
|
|
exercises:
|
|
|
|
exercises:
|
|
|
|
@echo $(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
|
|
|
|