This commit is contained in:
louiscklaw
2025-01-31 21:28:24 +08:00
parent ca0eb416dd
commit 86fddf271b
10 changed files with 336 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# COMP1521 22T2 ... a general makefile for multiple exercises
ifneq (, $(shell which dcc))
CC = dcc
else ifneq (, $(shell which clang) )
CC = clang
else
CC = gcc
endif
EXERCISES ?=
CLEAN_FILES ?=
.DEFAULT_GOAL = all
.PHONY: all clean
-include *.mk
all: ${EXERCISES}
clean:
-rm -f ${CLEAN_FILES}