]> err.no Git - sope/blob - sope-appserver/SoOFS/GNUmakefile
91f046f95a81cfb3420cb8e83b9543769435275e
[sope] / sope-appserver / SoOFS / GNUmakefile
1 # GNUstep makefile
2
3 -include ../../config.make
4 include $(GNUSTEP_MAKEFILES)/common.make
5 include ../Version
6 include ./Version
7
8 # TODO: clash between bundle and libname!
9 ifneq ($(frameworks),yes)
10 LIBRARY_NAME = libSoOFS
11 else
12 FRAMEWORK_NAME = SoOFS
13 endif
14
15
16 libSoOFS_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
17 libSoOFS_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
18
19 libSoOFS_HEADER_FILES_DIR         = .
20 libSoOFS_HEADER_FILES_INSTALL_DIR = /SoOFS
21
22 libSoOFS_HEADER_FILES = \
23         SoOFS.h                 \
24         OFSBaseObject.h         \
25         OFSFactoryContext.h     \
26         OFSFactoryRegistry.h    \
27         OFSFile.h               \
28         OFSFileRenderer.h       \
29         OFSFolder.h             \
30         OFSImage.h              \
31         OFSPropertyListObject.h \
32         OFSResourceManager.h    \
33         OFSWebMethod.h          \
34         OFSWebMethodRenderer.h  \
35         OFSWebTemplate.h        \
36         OFSWebDocument.h        \
37         OFSHttpPasswd.h         \
38         OFSChangeLog.h          \
39         OFSFolderDataSource.h   \
40
41 libSoOFS_OBJC_FILES = \
42         OFSBaseObject.m                 \
43         OFSFactoryContext.m             \
44         OFSFactoryRegistry.m            \
45         OFSFile.m                       \
46         OFSFileRenderer.m               \
47         OFSFolder+SoDAV.m               \
48         OFSFolder.m                     \
49         OFSFolderClassDescription.m     \
50         OFSImage.m                      \
51         OFSPropertyListObject.m         \
52         OFSResourceManager.m            \
53         OFSWebMethod.m                  \
54         OFSWebMethodRenderer.m          \
55         OFSWebTemplate.m                \
56         OFSWebDocument.m                \
57         OFSHttpPasswd.m                 \
58         OFSChangeLog.m                  \
59         OFSFolderDataSource.m           \
60
61
62 ifeq ($(frameworks),yes)
63 # framework support
64
65 SoOFS_HEADER_FILES    = $(libSoOFS_HEADER_FILES)
66 SoOFS_OBJC_FILES      = $(libSoOFS_OBJC_FILES) SoOFSProduct.m
67 SoOFS_RESOURCE_FILES  = product.plist Version
68 SoOFS_PRINCIPAL_CLASS = SoOFSProduct
69
70 else
71
72 # ----- SoCore product for SOPE core registrations
73
74 BUNDLE_NAME      = SoOFS
75 BUNDLE_EXTENSION = .sxp
76 BUNDLE_INSTALL_DIR = $(GNUSTEP_INSTALLATION_DIR)/Library/SoProducts-$(MAJOR_VERSION).$(MINOR_VERSION)/
77
78 SoOFS_OBJC_FILES       = SoOFSProduct.m
79 SoOFS_RESOURCE_FILES   = product.plist Version
80 SoOFS_PRINCIPAL_CLASS  = SoOFSProduct
81
82 endif
83
84
85 # ----- NGObjWeb tools
86
87 SOPED_NAME=sope-$(MAJOR_VERSION).$(MINOR_VERSION)
88
89 TOOL_NAME = $(SOPED_NAME)
90
91 $(SOPED_NAME)_OBJC_FILES = sope.m
92
93
94 -include GNUmakefile.preamble
95 ifneq ($(frameworks),yes)
96 include $(GNUSTEP_MAKEFILES)/library.make
97 include $(GNUSTEP_MAKEFILES)/bundle.make
98 else
99 include $(GNUSTEP_MAKEFILES)/framework.make
100 endif
101 include $(GNUSTEP_MAKEFILES)/tool.make
102 -include GNUmakefile.postamble
103 -include fhs.make