Help language development. Donate to The Perl Foundation

Algorithm::LibSVM cpan:TITSUKI last updated on 2019-12-23

src/Makefile.in
CXX ?= g++
CFLAGS = -Wall -Wconversion -O3 -fPIC
SHVER = 2
OS = $(shell uname)
name = %svm%

all: lib

lib: svm.o
	if [ "$(OS)" = "Darwin" ]; then \
		SHARED_LIB_FLAG="-dynamiclib -Wl,-install_name,%DESTDIR%/resources/libraries/%svm%"; \
	else \
		SHARED_LIB_FLAG="-shared -Wl,-soname,%DESTDIR%/resources/libraries/%svm%"; \
	fi; \
	$(CXX) $${SHARED_LIB_FLAG} svm.o -o %DESTDIR%/resources/libraries/%svm%

svm.o: svm.cpp svm.h
	$(CXX) $(CFLAGS) -c svm.cpp
clean:
	rm -f *~ svm.o %DESTDIR%/resources/libraries/%svm%