From 8dc1db8fb95b082c3911f9ae5bdf4f9815ddec03 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 15 Oct 2022 11:33:08 -0400 Subject: initial code upload --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fb6c8a9 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +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 $< -- cgit v1.2.3