-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (32 loc) · 1007 Bytes
/
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
# Flags common between library and executable
CFLAGS = -g -Iinclude -Wall -Wno-unused-parameter -Wextra -Wno-parentheses -pedantic -fpic
LDFLAGS = -Llib -Wl,-rpath=$$PWD/lib -luaic -lm
LIB = lib/libuaic.so
OBJS = \
src/uai_data.o \
src/uai_logistic_regression.o \
src/uai_decision_tree.o \
src/uai_scaling.o \
src/uai_linear_regression.o \
src/uai_scaling.o \
BINS = \
examples/dataframe/load_csv.out \
examples/dataframe/convert.out \
examples/dataframe/export_csv.out \
examples/dataframe/split.out \
examples/dataframe/fill.out \
examples/dataframe/resize.out \
examples/dataframe/scale_data.out \
examples/logistic_regression/logistic_regression.out \
examples/classification/decision_tree.out \
examples/linear_regression/linear_regression.out \
all: $(LIB) $(BINS)
lib:
mkdir -p lib
$(LIB): lib $(OBJS)
$(CC) -shared -o $(LIB) $(OBJS)
.c.out:
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
clean:
rm -f $(OBJS) $(LIB) $(BINS)