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