You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
354 B
Makefile
25 lines
354 B
Makefile
2 years ago
|
CXX := g++
|
||
|
CXXFLAGS := -std=c++20 -O0 -ggdb -g3
|
||
|
LIBS := -lLLVM-14
|
||
|
|
||
|
SRC := ast.cpp \
|
||
|
parser.cpp \
|
||
|
main.cpp
|
||
|
|
||
|
OBJ := $(subst .cpp,.o,$(SRC))
|
||
|
BIN := main
|
||
|
|
||
|
all: $(BIN)
|
||
|
|
||
|
clean:
|
||
|
@echo " CLEAN"
|
||
|
@rm -f $(BIN) $(OBJ)
|
||
|
|
||
|
$(BIN): $(OBJ)
|
||
|
@echo " LD " $@
|
||
|
@$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
|
||
|
|
||
|
.cpp.o:
|
||
|
@echo " CXX " $<
|
||
|
@$(CXX) $(CXXFLAGS) -c $<
|