15 lines
370 B
Makefile
15 lines
370 B
Makefile
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)
|