24 lines
433 B
Makefile
24 lines
433 B
Makefile
BLAZE_PATH := $(realpath ../../extlib/blaze)
|
|
|
|
SRCS := source/main.cpp source/test.cpp source/shift.cpp
|
|
BUILD_DIR := ./build
|
|
CXXFLAGS += -g -o0 -std=c++20
|
|
INCLUDES += -I $(BLAZE_PATH)
|
|
|
|
LIBS := -lm
|
|
|
|
|
|
all: ${BUILD_DIR}/main.elf
|
|
|
|
run: ${BUILD_DIR}/main.elf
|
|
${BUILD_DIR}/main.elf
|
|
|
|
${BUILD_DIR}/main.elf: ${BUILD_DIR} ${SRCS}
|
|
g++ ${CXXFLAGS} ${INCLUDES} ${SRCS} -o $@ ${LIBS}
|
|
|
|
${BUILD_DIR}:
|
|
mkdir -p $@
|
|
|
|
|
|
clean:
|
|
rm -rf ${BUILD_DIR}/*
|