aboutsummaryrefslogtreecommitdiff
path: root/aberth/Makefile
blob: c5a67cf4b7abfbb5bd00085921e9a9fdce1e30c5 (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 -std=c++17 -O3 -fwrapv -ffast-math -march=native -mtune=native
LDFLAGS = -pthread

.PHONY: all clean remake

all: aberth

clean:
	rm -f aberth *.o

remake: clean
	$(MAKE) all


aberth: $(patsubst %.cpp,%.o,$(wildcard *.cpp)) ../lodepng.o
	$(CXX) -o $@ $^ $(LDFLAGS)

%.o: %.cpp $(wildcard *.h)
	$(CXX) $(CXXFLAGS) -c -o $@ $<