TARGET ?= linux-amd64 JAVA_HOME ?= /usr/local/jdk JAVAFX_HOME ?= /usr/local/javafx-sdk FFMPEG_HOME ?= /usr # See also JAVACFLAGS --module-path NATIVEZ_HOME=../nativez/bin/$(TARGET) JAVAMODPATH = $(JAVAFX_HOME)/lib $(NATIVEZ_HOME)/lib JAVACFLAGS += JAVAC ?= $(JAVA_HOME)/bin/javac JAR ?= $(JAVA_HOME)/bin/jar JMOD ?= $(JAVA_HOME)/bin/jmod # Linux options # USE_SO_VERSION adds the major version to the library open name for ffmpeg libs on linux. linux-amd64_CPPFLAGS = \ -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \ -DUSE_SO_VERSION=1 linux-amd64_CFLAGS = -fPIC -Os -Wall linux-amd64_CC = cc linux-amd64_LD = ld linux-amd64_SO = .so linux-amd64_LIB = lib # Windows options windows-amd64_CPPFLAGS = \ -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \ -DHAVE_ALIGNED_MALLOC \ -DWIN32 windows-amd64_CFLAGS = -Os -Wall windows-amd64_CC = x86_64-w64-mingw32-gcc windows-amd64_LD = x86_64-w64-mingw32-ld windows-amd64_LDFLAGS = -Wl,--subsystem,windows windows-amd64_SO = .dll windows-amd64_LIB =