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