comp20003-project01/Makefile

14 lines
325 B
Makefile

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