diff options
author | Prefetch | 2023-07-16 15:04:44 +0200 |
---|---|---|
committer | Prefetch | 2023-07-16 15:04:44 +0200 |
commit | 1a2e93c752a6b835423cd8bee609b8ec6c3f1262 (patch) | |
tree | a1c1edccbb110edc9b74b2e7ecbf47196a14c418 /Makefile |
Initial commit for publication
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..edef168 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +liblinen.so: lib/thread_create.o lib/thread_finish.o + gcc -shared -o $@ $^ + +lib/%.o: lib/%.asm + nasm -f elf64 $< + +tests/%.run: tests/%.c liblinen.so linen.h + gcc -L . -llinen -I . -o $@ $< + +tests: tests/test01.run tests/test02.run + LD_LIBRARY_PATH=. ./tests/test01.run + LD_LIBRARY_PATH=. ./tests/test02.run + +.PHONY: clean +clean: + rm -f tests/*.run + rm -f liblinen.so + rm -f lib/*.o |