sogo/OpenChange/GNUmakefile
Wolfgang Sourdeau a5c4392cc5 Monotone-Parent: 1d682aef2107f2caaabd5b6b0afaf25a817fdaf9
Monotone-Revision: df31c22a7965d64a52337bacda1ae2d8288d818e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-11-23T15:52:08
Monotone-Branch: ca.inverse.sogo
2010-11-23 15:52:08 +00:00

78 lines
2 KiB
Makefile

# GNUstep makefile
include ../config.make
include $(GNUSTEP_MAKEFILES)/common.make
include ../Version
BACKEND_VERSION = 1.0.0
### bootstrap library
MAPISTORESOGO = MAPIStoreSOGo
LIBRARY_NAME = $(MAPISTORESOGO)
$(MAPISTORESOGO)_VERSION = $(BACKEND_VERSION)
$(MAPISTORESOGO)_INSTALL_DIR = $(SAMBA_LIB_DIR)/mapistore_backends
$(MAPISTORESOGO)_OBJC_FILES += \
MAPIStoreSOGo.m
### backend bundle
SOGOBACKEND = SOGoBackend
BUNDLE_NAME = $(SOGOBACKEND)
BUNDLE_EXTENSION = .MAPIStore
BUNDLE_INSTALL_DIR = $(SOGO_LIBDIR)
$(SOGOBACKEND)_PRINCIPAL_CLASS = MAPIApplication
$(SOGOBACKEND)_OBJC_FILES += \
MAPIApplication.m \
MAPIStoreAuthenticator.m \
MAPIStoreContext.m \
MAPIStoreMapping.m \
MAPIStoreTypes.m \
\
MAPIStoreCalendarContext.m \
MAPIStoreContactsContext.m \
MAPIStoreFreebusyContext.m \
MAPIStoreMailContext.m \
MAPIStoreTasksContext.m \
\
SOGoAppointmentObject+MAPIStore.m \
SOGoGCSFolder+MAPIStore.m \
SOGoContentObject+MAPIStore.m \
SOGoContactGCSEntry+MAPIStore.m \
SOGoTaskObject+MAPIStore.m \
\
NSArray+MAPIStore.m \
NSCalendarDate+MAPIStore.m \
NSData+MAPIStore.m \
NSString+MAPIStore.m
$(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
ADDITIONAL_INCLUDE_DIRS += $(LIBMAPI_CFLAGS) -I../SoObjects -I../SOPE -DBACKEND_BUNDLE_NAME="@\"$(BUNDLE_NAME)$(BUNDLE_EXTENSION)\"" -DSOGO_BUNDLES_DIR="@\"$(BUNDLE_INSTALL_DIR)\""
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)
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/bundle.make
include $(GNUSTEP_MAKEFILES)/library.make
-include GNUmakefile.postamble
endif