advent_of_code/2022/base/Makefile

17 lines
239 B
Makefile
Raw Normal View History

2022-11-30 17:27:20 +00:00
CXX ?= c++
CXXFLAGS ?= -std=c++11 -Wall -Wextra -pedantic -O2
PROJECT = PROJECT_NAME
all: ${PROJECT}
${PROJECT}: main.cpp
${CXX} ${CXXFLAGS} -o $@ $^
test: ${PROJECT}
./${PROJECT}
clean:
${RM} *.o ${PROJECT}
.PHONY: all clean test