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.

18 lines
475 B
Makefile

CXXFILES := main.cpp parser.cpp llvm.cpp ast.cpp var.cpp
CXXFLAGS := `llvm-config --cxxflags` -std=c++20 -ggdb -O0 -g3
LDFLAGS := `llvm-config --ldflags --system-libs --libs core`
6 months ago
all: main
main: $(subst .cpp,.o,$(CXXFILES))
$(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS)
6 months ago
prog: main test.fp
./main < test.fp > forsp.ir
llc -march=x86-64 -filetype=obj -relocation-model=pic forsp.ir -O2
$(CC) -c support.c -O2
$(CC) support.o forsp.ir.o -O2
6 months ago
clean:
rm -f a.out main *.ir *.o