drop/zig-lib_no-sugar/makefile

19 lines
338 B
Makefile

# No sugar for you!
build: lib
gcc -Os -I. -static -o app app.c libipc.a
# INFO: library is compiled with target "ReleaseSmall"
# in order to avoid debug zig code.
# (See zig.h in zig source code.)
lib:
zig build-lib ipc.zig -OReleaseSmall
run:
$(VALGRIND) ./app
include ../mk/makefile.valgrind
clean:
rm *.a *.o app