25 lines
381 B
Makefile

CC=g++
CFLAGS= -std=c++23
INCLUDE_DIR= include
SRC_DIR= src
# Get all cpp files from src directory
SRCS := $(wildcard $(SRC_DIR)/*.cpp)
all: main
main: main.cpp $(SRCS)
$(CC) $(CFLAGS) -o3 -fopenmp -I$(INCLUDE_DIR) $(SRCS) main.cpp -o main
debug: main.cpp $(SRCS)
$(CC) $(CFLAGS) -fopenmp -I$(INCLUDE_DIR) $(SRCS) -g main.cpp -o main
run: main
./main
clean:
rm main