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