The C example now has its own makefile.

master
Philippe PITTOLI 2024-06-21 10:48:57 +02:00
parent 84024fb05a
commit 6c078ffbca
2 changed files with 7 additions and 6 deletions

7
c-example/makefile Normal file
View File

@ -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

View File

@ -2,9 +2,3 @@ all: build
build: build:
zig 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