summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6b1b0a5731cd03bd36b13e624027cd010837c87b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
liblinen.so: src/thread_create.o src/thread_finish.o src/lock_acquire.o src/lock_release.o
	gcc -shared -o $@ $^

src/%.o: src/%.asm
	nasm -f elf64 $<

tests/%.run: tests/%.c liblinen.so linen.h
	gcc -L . -llinen -I . -o $@ $<

tests: tests/test01.run
	LD_LIBRARY_PATH=. ./tests/test01.run

.PHONY: clean
clean:
	rm -f tests/*.run
	rm -f liblinen.so
	rm -f src/*.o