aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: ed10a1aabc5ba358272ab3a3f00f9364024cb66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CXX = g++
CXXFLAGS = -Wall -Wextra -Wpedantic -std=c++2a -g
RELEASE = -O3 -march=native -mtune=native

objects = main.o

default: main

release:
	$(CXX) -c $(CXXFLAGS) $(RELEASE) main.cpp
	$(CXX) -o main main.o

%.o: %.cpp
	$(CXX) -c $(CXXFLAGS) $<

main: $(objects)
	g++ -o $@ $^

clean:
	rm $(objects)