Work on Win32 packaging

This commit is contained in:
Grégory Soutadé 2012-03-04 18:17:43 +01:00
parent 757a7274c6
commit 8daedb25ab

View File

@ -7,13 +7,17 @@ BIN_DIR=$(DESTDIR)$(ROOT_DIR)"/bin/"
QT_PACKAGES="QtCore QtGui QtSql QtXml" QT_PACKAGES="QtCore QtGui QtSql QtXml"
CXXFLAGS+=`pkg-config --cflags $(QT_PACKAGES)` CXXFLAGS+=`pkg-config --cflags $(QT_PACKAGES)`
CXXFLAGS+=-Wall -Isrc -Isrc/win32 -ggdb -fPIC CXXFLAGS+=-Wall -Isrc -Isrc/win32 -ggdb -fPIC
ifdef WIN32
CXXFLAGS+=-DRESSOURCES_ROOT="\"./ressources/\""
else
CXXFLAGS+=-DRESSOURCES_ROOT="\"$(SHARE_DIR)\"" CXXFLAGS+=-DRESSOURCES_ROOT="\"$(SHARE_DIR)\""
# For developpers # For developpers
#CXXFLAGS+=-DRESSOURCES_ROOT="\"./ressources/\"" #CXXFLAGS+=-DRESSOURCES_ROOT="\"./ressources/\""
endif
LDFLAGS+=`pkg-config --libs $(QT_PACKAGES)` LDFLAGS+=`pkg-config --libs $(QT_PACKAGES)`
ifdef WIN32 ifdef WIN32
LDFLAGS+=lib/libofx.a LDFLAGS+=lib/libofx.a -liconv-2 lib/libosp.a lib/libintl.a
else else
LDFLAGS+=-lofx LDFLAGS+=-lofx
endif endif