-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 726 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Target to build the main executable
all: main
# Compiler and flags
CXX = g++
CXXFLAGS = -std=c++20 -Wall
# Source files
SRCDIR = src/src
# Include directories
INCLUDES = -I src/include -I src/include/antlr4 -I src/include/antlr4/atn -I src/include/antlr4/dfa -I src/include/antlr4/internal -I src/include/antlr4/misc -I src/include/antlr4/support -I src/include/antlr4/tree
# List of source files
LIBS = $(wildcard $(SRCDIR)/*/*.cpp src/include/antlr4/*.cpp src/include/antlr4/*/*.cpp)
# Output executable
main: $(SRCS)
mkdir -p bin
mkdir -p data
mkdir -p data/global
mkdir -p data/base
$(CXX) $(CXXFLAGS) $(INCLUDES) src/main.cpp $(LIBS) -o bin/main
# Clean target to remove generated files
clean:
rm -rf bin/*