]> err.no Git - sope/blobdiff - sope-mime/GNUmakefile
added a missing key in the .woo
[sope] / sope-mime / GNUmakefile
index f578b42966eade298efbc3f193eec27dfacb1ed5..1158f5b5b8c53aa5557435d835b26e827c9e084b 100644 (file)
@@ -1,22 +1,51 @@
-# $Id$
+# GNUstep makefile
 
+-include ../config.make
 include $(GNUSTEP_MAKEFILES)/common.make
 include ./Version
 
 GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_LOCAL_ROOT)
 
+ifneq ($(frameworks),yes)
 LIBRARY_NAME = libNGMime
+else
+FRAMEWORK_NAME = NGMime
+endif
 
-libNGMime_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
 libNGMime_HEADER_FILES_DIR         = .
 libNGMime_HEADER_FILES_INSTALL_DIR = /NGMime
+libNGMime_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
+libNGMime_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
 
+ifneq ($(frameworks),yes)
 libNGMime_SUBPROJECTS = NGMime NGMail NGImap4
+else
+libNGMime_SUBPROJECTS = NGMime
+SUBPROJECTS = NGMail NGImap4
+endif
+
+
+# framework support
+
+NGMime_HEADER_FILES = $(libNGMime_HEADER_FILES)
+NGMime_OBJC_FILES   = $(libNGMime_OBJC_FILES)
+NGMime_SUBPROJECTS  = $(libNGMime_SUBPROJECTS)
 
-ADDITIONAL_CPPFLAGS += -DLIBRARY_MAJOR_VERSION=${MAJOR_VERSION} \
-                      -DLIBRARY_MINOR_VERSION=${MINOR_VERSION} \
-                      -DLIBRARY_SUBMINOR_VERSION=${SUBMINOR_VERSION} \
+
+# building
 
 -include GNUmakefile.preamble
+ifneq ($(frameworks),yes)
 include $(GNUSTEP_MAKEFILES)/library.make
+else
+include $(GNUSTEP_MAKEFILES)/framework.make
+include $(GNUSTEP_MAKEFILES)/aggregate.make
+endif
 -include GNUmakefile.postamble
+-include fhs.make
+
+
+# package
+
+macosx-pkg :: all
+       ../maintenance/make-osxpkg.sh sope-mime