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