# $Id$

ADDITIONAL_CPPFLAGS += -Wall

libNGMime_LIBRARIES_DEPEND_UPON += \
	-lNGStreams -lNGExtensions -lEOControl	\
	-lDOM -lSaxObjC

libNGMime_INCLUDE_DIRS += \
	-I..	\
	-I../sope-core/NGStreams/	\
	-I../sope-core/NGExtensions/

ifneq ($(GNUSTEP_BUILD_DIR),)
RELBUILD_DIR_SxCore=$(GNUSTEP_BUILD_DIR)/../sope-core
RELBUILD_DIR_SxXml=$(GNUSTEP_BUILD_DIR)/../sope-xml

libNGMime_LIB_DIRS += \
	-L$(RELBUILD_DIR_SxCore)/NGStreams/$(GNUSTEP_OBJ_DIR_NAME)	\
	-L$(RELBUILD_DIR_SxCore)/NGExtensions/$(GNUSTEP_OBJ_DIR_NAME)	\
	-L$(RELBUILD_DIR_SxCore)/EOControl/$(GNUSTEP_OBJ_DIR_NAME)	\
	-L$(RELBUILD_DIR_SxXml)/DOM/$(GNUSTEP_OBJ_DIR_NAME)		\
	-L$(RELBUILD_DIR_SxXml)/SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)
else
libNGMime_LIB_DIRS += \
	-L../sope-core/NGStreams/$(GNUSTEP_OBJ_DIR)	\
	-L../sope-core/NGExtensions/$(GNUSTEP_OBJ_DIR)	\
	-L../sope-core/EOControl/$(GNUSTEP_OBJ_DIR)	\
	-L../sope-xml/DOM/$(GNUSTEP_OBJ_DIR)		\
	-L../sope-xml/SaxObjC/$(GNUSTEP_OBJ_DIR)
endif


# Apple

ifeq ($(FOUNDATION_LIB),apple)
libNGMime_PREBIND_ADDR="0xC1A00000"
libNGMime_LDFLAGS += -seg1addr $(libNGMime_PREBIND_ADDR)
endif

# Windows

ifeq ($(GNUSTEP_TARGET_OS),mingw32)
libNGMime_LIBRARIES_DEPEND_UPON += -lFoundation -lobjc
endif

ifeq ($(GNUSTEP_TARGET_OS),cygwin32)
libNGMime_LIBRARIES_DEPEND_UPON += -lFoundation -lobjc
endif