--- /dev/null
+# $Id$
+
+SOPE_ROOT=..
+CORE_ROOT=$(SOPE_ROOT)/sope-core
+APPSERVER_ROOT=$(SOPE_ROOT)/sope-appserver
+
+ADDITIONAL_CPPFLAGS += -Wall -DCOMPILE_FOR_GSTEP_MAKE=1
+ADDITIONAL_OBJCFLAGS += -Wall -Wno-import -Wno-protocol
+
+ADDITIONAL_CPPFLAGS += -pipe -Wall
+ADDITIONAL_CPPFLAGS += -DCOMPILING_NGOBJWEB=1
+
+ADDITIONAL_INCLUDE_DIRS += \
+ -I.. -I. -I../.. \
+ -I$(APPSERVER_ROOT)/NGObjWeb/ \
+ -I$(APPSERVER_ROOT)/ \
+ -I$(CORE_ROOT) \
+ -I$(CORE_ROOT)/NGStreams \
+ -I$(CORE_ROOT)/NGExtensions \
+ -I$(SOPE_ROOT)/sope-xml
+
+libNGXmlRpc_LIBRARIES_DEPEND_UPON += \
+ -lNGObjWeb \
+ -lNGMime -lNGStreams -lNGExtensions -lEOControl \
+ -lXmlRpc -lDOM -lSaxObjC
+
+xmlrpc_call_TOOL_LIBS += \
+ -lNGXmlRpc -lNGObjWeb \
+ -lNGMime -lNGStreams -lNGExtensions -lEOControl \
+ -lXmlRpc -lDOM -lSaxObjC
+
+ifneq ($(GNUSTEP_BUILD_DIR),)
+RELBUILD_DIR_SOPE=$(GNUSTEP_BUILD_DIR)/../sope-appserver
+RELBUILD_DIR_MIME=$(GNUSTEP_BUILD_DIR)/../sope-mime
+RELBUILD_DIR_SxCore=$(GNUSTEP_BUILD_DIR)/$(CORE_ROOT)
+RELBUILD_DIR_SxXml=$(GNUSTEP_BUILD_DIR)/../sope-xml
+
+ADDITIONAL_LIB_DIRS += \
+ -L$(GNUSTEP_BUILD_DIR)/$(GNUSTEP_OBJ_DIR_NAME) \
+ -L$(RELBUILD_DIR_SOPE)/NGObjWeb/$(GNUSTEP_OBJ_DIR_NAME) \
+ -L$(RELBUILD_DIR_SOPE)/NGXmlRpc/$(GNUSTEP_OBJ_DIR_NAME) \
+ -L$(RELBUILD_DIR_MIME)/$(GNUSTEP_OBJ_DIR_NAME) \
+ -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)/XmlRpc/$(GNUSTEP_OBJ_DIR_NAME) \
+ -L$(RELBUILD_DIR_SxXml)/DOM/$(GNUSTEP_OBJ_DIR_NAME) \
+ -L$(RELBUILD_DIR_SxXml)/SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)
+
+else
+ADDITIONAL_LIB_DIRS += \
+ -L$(APPSERVER_ROOT)/NGXmlRpc/$(GNUSTEP_OBJ_DIR) \
+ -L$(APPSERVER_ROOT)/NGObjWeb/$(GNUSTEP_OBJ_DIR) \
+ -L$(SOPE_ROOT)/sope-mime/$(GNUSTEP_OBJ_DIR) \
+ -L$(CORE_ROOT)/NGStreams/$(GNUSTEP_OBJ_DIR) \
+ -L$(CORE_ROOT)/NGExtensions/$(GNUSTEP_OBJ_DIR) \
+ -L$(CORE_ROOT)/EOControl/$(GNUSTEP_OBJ_DIR) \
+ -L$(SOPE_ROOT)/sope-xml/XmlRpc/$(GNUSTEP_OBJ_DIR) \
+ -L$(SOPE_ROOT)/sope-xml/DOM/$(GNUSTEP_OBJ_DIR) \
+ -L$(SOPE_ROOT)/sope-xml/SaxObjC/$(GNUSTEP_OBJ_DIR)
+endif
+
+ADDITIONAL_LIB_DIRS += -L/usr/local/lib -L/usr/lib
--- /dev/null
+# postprocessing
+
+# FHS support (this is a hack and is going to be done by gstep-make!)
+
+ifneq ($(FHS_INSTALL_ROOT),)
+
+FHS_BIN_DIR=$(FHS_INSTALL_ROOT)/bin/
+
+NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)"
+
+
+fhs-bin-dirs ::
+ $(MKDIRS) $(FHS_BIN_DIR)
+
+
+move-tools-to-fhs :: fhs-bin-dirs
+ @echo "moving tools from $(NONFHS_BINDIR) to $(FHS_BIN_DIR) .."
+ for i in $(TOOL_NAME); do \
+ mv "$(NONFHS_BINDIR)/$${i}" $(FHS_BIN_DIR); \
+ done
+
+move-to-fhs :: move-tools-to-fhs
+
+after-install :: move-to-fhs
+
+endif