gem-graph-server/src/Makefile

24 lines
495 B
Makefile
Raw Normal View History

2021-04-09 18:01:29 +02:00
.PHONY: all scheduler clean test
CCOPTS=-pthread -fPIC -fwrapv -Wall -fno-strict-aliasing
CCFLAGS=-I /usr/include/python3.9
LDFLAGS=-lpython3.9 -lpthread -lm -lutil
scheduler: scheduler.c
gcc $(CCOPTS) $(CCFLAGS) -o scheduler scheduler.c $(LDFLAGS)
scheduler.c: scheduler.pyx
cython3 scheduler.pyx --embed
clean:
rm -rf scheduler.c scheduler
rm -rf test.c test
all: scheduler
test: test.c
gcc $(CCOPTS) $(CCFLAGS) -o test test.c $(LDFLAGS)
test.c: test.pyx
cython3 test.pyx --embed