comp20003-project01/Makefile

15 lines
325 B
Makefile
Raw Permalink Normal View History

2024-06-12 00:08:20 +10:00
BUILDDIR=$(CURDIR)/build
voronoi1: build/common.o build/dcel.o build/voronoi.o build/main.o | $(BUILDDIR)
gcc -Wall -Wextra -Werror -pedantic -g -o voronoi1 $^
build/%.o: src/%.c
gcc -Wall -Wextra -Werror -pedantic -g -c $< -o $@
$(BUILDDIR):
mkdir -p $(BUILDDIR)
clean:
@rm -rf build
@rm -f voronoi1