-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
91 lines (72 loc) · 2.92 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
LIB=./lib
INCLUDE=./include
SRC=./src
OBJ=./obj
BIN=./bin
CC=gcc
FLAGS= -O3 -Wall
CFLAGS=''
all: libDeep
libDeep: $(LIB)/libDeep.a
echo "libDeep.a built..."
$(LIB)/libDeep.a: \
$(OBJ)/deep.o \
$(OBJ)/math_functions.o \
$(OBJ)/rbm.o \
$(OBJ)/auxiliary.o \
$(OBJ)/dbn.o \
$(OBJ)/regression.o \
$(OBJ)/logistic.o \
$(OBJ)/dbm.o \
$(OBJ)/dbn.o \
$(OBJ)/pca.o \
$(OBJ)/epnn.o \
$(OBJ)/ann.o \
ar csr $(LIB)/libDeep.a \
$(OBJ)/deep.o \
$(OBJ)/math_functions.o \
$(OBJ)/rbm.o \
$(OBJ)/auxiliary.o \
$(OBJ)/dbn.o \
$(OBJ)/regression.o \
$(OBJ)/logistic.o \
$(OBJ)/dbm.o \
$(OBJ)/dbn.o \
$(OBJ)/pca.o \
$(OBJ)/epnn.o \
$(OBJ)/ann.o \
$(OBJ)/deep.o: $(SRC)/deep.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/deep.c \
-L /usr/local/lib -L $(OPF_DIR)/lib -lOPF -lgsl -lgslcblas -o $(OBJ)/deep.o `pkg-config --cflags --libs gsl`
$(OBJ)/math_functions.o: $(SRC)/math_functions.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/math_functions.c \
-L $(OPF_DIR)/lib -lOPF -o $(OBJ)/math_functions.o `pkg-config --cflags --libs gsl`
$(OBJ)/rbm.o: $(SRC)/rbm.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/rbm.c \
-L $(OPF_DIR)/lib -lOPF -o $(OBJ)/rbm.o `pkg-config --cflags --libs gsl`
$(OBJ)/auxiliary.o: $(SRC)/auxiliary.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/auxiliary.c \
-L $(OPF_DIR)/lib -lOPF -o $(OBJ)/auxiliary.o `pkg-config --cflags --libs gsl`
$(OBJ)/dbn.o: $(SRC)/dbn.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/dbn.c \
-L $(LIB) -L $(OPF_DIR)/lib -lOPF -o $(OBJ)/dbn.o `pkg-config --cflags --libs gsl`
$(OBJ)/regression.o: $(SRC)/regression.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/regression.c \
-o $(OBJ)/regression.o `pkg-config --cflags --libs gsl`
$(OBJ)/logistic.o: $(SRC)/logistic.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/logistic.c \
-o $(OBJ)/logistic.o
$(OBJ)/dbm.o: $(SRC)/dbm.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/dbm.c \
-o $(OBJ)/dbm.o
$(OBJ)/epnn.o: $(SRC)/epnn.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/epnn.c \
-o $(OBJ)/epnn.o
$(OBJ)/pca.o: $(SRC)/pca.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/pca.c \
-o $(OBJ)/pca.o
$(OBJ)/ann.o: $(SRC)/ann.c
$(CC) $(FLAGS) -I $(INCLUDE) -I $(OPF_DIR)/include -I $(OPF_DIR)/include/util -I /usr/local/include -c $(SRC)/ann.c \
-o $(OBJ)/ann.o
clean:
rm -f $(LIB)/lib*.a; rm -f $(OBJ)/*.o rm -f $(BIN)/*