]> err.no Git - sope/blobdiff - sope-mime/GNUmakefile
fixed OGo bug #1587 (qp decoding in IMAP4 envelopes)
[sope] / sope-mime / GNUmakefile
index 4162252e69a9a0a1c30c02e37bfb1625a1e573de..1158f5b5b8c53aa5557435d835b26e827c9e084b 100644 (file)
@@ -1,23 +1,51 @@
-# $Id: GNUmakefile 32 2004-08-21 00:50:30Z helge $
+# 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