From 835e1fcd131c63ee2b3b647e327b33a3bfb369e3 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sat, 2 Sep 2023 20:59:29 +0200 Subject: [Linux] Change build system; Remove CMake --- build_and_test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 build_and_test.sh (limited to 'build_and_test.sh') diff --git a/build_and_test.sh b/build_and_test.sh new file mode 100644 index 0000000..e78ef2d --- /dev/null +++ b/build_and_test.sh @@ -0,0 +1,11 @@ +if [ ! -d "build" ]; then + mkdir build +fi + +gcc -c -o "build/kit.o" "source/kit/_static.c" +ar rcs "build/libkit.a" "build/kit.o" + +gcc -c -o "build/kit_test.o" "source/kit_test/_static.c" +ar rcs "build/libkit_test.a" "build/kit_test.o" + +gcc -o "build/kit_test_suite" "source/tests/_static.c" -Lbuild -lkit -lkit_test -- cgit v1.2.3