From 8daedb25ab4143325dc25119fd52e7f026d6110c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sun, 4 Mar 2012 18:17:43 +0100 Subject: [PATCH] Work on Win32 packaging --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 50d2923..b37445d 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,17 @@ BIN_DIR=$(DESTDIR)$(ROOT_DIR)"/bin/" QT_PACKAGES="QtCore QtGui QtSql QtXml" CXXFLAGS+=`pkg-config --cflags $(QT_PACKAGES)` CXXFLAGS+=-Wall -Isrc -Isrc/win32 -ggdb -fPIC +ifdef WIN32 +CXXFLAGS+=-DRESSOURCES_ROOT="\"./ressources/\"" +else CXXFLAGS+=-DRESSOURCES_ROOT="\"$(SHARE_DIR)\"" # For developpers #CXXFLAGS+=-DRESSOURCES_ROOT="\"./ressources/\"" +endif LDFLAGS+=`pkg-config --libs $(QT_PACKAGES)` ifdef WIN32 -LDFLAGS+=lib/libofx.a +LDFLAGS+=lib/libofx.a -liconv-2 lib/libosp.a lib/libintl.a else LDFLAGS+=-lofx endif