1 # -*- Mode: makefile; -*- #
11 exe_sfx := .$(exe_ext)
13 mingw := i686-w64-mingw32
15 mingw_root := /usr/$(mingw)/sys-root/mingw
17 pkg_config_path := $(mingw_root)/lib/pkgconfig
22 WINDRES := $(mingw)-windres
24 CXXFLAGS += -DWIN32 -D_WIN32_WINNT=0x0600 -DUNICODE -D_UNICODE -D_MT
27 $(COMPILE.cpp) $(OUTPUT_OPTION) $<
30 $(COMPILE.c) $(OUTPUT_OPTION) $<
33 $(WINDRES) -O coff $(OUTPUT_OPTION) $<
36 # Try to use native Java for Win32 build
37 JAVA_HOME ?= /usr/lib/jvm/java-1.8.0-openjdk
38 jvmdir = $(JAVA_HOME)/lib
40 CXXFLAGS += -I$(JAVA_HOME)/include
41 LDLIBS += $(jvmdir)/jvm.lib