diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a5a4cdb --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +LLVMC=llvm-config +LLVM_LINKER=-lc++ $(shell ${LLVMC} --libs core --cxxflags --ldflags --system-libs|tr '\n' ' ') + +all: + odin run src -o:none -debug -out:speedcat -extra-linker-flags:"${LLVM_LINKER}" -- pong.cat && \ + clang -I/opt/local/include -L/opt/local/lib -lraylib -lm -framework Cocoa -framework OpenGL -framework IOKit pong.ll -o raylib diff --git a/build_test.sh b/build_test.sh deleted file mode 100755 index a24449e..0000000 --- a/build_test.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -set -xe - -LLVMC=llvm-config -LLVM_LINKER="-lc++ $($LLVMC --libs core --cxxflags --ldflags --system-libs|tr '\n' ' ')" - -odin run src -o:none -debug -out:speedcat -extra-linker-flags:"$LLVM_LINKER" -- pong.cat -clang -I/opt/local/include -L/opt/local/lib -lraylib -lm -framework Cocoa -framework OpenGL -framework IOKit pong.ll -o raylib