-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·31 lines (21 loc) · 982 Bytes
/
makefile
File metadata and controls
executable file
·31 lines (21 loc) · 982 Bytes
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
CFLAGS=-Wall -g -I/usr/local/include -I/usr/local/opt/readline/include -std=c99
#CFLAGS=-Wall -O3 -I/usr/local/include -I/usr/local/opt/readline/include -std=c99
LDFLAGS=-L/usr/local/opt/readline/lib -lreadline -L/usr/local/lib -lgsl -lgslcblas -lm
current_dir = $(shell pwd)
all: libodexp.dylib
libodexp.dylib: odexp.o methods_odexp.o utils_odexp.o rand_gen.o dlist.o
gcc $(LDFLAGS) -dynamiclib -install_name $(current_dir)/libodexp.dylib -lm -o libodexp.dylib odexp.o methods_odexp.o utils_odexp.o rand_gen.o dlist.o
odexp.o: odexp.c odexp.h methods_odexp.h
gcc -c odexp.c $(CFLAGS)
methods_odexp.o: methods_odexp.c methods_odexp.h dlist.h
gcc -c methods_odexp.c $(CFLAGS)
utils_odexp.o: utils_odexp.c utils_odexp.h
gcc -c utils_odexp.c $(CFLAGS)
rand_gen.o: rand_gen.c rand_gen.h
gcc -c rand_gen.c $(CFLAGS)
dlist.o: dlist.c dlist.h
gcc -c dlist.c $(CFLAGS)
clean:
rm -f *.o
veryclean:
rm -f *.o; rm -f *.out; rm -rf *.out.dSYM; rm *.dylib