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 $@ $<