mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
make: Add support for mingw
This commit is contained in:
parent
fedd4615db
commit
65ba4f3cfd
5 changed files with 47 additions and 9 deletions
|
|
@ -48,7 +48,16 @@ else
|
|||
include $(TOPDIR)/make/cfg_dist.mk
|
||||
endif
|
||||
|
||||
LDFLAGS += -lytools -ldl -pthread
|
||||
LDFLAGS += -lytools
|
||||
ifeq ($(TARGET),Linux)
|
||||
LDFLAGS += -ldl -pthread
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET),mingw)
|
||||
CFLAGS += -D_USRDLL -DYTOOLS_EXPORTS
|
||||
CPPFLAGS += -D_USRDLL -DYTOOLS_EXPORTS
|
||||
endif
|
||||
|
||||
ARCH = @ARCH@
|
||||
|
||||
LD_LIB_PATH=$(TOPDIR)/lib
|
||||
|
|
@ -56,6 +65,7 @@ LD_LIB_PATH=$(TOPDIR)/lib
|
|||
PROJECT_CFLAGS += -gstabs+
|
||||
PROJECT_CPPFLAGS += -gstabs+
|
||||
|
||||
ifneq ($(TARGET),mingw)
|
||||
ifeq (@ARCH@,x86)
|
||||
PROJECT_LDFLAGS += $(shell export PKG_CONFIG_PATH=/opt/gnome/lib/pkgconfig; pkg-config --libs glib-2.0)
|
||||
else
|
||||
|
|
@ -63,3 +73,4 @@ else
|
|||
PROJECT_LDFLAGS += $(shell export PKG_CONFIG_PATH=/opt/gnome/lib64/pkgconfig; pkg-config --libs glib-2.0)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue