diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2024-06-14 22:11:54 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2024-06-14 22:11:54 -0400 |
commit | 47d7c964d075f92b9ce657f1b946f5bd6895439b (patch) | |
tree | d463bbd15e1fdd92f9cf2f199ca489da6634f4cf /Makefile | |
parent | 6526c644f40d469f064ee91f94bb0e8f6e7c39de (diff) |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..65163ff --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +all: main + +main: main.cpp + $(CXX) -o $@ $^ `llvm-config --cxxflags --ldflags --system-libs --libs core` -std=c++20 -ggdb -O0 -g3 + +prog: main test.fp + ./main < test.fp 2> forsp.ir + llc -march=x86 -filetype=obj --relocation-model=pic forsp.ir -O1 + clang -c support.c -m32 -Os + clang support.o forsp.ir.o -m32 -Os + +clean: + rm -f a.out main *.ir *.o |