comp20003-project02/Makefile

16 lines
370 B
Makefile
Raw Normal View History

2024-06-12 23:50:48 +10:00
BUILDDIR=$(CURDIR)/build
NAME=voronoi2
$(NAME): build/common.o build/towers.o build/dcel.o build/voronoi.o build/input.o build/main.o | $(BUILDDIR)
gcc -Wall -Wextra -Werror -pedantic -g -o $(NAME) $^ -lm
build/%.o: src/%.c
gcc -Wall -Wextra -Werror -pedantic -g -c $< -o $@
$(BUILDDIR):
mkdir -p $(BUILDDIR)
clean:
@rm -rf build
@rm -f $(NAME)