summaryrefslogblamecommitdiff
path: root/Makefile
blob: c7af96f2b1a235df948dea1b10638ec060bb4cbd (plain) (tree)
1
2
3
4
5
6
7
8




                    

                                               
                                                   


                         
                                
                              



                                      
                             
                                 








                                       
CXX=clang++
CXXFLAGS=-Iinclude
ifneq ($(DEBUG),1)
CXXFLAGS += -DNDEBUG
endif
CXXFLAGS += -std=c++20 -Wall -Wextra -Wpedantic
CXXFLAGS += -march=native -mtune=native -O3
LDFLAGS = -lfmt -lgmp -lmpfr -lpng -lpthread -lwebp
HDRS_CXX = \
	include/benoit.hh
SRCS_CXX = \
	src/benoit/arghandl.cc \
	src/benoit/benoit.cc \
	src/benoit/~benoit.cc \
	src/benoit/exit.cc \
	src/benoit/notiffunc.cc \
	src/benoit/plotmandelbrot.cc \
	src/benoit/print.cc \
	src/benoit/t/pos/pos.cc \
	src/main.cc
SRCS=$(SRCS_CXX)
OBJS=$(SRCS:.cc=.o)
benoit: $(OBJS)
	$(CXX) $(LDFLAGS) -o $@ $(OBJS)
$(OBJS): $(HDRS_CXX) $(SRCS_CXX)
.PHONY: clean
clean:
	rm benoit $(OBJS)