advent-of-code-2020/day17/Makefile

20 lines
387 B
Makefile
Raw Permalink Normal View History

2020-12-17 06:10:18 +00:00
CC=g++
2020-12-17 06:46:26 +00:00
PART_1_BIN_NAME=day17p1
PART_2_BIN_NAME=day17p2
CCFLAGS=-O2 -std=c++17
LDFLAGS=
2020-12-17 06:10:18 +00:00
.PHONY: all, clean
2020-12-17 06:46:26 +00:00
all: $(PART_1_BIN_NAME) $(PART_2_BIN_NAME)
2020-12-17 06:10:18 +00:00
clean:
2020-12-17 06:46:26 +00:00
rm -f $(PART_1_BIN_NAME) $(PART_2_BIN_NAME)
2020-12-17 06:10:18 +00:00
$(PART_1_BIN_NAME): day17p1.cpp common.hpp
2020-12-17 06:46:26 +00:00
$(CC) -o $@ $(CCFLAGS) $(LDFLAGS) day17p1.cpp
$(PART_2_BIN_NAME): day17p2.cpp common.hpp
2020-12-17 06:46:26 +00:00
$(CC) -o $@ $(CCFLAGS) $(LDFLAGS) day17p2.cpp
2020-12-17 06:10:18 +00:00