]> err.no Git - sope/blob - sope-appserver/NGObjWeb/GNUmakefile
Improved WORepetition's implementation to be more convenient in regards to the 'list...
[sope] / sope-appserver / NGObjWeb / GNUmakefile
1 # GNUstep makefile
2
3 -include ../../config.make
4 include ../common.make
5 include ./Version
6
7 GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_LOCAL_ROOT)
8
9 ifneq ($(frameworks),yes)
10 LIBRARY_NAME   = libNGObjWeb
11 else
12 FRAMEWORK_NAME = NGObjWeb
13 endif
14
15
16 ifneq ($(frameworks),yes)
17 ifeq ($(FHS_INSTALL_ROOT),)
18 RESOURCES_DIR = $(GNUSTEP_RESOURCES)/NGObjWeb
19 else
20 RESOURCES_DIR = $(FHS_INSTALL_ROOT)/share/sope-$(MAJOR_VERSION).$(MINOR_VERSION)/ngobjweb
21 endif
22 endif
23
24 libNGObjWeb_PCH_FILE = common.h
25 libNGObjWeb_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
26 libNGObjWeb_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
27
28 libNGObjWeb_SUBPROJECTS = \
29         NGHttp          \
30         Associations    \
31         Templates       \
32         DynamicElements \
33         WOHttpAdaptor   \
34         SoObjects       \
35         WebDAV          \
36
37 libNGObjWeb_HEADER_FILES_DIR         = NGObjWeb
38 libNGObjWeb_HEADER_FILES_INSTALL_DIR = /NGObjWeb
39
40 libNGObjWeb_RESOURCES = \
41         Defaults.plist          \
42         Languages.plist         \
43         DAVPropMap.plist        \
44
45 FHS_MANPAGES += \
46         sope-ngobjweb-defaults.5        \
47         doc/*.3
48
49 libNGObjWeb_HEADER_FILES = \
50         NGObjWebDecls.h                 \
51         NGObjWeb.h                      \
52         OWResponder.h                   \
53         OWViewRequestHandler.h          \
54         OWResourceManager.h             \
55         WEClientCapabilities.h          \
56         WOActionResults.h               \
57         WOAdaptor.h                     \
58         WOApplication.h                 \
59         WOCoreApplication.h             \
60         WOAssociation.h                 \
61         WOComponent.h                   \
62         WOContext.h                     \
63         WOCookie.h                      \
64         WODirectAction.h                \
65         WODisplayGroup.h                \
66         WODynamicElement.h              \
67         WOElement.h                     \
68         WOHTTPConnection.h              \
69         WOMailDelivery.h                \
70         WOMessage.h                     \
71         WORequest.h                     \
72         WORequestHandler.h              \
73         WOResourceManager.h             \
74         WOResponse.h                    \
75         WOSession.h                     \
76         WOSessionStore.h                \
77         WOStatisticsStore.h             \
78         WOTemplateBuilder.h             \
79         WOxElemBuilder.h                \
80         WOTemplate.h                    \
81         WOComponentScript.h             \
82         WOProxyRequestHandler.h         \
83         WOPageGenerationContext.h       \
84         WOElementTrackingContext.h      \
85         WOComponentDefinition.h         \
86         NSString+JavaScriptEscaping.h   \
87
88 NGObjWebCore_OBJC_FILES = \
89         NSObject+WO.m                   \
90         WOApplication+defaults.m        \
91         WOApplication.m                 \
92         WOCoreApplication.m             \
93         WOComponent.m                   \
94         WOComponent+Sync.m              \
95         WOComponentDefinition.m         \
96         WOComponentFault.m              \
97         WOContext.m                     \
98         WOElement.m                     \
99         WOMessage.m                     \
100         WORequest.m                     \
101         WOResourceManager.m             \
102         WOResponse.m                    \
103         WORunLoop.m                     \
104         WOSession.m                     \
105         WOSessionStore.m                \
106         WOStatisticsStore.m             \
107         _WOStringTable.m                \
108         WOElementID.m                   \
109
110 libNGObjWeb_OBJC_FILES = \
111         $(NGObjWebCore_OBJC_FILES)      \
112         NGHttp+WO.m                     \
113         NGObjWeb.m                      \
114         OWViewRequestHandler.m          \
115         OWResourceManager.m             \
116         SNSConnection.m                 \
117         UnixSignalHandler.m             \
118         WEClientCapabilities.m          \
119         WOAdaptor.m                     \
120         WOApplicationMain.m             \
121         WOChildComponentReference.m     \
122         WOComponentRequestHandler.m     \
123         WOCookie.m                      \
124         WOCoreApplication+Bundle.m      \
125         WODirectAction.m                \
126         WODirectActionRequestHandler.m  \
127         WODisplayGroup.m                \
128         WODynamicElement.m              \
129         WOFileSessionStore.m            \
130         WOHTTPConnection.m              \
131         WOHTTPURLHandle.m               \
132         WOMailDelivery.m                \
133         WOMessage+XML.m                 \
134         WOMessage+Validation.m          \
135         WOPageRequestHandler.m          \
136         WOProxyRequestHandler.m         \
137         WORequestHandler.m              \
138         WOResourceRequestHandler.m      \
139         WOServerSessionStore.m          \
140         WOSimpleHTTPParser.m            \
141         WOStats.m                       \
142         NSString+JavaScriptEscaping.m   \
143
144 ifeq ($(FOUNDATION_LIB),apple)
145 libNGObjWeb_OBJC_FILES += WOWatchDogApplicationMainOSX.m
146 else
147 libNGObjWeb_OBJC_FILES += WOWatchDogApplicationMain.m
148 endif
149
150 ifeq ($(FOUNDATION_LIB),fd)
151 NGObjWebCore_OBJC_FILES += WOServerDefaults.m
152 endif
153
154
155 # framework support
156
157 NGObjWeb_PCH_FILE         = $(libNGObjWeb_PCH_FILE)
158 NGObjWeb_HEADER_FILES_DIR = NGObjWeb
159 NGObjWeb_HEADER_FILES     = $(libNGObjWeb_HEADER_FILES)
160 NGObjWeb_OBJC_FILES       = $(libNGObjWeb_OBJC_FILES)
161 NGObjWeb_SUBPROJECTS      = $(libNGObjWeb_SUBPROJECTS)
162 NGObjWeb_RESOURCE_FILES   = $(libNGObjWeb_RESOURCES)
163
164 # ----- SoCore product for SOPE core registrations
165
166 BUNDLE_NAME      = SoCore
167 BUNDLE_EXTENSION = .sxp
168 BUNDLE_INSTALL_DIR = $(GNUSTEP_INSTALLATION_DIR)/Library/SoProducts-$(MAJOR_VERSION).$(MINOR_VERSION)/
169
170 SoCore_PCH_FILE        = common.h
171 SoCore_OBJC_FILES      = SoCoreProduct.m
172 SoCore_RESOURCE_FILES  = SoObjects/product.plist Version
173 SoCore_PRINCIPAL_CLASS = SoCoreProduct
174
175
176 # ----- NGObjWeb tools
177
178 TOOL_NAME = wod
179
180 wod_PCH_FILE    += common.h
181 wod_OBJC_FILES  += wod.m $(NGObjWebCore_OBJC_FILES)
182 ifeq ($(FOUNDATION_LIB),gnu)
183 wod_OBJC_FILES  += UnixSignalHandler.m
184 endif
185 wod_SUBPROJECTS = Templates Associations
186
187
188 # building
189
190 -include GNUmakefile.preamble
191 ifneq ($(frameworks),yes)
192 include $(GNUSTEP_MAKEFILES)/library.make
193 else
194 include $(GNUSTEP_MAKEFILES)/framework.make
195 endif
196 include $(GNUSTEP_MAKEFILES)/bundle.make
197 include $(GNUSTEP_MAKEFILES)/tool.make
198 -include GNUmakefile.postamble
199 -include fhs.make