-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
41 lines (25 loc) · 1.04 KB
/
Makefile
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
35
36
37
38
39
40
CC=gcc
CFLAGS=-Wall -fPIC -O -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
LIBS=-lm
LDFLAGS= -fPIC
quick: edflib/_edflib.pyx
cython edflib/_edflib.pyx
edf:
python setup.py build_ext --inplace
library: edflib.o
gcc -shared -fPIC -o libedf.so edflib.o $(LIBS)
# gcc main.c edflib.c -Wall -s -o2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -o test_edflib
#
#
# gcc sine.c edflib.c -Wall -s -o2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -lm -o sine
#
#
testgenerator:
gcc test_generator.c edflib.c -Wall -s -O2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -lm -o testgenerator
#
#
# gcc sweep.c edflib.c -Wall -s -o2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -lm -o sweep
# gcc main.c edflib.c -Wall -g -o2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -o test_edflib
# gcc sine.c edflib.c -Wall -g -o2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -lm -o sine
# gcc test_generator.c edflib.c -Wall -g -o2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -lm -o testgenerator
# gcc sweep.c edflib.c -Wall -g -o2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -lm -o sweep