This commit is contained in:
louiscklaw
2025-02-01 02:04:13 +08:00
commit c95f0ffd0e
13 changed files with 384 additions and 0 deletions

22
task1/provided/Makefile Normal file
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}