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