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
|
2020-12-17 06:58:33 +00:00
|
|
|
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
|
|
|
|
2020-12-17 06:58:33 +00:00
|
|
|
$(PART_1_BIN_NAME): day17p1.cpp common.hpp
|
2020-12-17 06:46:26 +00:00
|
|
|
$(CC) -o $@ $(CCFLAGS) $(LDFLAGS) day17p1.cpp
|
|
|
|
|
2020-12-17 06:58:33 +00:00
|
|
|
$(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
|
|
|
|