]> err.no Git - sope/blob - sope-appserver/NGObjWeb/GNUmakefile
minor code cleanups
[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 LIBRARY_NAME  = libNGObjWeb
10 ifeq ($(FHS_INSTALL_ROOT),)
11 RESOURCES_DIR = $(GNUSTEP_RESOURCES)/NGObjWeb
12 else
13 RESOURCES_DIR = $(FHS_INSTALL_ROOT)/share/sope-$(MAJOR_VERSION).$(MINOR_VERSION)/ngobjweb
14 endif
15
16 libNGObjWeb_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
17 libNGObjWeb_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
18
19 libNGObjWeb_SUBPROJECTS = \
20         NGHttp          \
21         Associations    \
22         Templates       \
23         DynamicElements \
24         WOHttpAdaptor   \
25         SoObjects       \
26         WebDAV          \
27
28 libNGObjWeb_HEADER_FILES_DIR         = NGObjWeb
29 libNGObjWeb_HEADER_FILES_INSTALL_DIR = /NGObjWeb
30
31 libNGObjWeb_RESOURCES = \
32         Defaults.plist          \
33         Languages.plist         \
34         DAVPropMap.plist        \
35
36 libNGObjWeb_HEADER_FILES = \
37         NGObjWebDecls.h                 \
38         NGObjWeb.h                      \
39         OWResponder.h                   \
40         OWViewRequestHandler.h          \
41         OWResourceManager.h             \
42         WEClientCapabilities.h          \
43         WOActionResults.h               \
44         WOAdaptor.h                     \
45         WOApplication.h                 \
46         WOCoreApplication.h             \
47         WOAssociation.h                 \
48         WOComponent.h                   \
49         WOContext.h                     \
50         WOCookie.h                      \
51         WODirectAction.h                \
52         WODisplayGroup.h                \
53         WODynamicElement.h              \
54         WOElement.h                     \
55         WOHTTPConnection.h              \
56         WOMailDelivery.h                \
57         WOMessage.h                     \
58         WORequest.h                     \
59         WORequestHandler.h              \
60         WOResourceManager.h             \
61         WOResponse.h                    \
62         WOSession.h                     \
63         WOSessionStore.h                \
64         WOStatisticsStore.h             \
65         WOTemplateBuilder.h             \
66         WOxElemBuilder.h                \
67         WOTemplate.h                    \
68         WOComponentScript.h             \
69         WOProxyRequestHandler.h         \
70         WOPageGenerationContext.h       \
71         WOElementTrackingContext.h      \
72         WOComponentDefinition.h         \
73
74 NGObjWebCore_OBJC_FILES = \
75         NSObject+WO.m                   \
76         WOApplication+defaults.m        \
77         WOApplication.m                 \
78         WOCoreApplication.m             \
79         WOComponent.m                   \
80         WOComponent+Sync.m              \
81         WOComponentDefinition.m         \
82         WOComponentFault.m              \
83         WOContext.m                     \
84         WOElement.m                     \
85         WOMessage.m                     \
86         WORequest.m                     \
87         WOResourceManager.m             \
88         WOResponse.m                    \
89         WORunLoop.m                     \
90         WOSession.m                     \
91         WOSessionStore.m                \
92         WOStatisticsStore.m             \
93         _WOStringTable.m                \
94         WOElementID.m                   \
95
96 libNGObjWeb_OBJC_FILES = \
97         $(NGObjWebCore_OBJC_FILES)      \
98         NGHttp+WO.m                     \
99         NGObjWeb.m                      \
100         OWViewRequestHandler.m          \
101         OWResourceManager.m             \
102         SNSConnection.m                 \
103         UnixSignalHandler.m             \
104         WEClientCapabilities.m          \
105         WOAdaptor.m                     \
106         WOApplicationMain.m             \
107         WOChildComponentReference.m     \
108         WOComponentRequestHandler.m     \
109         WOCookie.m                      \
110         WOCoreApplication+Bundle.m      \
111         WODirectAction.m                \
112         WODirectActionRequestHandler.m  \
113         WODisplayGroup.m                \
114         WODynamicElement.m              \
115         WOFileSessionStore.m            \
116         WOHTTPConnection.m              \
117         WOHTTPURLHandle.m               \
118         WOMailDelivery.m                \
119         WOMessage+XML.m                 \
120         WOMessage+Validation.m          \
121         WOPageRequestHandler.m          \
122         WOProxyRequestHandler.m         \
123         WORequestHandler.m              \
124         WOResourceRequestHandler.m      \
125         WOServerSessionStore.m          \
126         WOSimpleHTTPParser.m            \
127         WOStats.m                       \
128
129 ifeq ($(FOUNDATION_LIB),apple)
130 libNGObjWeb_OBJC_FILES += WOWatchDogApplicationMainOSX.m
131 else
132 libNGObjWeb_OBJC_FILES += WOWatchDogApplicationMain.m
133 endif
134
135 ifeq ($(FOUNDATION_LIB),fd)
136 NGObjWebCore_OBJC_FILES += WOServerDefaults.m
137 endif
138
139 # ----- SoCore product for SOPE core registrations
140
141 BUNDLE_NAME      = SoCore
142 BUNDLE_EXTENSION = .sxp
143 BUNDLE_INSTALL_DIR = $(GNUSTEP_INSTALLATION_DIR)/Library/SoProducts-$(MAJOR_VERSION).$(MINOR_VERSION)/
144
145 SoCore_OBJC_FILES      = SoCoreProduct.m
146 SoCore_RESOURCE_FILES  = SoObjects/product.plist Version
147 SoCore_PRINCIPAL_CLASS = SoCoreProduct
148
149 # ----- NGObjWeb tools
150
151 TOOL_NAME = wod
152
153 wod_OBJC_FILES  += wod.m $(NGObjWebCore_OBJC_FILES)
154 ifeq ($(FOUNDATION_LIB),gnu)
155 wod_OBJC_FILES  += UnixSignalHandler.m
156 endif
157 wod_SUBPROJECTS = Templates Associations
158
159 -include GNUmakefile.preamble
160 include $(GNUSTEP_MAKEFILES)/library.make
161 include $(GNUSTEP_MAKEFILES)/bundle.make
162 include $(GNUSTEP_MAKEFILES)/tool.make
163 -include GNUmakefile.postamble
164 -include fhs.make