sogo/SOPE/NGCards/versitCardsSaxDriver/GNUmakefile.preamble
Wolfgang Sourdeau d1273a98cc Monotone-Parent: 4b92bd8e12e3f79e2ba6838787a30729a0b2a4cb
Monotone-Revision: 6f5c035d96f070f88090c5a76cf84a2452518927

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-01-25T16:58:00
Monotone-Branch: ca.inverse.sogo
2010-01-25 16:58:00 +00:00

51 lines
1.1 KiB
Plaintext

# compilation settings
NEEDS_GUI=no
SOPE_ROOT=../..
SOPE_OBJ_ROOT=$(GNUSTEP_BUILD_DIR)/$(SOPE_ROOT)
ifeq ($(frameworks),yes)
# hm, we might prefer /Library/SaxDrivers-$(MAJOR_VERSION).$(MINOR_VERSION)/
# but this is harder with the FRAMEWORK_INSTALL_DIR
BUNDLE_INSTALL_DIR := $(FRAMEWORK_INSTALL_DIR)/SaxObjC.framework/Versions/A/Resources/SaxDrivers/
endif
ADDITIONAL_INCLUDE_DIRS += \
-I../.. \
-I$(SOPE_ROOT)/sope-xml \
-I$(SOPE_ROOT)/sope-core/NGExtensions
# dependencies
ifneq ($(frameworks),yes)
BUNDLE_LIBS += -lSaxObjC
else
BUNDLE_LIBS += -framework SaxObjC
endif
ADDITIONAL_BUNDLE_LIBS += $(BUNDLE_LIBS)
# library/framework search pathes
DEP_DIRS = \
$(SOPE_ROOT)/sope-core/NGExtensions \
$(SOPE_ROOT)/sope-xml/SaxObjC
ifneq ($(frameworks),yes)
ADDITIONAL_LIB_DIRS += \
$(foreach dir,$(DEP_DIRS),\
-L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
else
ADDITIONAL_LIB_DIRS += \
$(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
SYSTEM_LIB_DIR += -L/usr/local/lib64 -L/usr/lib64
else
SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
endif