view Makefile @ 40:b1036ab80767

Use abstract interfaces
author Chris Cannam
date Fri, 11 Jan 2013 16:37:26 +0000
parents e9517315d4e5
children aadf45ed0d40
line wrap: on
line source

JAR := jvamp.jar
LIBRARY := libvamp-jni.so

all: $(JAR) $(LIBRARY)

OBJFILES := src/PluginLoader.o src/Plugin.o src/RealTime.o src/getset.o

JAVAFILES := org/vamp_plugins/Feature.java org/vamp_plugins/OutputDescriptor.java org/vamp_plugins/ParameterDescriptor.java org/vamp_plugins/Plugin.java org/vamp_plugins/PluginLoader.java org/vamp_plugins/RealTime.java

CLASSFILES := $(patsubst %.java,%.class,$(JAVAFILES))

INCLUDES := -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
CXXFLAGS := $(INCLUDES) -g -fPIC

$(JAR):	$(JAVAFILES)
	javac $^
	jar cf $@ org/vamp_plugins

$(LIBRARY): $(OBJFILES)
	$(CXX) -shared -o $@ $^ -lvamp-hostsdk

clean:
	rm -f $(OBJFILES) $(CLASSFILES)

distclean:	clean
	rm $(JAR) $(LIBRARY)