]> granicus.if.org Git - apache/blob - support/NWGNUhttxt2dbm
Add the NetWare makefile for the httxt2dbm utility
[apache] / support / NWGNUhttxt2dbm
1 #\r
2 # Make sure all needed macro's are defined\r
3 #\r
4 \r
5 #\r
6 # Get the 'head' of the build environment if necessary.  This includes default\r
7 # targets and paths to tools\r
8 #\r
9 \r
10 ifndef EnvironmentDefined\r
11 include $(AP_WORK)\build\NWGNUhead.inc\r
12 endif\r
13 \r
14 #\r
15 # These directories will be at the beginning of the include list, followed by\r
16 # INCDIRS\r
17 #\r
18 XINCDIRS        += \\r
19                         $(NWOS) \\r
20                         $(APR)/include \\r
21                         $(APRUTIL)/include \\r
22                         $(APR)/misc/netware \\r
23                         $(APR) \\r
24                         $(EOLIST)\r
25 \r
26 #\r
27 # These flags will come after CFLAGS\r
28 #\r
29 XCFLAGS         += \\r
30                         $(EOLIST)\r
31 \r
32 #\r
33 # These defines will come after DEFINES\r
34 #\r
35 XDEFINES        += \\r
36                         $(EOLIST)\r
37 \r
38 #\r
39 # These flags will be added to the link.opt file\r
40 #\r
41 XLFLAGS         += \\r
42                         $(EOLIST)\r
43 \r
44 #\r
45 # These values will be appended to the correct variables based on the value of\r
46 # RELEASE\r
47 #\r
48 ifeq "$(RELEASE)" "debug"\r
49 XINCDIRS        += \\r
50                         $(EOLIST)\r
51 \r
52 XCFLAGS         += \\r
53                         $(EOLIST)\r
54 \r
55 XDEFINES        += \\r
56                         $(EOLIST)\r
57 \r
58 XLFLAGS         += \\r
59                         $(EOLIST)\r
60 endif\r
61 \r
62 ifeq "$(RELEASE)" "noopt"\r
63 XINCDIRS        += \\r
64                         $(EOLIST)\r
65 \r
66 XCFLAGS         += \\r
67                         $(EOLIST)\r
68 \r
69 XDEFINES        += \\r
70                         $(EOLIST)\r
71 \r
72 XLFLAGS         += \\r
73                         $(EOLIST)\r
74 endif\r
75 \r
76 ifeq "$(RELEASE)" "release"\r
77 XINCDIRS        += \\r
78                         $(EOLIST)\r
79 \r
80 XCFLAGS         += \\r
81                         $(EOLIST)\r
82 \r
83 XDEFINES        += \\r
84                         $(EOLIST)\r
85 \r
86 XLFLAGS         += \\r
87                         $(EOLIST)\r
88 endif\r
89 \r
90 #\r
91 # These are used by the link target if an NLM is being generated\r
92 # This is used by the link 'name' directive to name the nlm.  If left blank\r
93 # TARGET_nlm (see below) will be used.\r
94 #\r
95 NLM_NAME                = httxt2dbm\r
96 \r
97 #\r
98 # This is used by the link '-desc ' directive.\r
99 # If left blank, NLM_NAME will be used.\r
100 #\r
101 NLM_DESCRIPTION = Apache $(VERSION_STR) HT Text to DBM Conversion Utility for NetWare\r
102 \r
103 #\r
104 # This is used by the '-threadname' directive.  If left blank,\r
105 # NLM_NAME Thread will be used.\r
106 #\r
107 NLM_THREAD_NAME = httxt2dbm\r
108 \r
109 #\r
110 # This is used by the '-screenname' directive.  If left blank,\r
111 # 'Apache for NetWare' Thread will be used.\r
112 #\r
113 NLM_SCREEN_NAME = httxt2dbm Conversion Utility\r
114 \r
115 #\r
116 # If this is specified, it will override VERSION value in\r
117 # $(AP_WORK)\build\NWGNUenvironment.inc\r
118 #\r
119 NLM_VERSION             =\r
120 \r
121 #\r
122 # If this is specified, it will override the default of 64K\r
123 #\r
124 NLM_STACK_SIZE  = 8192\r
125 \r
126 \r
127 #\r
128 # If this is specified it will be used by the link '-entry' directive\r
129 #\r
130 NLM_ENTRY_SYM   = _LibCPrelude\r
131 \r
132 #\r
133 # If this is specified it will be used by the link '-exit' directive\r
134 #\r
135 NLM_EXIT_SYM    = _LibCPostlude\r
136 \r
137 #\r
138 # If this is specified it will be used by the link '-check' directive\r
139 #\r
140 NLM_CHECK_SYM   =\r
141 \r
142 #\r
143 # If these are specified it will be used by the link '-flags' directive\r
144 #\r
145 NLM_FLAGS               = AUTOUNLOAD, PSEUDOPREEMPTION\r
146 \r
147 #\r
148 # If this is specified it will be linked in with the XDCData option in the def\r
149 # file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled\r
150 # by setting APACHE_UNIPROC in the environment\r
151 #\r
152 XDCDATA         =\r
153 \r
154 #\r
155 # If there is an NLM target, put it here\r
156 #\r
157 TARGET_nlm = \\r
158         $(OBJDIR)/httxt2dbm.nlm \\r
159         $(EOLIST)\r
160 \r
161 #\r
162 # If there is an LIB target, put it here\r
163 #\r
164 TARGET_lib = \\r
165         $(EOLIST)\r
166 \r
167 #\r
168 # These are the OBJ files needed to create the NLM target above.\r
169 # Paths must all use the '/' character\r
170 #\r
171 FILES_nlm_objs = \\r
172         $(OBJDIR)/httxt2dbm.o \\r
173         $(EOLIST)\r
174 \r
175 #\r
176 # These are the LIB files needed to create the NLM target above.\r
177 # These will be added as a library command in the link.opt file.\r
178 #\r
179 FILES_nlm_libs = \\r
180         libcpre.o \\r
181         $(EOLIST)\r
182 \r
183 #\r
184 # These are the modules that the above NLM target depends on to load.\r
185 # These will be added as a module command in the link.opt file.\r
186 #\r
187 FILES_nlm_modules = \\r
188         aprlib \\r
189         libc \\r
190         $(EOLIST)\r
191 \r
192 #\r
193 # If the nlm has a msg file, put it's path here\r
194 #\r
195 FILE_nlm_msg =\r
196 \r
197 #\r
198 # If the nlm has a hlp file put it's path here\r
199 #\r
200 FILE_nlm_hlp =\r
201 \r
202 #\r
203 # If this is specified, it will override $(NWOS)\copyright.txt.\r
204 #\r
205 FILE_nlm_copyright =\r
206 \r
207 #\r
208 # Any additional imports go here\r
209 #\r
210 FILES_nlm_Ximports = \\r
211         @$(APR)/aprlib.imp \\r
212         @libc.imp \\r
213         $(EOLIST)\r
214 \r
215 #\r
216 # Any symbols exported to here\r
217 #\r
218 FILES_nlm_exports = \\r
219         $(EOLIST)\r
220 \r
221 #\r
222 # These are the OBJ files needed to create the LIB target above.\r
223 # Paths must all use the '/' character\r
224 #\r
225 FILES_lib_objs = \\r
226                 $(EOLIST)\r
227 \r
228 #\r
229 # implement targets and dependancies (leave this section alone)\r
230 #\r
231 \r
232 libs :: $(OBJDIR) $(TARGET_lib)\r
233 \r
234 nlms :: libs $(TARGET_nlm)\r
235 \r
236 #\r
237 # Updated this target to create necessary directories and copy files to the\r
238 # correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)\r
239 #\r
240 install :: nlms FORCE\r
241 \r
242 #\r
243 # Any specialized rules here\r
244 #\r
245 \r
246 #\r
247 # Include the 'tail' makefile that has targets that depend on variables defined\r
248 # in this makefile\r
249 #\r
250 \r
251 include $(AP_WORK)\build\NWGNUtail.inc\r
252 \r