Ticket #29778: patch-Makefile.diff
File patch-Makefile.diff, 991 bytes (added by humem (humem), 13 years ago) |
---|
-
Makefile
old new 5 5 SHVER = 1 6 6 #LIBS = -lblas 7 7 8 all: train predict 8 all: train predict liblinear.a liblinear.dylib 9 9 10 10 lib: linear.o tron.o blas/blas.a 11 11 $(CXX) -shared -dynamiclib linear.o tron.o blas/blas.a -o liblinear.so.$(SHVER) … … 25 25 blas/blas.a: 26 26 cd blas; make OPTFLAGS='$(CFLAGS)' CC='$(CC)'; 27 27 28 liblinear.a: linear.o tron.o blas/blas.a 29 ar rc liblinear.a linear.o tron.o blas/blas.a 30 ranlib liblinear.a 31 liblinear.dylib: linear.o tron.o blas/blas.a 32 $(CXX) $(CFLAGS) -dynamiclib -install_name $(PREFIX)/lib/liblinear.dylib \ 33 -current_version $(VERSION) \ 34 -compatibility_version $(VERSION) \ 35 -o liblinear.$(VERSION).dylib linear.o tron.o blas/blas.a 28 36 clean: 29 37 cd blas; make clean 30 38 cd matlab; make clean 31 39 rm -f *~ tron.o linear.o train predict liblinear.so.$(SHVER) 40 rm -f *.a *.dylib