]> err.no Git - sope/blobdiff - sope-core/samples/GNUmakefile.preamble
added PCH support
[sope] / sope-core / samples / GNUmakefile.preamble
index 78d0a98a1b5bb91104a7418440b662d6a8146f7f..2cac9ae72aa427a851a5ff3a9b2691d526b12c6f 100644 (file)
@@ -1,16 +1,51 @@
-# $Id: GNUmakefile.preamble 9 2004-08-20 18:40:42Z helge $
+# compilation settings
 
 ADDITIONAL_INCLUDE_DIRS += \
        -I..                    \
        -I../NGStreams          \
        -I../NGExtensions       \
 
-ADDITIONAL_LIB_DIRS += \
-       -L../EOControl/$(GNUSTEP_OBJ_DIR)    \
-       -L../NGExtensions/$(GNUSTEP_OBJ_DIR) \
-       -L../NGStreams/$(GNUSTEP_OBJ_DIR)    \
-       -L/usr/local/lib -L/usr/lib
+# PCH
+
+encoding_PCH_FILE      = common.h
+subclassing_PCH_FILE   = common.h
+fmdls_PCH_FILE         = common.h
+bmlookup_PCH_FILE      = common.h
+testdirenum_PCH_FILE   = common.h
+eoqual_PCH_FILE        = common.h
+testsock_PCH_FILE      = common.h
+parserule_PCH_FILE     = common.h
+httpu_notify_PCH_FILE  = common.h
+testurl_PCH_FILE       = common.h
+sope-rsrclookup_PCH_FILE = common.h
+ngcal_PCH_FILE         = common.h
+
+# dependencies
 
+ifneq ($(frameworks),yes)
 ADDITIONAL_TOOL_LIBS += \
        -lNGStreams -lNGExtensions -lEOControl  \
        -lDOM -lSaxObjC
+else
+ADDITIONAL_TOOL_LIBS += \
+       -framework NGStreams -framework NGExtensions -framework EOControl \
+       -framework DOM -framework SaxObjC
+endif
+
+
+# library/framework search pathes
+
+DEP_DIRS = \
+       ../EOControl ../NGExtensions ../NGStreams \
+       ../../sope-xml/DOM ../../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
+
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib