2010-12-03 23:23:30 +01:00
|
|
|
|
2010-10-01 20:54:30 +02:00
|
|
|
# GNUstep makefile
|
|
|
|
|
|
|
|
include ../config.make
|
|
|
|
include $(GNUSTEP_MAKEFILES)/common.make
|
|
|
|
include ../Version
|
|
|
|
|
2010-11-18 23:13:45 +01:00
|
|
|
BACKEND_VERSION = 1.0.0
|
2010-10-01 20:54:30 +02:00
|
|
|
|
2010-11-18 23:13:45 +01:00
|
|
|
### bootstrap library
|
2010-10-01 20:54:30 +02:00
|
|
|
MAPISTORESOGO = MAPIStoreSOGo
|
|
|
|
LIBRARY_NAME = $(MAPISTORESOGO)
|
2010-11-18 23:13:45 +01:00
|
|
|
|
|
|
|
$(MAPISTORESOGO)_VERSION = $(BACKEND_VERSION)
|
2010-10-01 20:54:30 +02:00
|
|
|
$(MAPISTORESOGO)_INSTALL_DIR = $(SAMBA_LIB_DIR)/mapistore_backends
|
|
|
|
|
|
|
|
$(MAPISTORESOGO)_OBJC_FILES += \
|
2010-11-18 23:13:45 +01:00
|
|
|
MAPIStoreSOGo.m
|
|
|
|
|
|
|
|
### backend bundle
|
|
|
|
SOGOBACKEND = SOGoBackend
|
|
|
|
BUNDLE_NAME = $(SOGOBACKEND)
|
|
|
|
BUNDLE_EXTENSION = .MAPIStore
|
|
|
|
BUNDLE_INSTALL_DIR = $(SOGO_LIBDIR)
|
|
|
|
|
|
|
|
$(SOGOBACKEND)_PRINCIPAL_CLASS = MAPIApplication
|
|
|
|
|
|
|
|
$(SOGOBACKEND)_OBJC_FILES += \
|
2010-10-01 20:54:30 +02:00
|
|
|
MAPIApplication.m \
|
|
|
|
MAPIStoreAuthenticator.m \
|
|
|
|
MAPIStoreContext.m \
|
|
|
|
MAPIStoreMapping.m \
|
2010-11-20 00:01:53 +01:00
|
|
|
MAPIStoreTypes.m \
|
2010-10-01 20:54:30 +02:00
|
|
|
\
|
|
|
|
MAPIStoreCalendarContext.m \
|
|
|
|
MAPIStoreContactsContext.m \
|
2010-11-20 00:01:53 +01:00
|
|
|
MAPIStoreFreebusyContext.m \
|
2010-10-01 20:54:30 +02:00
|
|
|
MAPIStoreMailContext.m \
|
2010-11-24 20:28:45 +01:00
|
|
|
MAPIStoreOutboxContext.m \
|
2010-12-03 23:23:30 +01:00
|
|
|
MAPIStoreSpoolerContext.m \
|
2010-10-01 23:31:58 +02:00
|
|
|
MAPIStoreTasksContext.m \
|
2010-10-01 20:54:30 +02:00
|
|
|
\
|
2010-11-20 00:01:53 +01:00
|
|
|
SOGoAppointmentObject+MAPIStore.m \
|
2010-11-23 16:52:08 +01:00
|
|
|
SOGoContentObject+MAPIStore.m \
|
2010-11-18 23:13:45 +01:00
|
|
|
SOGoContactGCSEntry+MAPIStore.m \
|
2010-11-24 20:28:45 +01:00
|
|
|
SOGoDraftObject+MAPIStore.m \
|
|
|
|
SOGoGCSFolder+MAPIStore.m \
|
2010-11-20 00:01:53 +01:00
|
|
|
SOGoTaskObject+MAPIStore.m \
|
2010-10-01 23:24:15 +02:00
|
|
|
\
|
2010-10-13 23:40:50 +02:00
|
|
|
NSArray+MAPIStore.m \
|
2010-11-20 00:01:53 +01:00
|
|
|
NSCalendarDate+MAPIStore.m \
|
2010-10-14 18:36:53 +02:00
|
|
|
NSData+MAPIStore.m \
|
2010-10-01 20:54:30 +02:00
|
|
|
NSString+MAPIStore.m
|
|
|
|
|
2010-11-18 23:13:45 +01:00
|
|
|
$(SOGOBACKEND)_RESOURCE_FILES += \
|
|
|
|
product.plist
|
|
|
|
|
|
|
|
### cflags and libs
|
|
|
|
LIBMAPI_CFLAGS = $(shell pkg-config libmapistore --cflags)
|
|
|
|
|
|
|
|
ifeq ($(LIBMAPI_CFLAGS),)
|
|
|
|
all install::
|
|
|
|
@echo "Cannot build the OpenChange SOGo backend (empty CFLAGS for libmapistore)"
|
|
|
|
else
|
|
|
|
|
|
|
|
LIBMAPI_LIBS = $(shell pkg-config libmapistore --libs) -lmapiproxy
|
|
|
|
|
2010-12-03 23:23:30 +01:00
|
|
|
ADDITIONAL_INCLUDE_DIRS += \
|
|
|
|
-Werror -Wall \
|
|
|
|
$(LIBMAPI_CFLAGS) \
|
|
|
|
-I../SoObjects -I../SOPE \
|
|
|
|
-DBACKEND_BUNDLE_NAME="@\"$(BUNDLE_NAME)$(BUNDLE_EXTENSION)\"" \
|
|
|
|
-DSOGO_BUNDLES_DIR="@\"$(BUNDLE_INSTALL_DIR)\""
|
2010-11-18 23:13:45 +01:00
|
|
|
ADDITIONAL_LIB_DIRS += -Wl,--as-needed \
|
|
|
|
-L../SOGo/SOGo.framework/ -lSOGo \
|
|
|
|
-L../../OGoContentStore/$(GNUSTEP_OBJ_DIR)/ -lOGoContentStore \
|
|
|
|
$(LIBMAPI_LIBS)
|
|
|
|
|
|
|
|
SAMBA_LIB_DIR = $(shell pkg-config libmapistore --variable=libdir)
|
|
|
|
|
2010-10-01 20:54:30 +02:00
|
|
|
-include GNUmakefile.preamble
|
2010-11-18 23:13:45 +01:00
|
|
|
include $(GNUSTEP_MAKEFILES)/bundle.make
|
2010-10-01 20:54:30 +02:00
|
|
|
include $(GNUSTEP_MAKEFILES)/library.make
|
|
|
|
-include GNUmakefile.postamble
|
2010-10-05 23:31:46 +02:00
|
|
|
|
|
|
|
endif
|