blob: 8a09c7f03bf281aef90d5d323709a77ebd2405f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
.POSIX:
CONFIGFILE = config.mk
include $(CONFIGFILE)
all: libcoopgamma.so
libcoopgamma.o: libcoopgamma.c include-libcoopgamma.h
.pyx.c:
if ! $(CYTHON) -3 -v $<; then rm -f -- $@; false; fi
.c.o:
$(CC) -fPIC -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
.o.so:
$(CC) -shared -o $@ $< $(LDFLAGS)
check: libcoopgamma.so
./test
install: libcoopgamma.so
mkdir -p -- "$(DESTDIR)$(PYTHONDIR)"
cp -- libcoopgamma.so "$(DESTDIR)$(PYTHONDIR)"
uninstall:
-rm -- "$(DESTDIR)$(PYTHONDIR)/libcoopgamma.so"
clean:
-rm -rf -- __pycache__/ *.pyc *.pyo *.c *.o *.su *.so
.SUFFIXES:
.SUFFIXES: .so .o .c .pyx
.PHONY: all check install uninstall clean
|