Work on Win32 packaging
This commit is contained in:
parent
757a7274c6
commit
8daedb25ab
6
Makefile
6
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user