mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
dummy.mk, proj.mk.in: Make ytools compile against mingw under Linux (cross-tools)
This commit is contained in:
parent
1133f4b7b8
commit
ae727b1735
2 changed files with 13 additions and 10 deletions
|
|
@ -3,8 +3,9 @@
|
|||
# contact@jannet.de
|
||||
# $Id$
|
||||
|
||||
ALL =
|
||||
include $(MODDIR)/make/defs.mk
|
||||
|
||||
all:
|
||||
clean:
|
||||
rm -rf *~ .*.swp
|
||||
install: # nothing to be done
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ endif
|
|||
LDFLAGS += -lytools
|
||||
|
||||
ifeq ($(TARGET),mingw)
|
||||
CFLAGS += -D_USRDLL -DYTOOLS_EXPORTS
|
||||
CPPFLAGS += -D_USRDLL -DYTOOLS_EXPORTS
|
||||
CFLAGS += -D_USRDLL -DYTOOLS_EXPORTS
|
||||
CPPFLAGS += -D_USRDLL -DYTOOLS_EXPORTS
|
||||
endif
|
||||
|
||||
ARCH = @ARCH@
|
||||
|
|
@ -63,12 +63,14 @@ 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
|
||||
ifeq (@ARCH@,x86_64)
|
||||
PROJECT_LDFLAGS += $(shell export PKG_CONFIG_PATH=/opt/gnome/lib64/pkgconfig; pkg-config --libs glib-2.0)
|
||||
ifeq (@ARCH@,x86)
|
||||
PROJECT_LDFLAGS += $(shell export PKG_CONFIG_PATH=/opt/gnome/lib/pkgconfig; pkg-config --libs glib-2.0)
|
||||
else
|
||||
ifeq (@ARCH@,x86_64)
|
||||
PROJECT_LDFLAGS += $(shell export PKG_CONFIG_PATH=/opt/gnome/lib64/pkgconfig; pkg-config --libs glib-2.0)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
PROJECT_LDFLAGS += -ldl -lpthread
|
||||
PROJECT_LDFLAGS += -ldl -lpthread
|
||||
else
|
||||
PROJECT_LDFLAGS += -lglib-2.0
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue