From 6c078ffbcac42ca579bc674e820f8ea2d24e4610 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Fri, 21 Jun 2024 10:48:57 +0200 Subject: [PATCH] The C example now has its own makefile. --- c-example/makefile | 7 +++++++ makefile | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 c-example/makefile diff --git a/c-example/makefile b/c-example/makefile new file mode 100644 index 0000000..bfd01c2 --- /dev/null +++ b/c-example/makefile @@ -0,0 +1,7 @@ +all: build + +build: + gcc -o example ./example.c -L ../zig-out/lib/ -lhexa + +run: build + LD_LIBRARY_PATH=../zig-out/lib/ ./example diff --git a/makefile b/makefile index eaf953f..96dd14b 100644 --- a/makefile +++ b/makefile @@ -2,9 +2,3 @@ all: build build: zig build - -build-test: build - gcc -o example c-example/example.c -L ./zig-out/lib/ -lhexa - -run-test: build - LD_LIBRARY_PATH=./zig-out/lib/ ./example