We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9037b8 commit b04ceeaCopy full SHA for b04ceea
1 file changed
Makefile
@@ -8,7 +8,7 @@ OS = $(shell uname)
8
9
all: train predict
10
11
-lib: linear.o newton.o blas/blas.a
+lib: linear.o newton.o blas/blas.a liblinear.a
12
if [ "$(OS)" = "Darwin" ]; then \
13
SHARED_LIB_FLAG="-dynamiclib -Wl,-install_name,liblinear.so.$(SHVER)"; \
14
else \
@@ -31,7 +31,10 @@ linear.o: linear.cpp linear.h
31
blas/blas.a: blas/*.c blas/*.h
32
make -C blas OPTFLAGS='$(CFLAGS)' CC='$(CC)';
33
34
+liblinear.a: linear.o newton.o
35
+ ar -rcvs liblinear.a linear.o newton.o blas/*.o
36
+
37
clean:
38
make -C blas clean
39
make -C matlab clean
- rm -f *~ newton.o linear.o train predict liblinear.so.$(SHVER)
40
+ rm -f *~ newton.o linear.o train predict liblinear.a liblinear.so.$(SHVER)
0 commit comments