summaryrefslogblamecommitdiff
path: root/Makefile
blob: 9f9627aa3cbd3385df8806ecbbec25f37ba9d0d8 (plain) (tree)

























                                               
CXX=clang++
CXXFLAGS=-Iinclude
ifneq ($(DEBUG),1)
CXXFLAGS += -DNDEBUG
endif
ifeq ($(LUMA__X),1)
CXXFLAGS += -DLUMA__X=true
endif
CXXFLAGS += -std=c++20 -Wall -Wextra -Wpedantic
CXXFLAGS += -march=native -mtune=native -O3
LDFLAGS = -lfmt -lwebp
HDRS_CXX = \
	include/benoit.hh
SRCS_CXX = \
	src/benoit/benoit.cc \
	src/benoit/print.cc \
	src/benoit/strlen.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)