mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
defs.mk: Started implementation of support for openSUSE-supplied mingw binaries
This commit is contained in:
parent
e1e2f14a3f
commit
303f9345bf
1 changed files with 15 additions and 2 deletions
17
make/defs.mk
17
make/defs.mk
|
|
@ -152,6 +152,8 @@ ifeq ($(TARGET),mingw)
|
|||
CROSS_TOOL_DIR ?=
|
||||
CROSS_TOOL_BIN_PREFIX ?= $(CROSS_TOOL_DIR)/usr/bin/i686-w64-mingw32-
|
||||
PROJECT_LDFLAGS += -L/usr/i686-w64-mingw32/sys-root/mingw/lib
|
||||
PROJECT_CFLAGS += -L/usr/i686-w64-mingw32/sys-root/mingw/include
|
||||
PROJECT_CPPFLAGS += -L/usr/i686-w64-mingw32/sys-root/mingw/include
|
||||
else
|
||||
CROSS_TOOL_DIR ?= /opt/cross-tools
|
||||
CROSS_TOOL_BIN_PREFIX ?= $(CROSS_TOOL_DIR)/bin/i686-pc-mingw32-
|
||||
|
|
@ -499,6 +501,11 @@ else
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET),mingw)
|
||||
BUILD_CFLAGS += -DWIN32
|
||||
BUILD_CPPFLAGS += -DWIN32
|
||||
endif
|
||||
|
||||
ifeq ($(LIBTYPE),shared)
|
||||
ifneq ($(TARGET),mingw)
|
||||
BUILD_LDFLAGS += -rdynamic
|
||||
|
|
@ -1351,8 +1358,14 @@ ifeq ($(USE_GLIB),true)
|
|||
endif
|
||||
LIBFLAGS += -ldl -lpthread
|
||||
else
|
||||
INCLUDE += -I$(CROSS_TOOL_DIR)/include/glib-2.0 -I$(CROSS_TOOL_DIR)/lib/glib-2.0/include
|
||||
LIBFLAGS += -lglib-2.0
|
||||
ifneq ($(wildcard $(CROSS_TOOL_DIR)/include/glib-2.0),)
|
||||
INCLUDE += -I$(CROSS_TOOL_DIR)/include/glib-2.0 -I$(CROSS_TOOL_DIR)/lib/glib-2.0/include
|
||||
LIBFLAGS += -lglib-2.0
|
||||
else
|
||||
PROJECT_CFLAGS += $(shell /usr/bin/i686-w64-mingw32-pkg-config --cflags glib-2.0)
|
||||
PROJECT_CPPFLAGS += $(shell /usr/bin/i686-w64-mingw32-pkg-config --cflags glib-2.0)
|
||||
LIBFLAGS += $(shell /usr/bin/i686-w64-mingw32-pkg-config --libs glib-2.0)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue