1#
2# Declare the sub-directories to be built here
3#
4
5SUBDIRS = \
6	$(EOLIST)
7
8#
9# Get the 'head' of the build environment.  This includes default targets and
10# paths to tools
11#
12
13include $(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#
27XINCDIRS	+= \
28			$(APR)/include \
29			$(APR)/include/arch/NetWare \
30			$(EOLIST)
31
32#
33# These flags will come after CFLAGS
34#
35XCFLAGS		+= \
36			$(EOLIST)
37
38#
39# These defines will come after DEFINES
40#
41XDEFINES	+= \
42			$(EOLIST)
43
44#
45# These flags will be added to the link.opt file
46#
47XLFLAGS		+= \
48			$(EOLIST)
49
50#
51# These values will be appended to the correct variables based on the value of
52# RELEASE
53#
54ifeq "$(RELEASE)" "debug"
55XINCDIRS	+= \
56			$(EOLIST)
57
58XCFLAGS		+= \
59			$(EOLIST)
60
61XDEFINES	+= \
62			$(EOLIST)
63
64XLFLAGS		+= \
65			$(EOLIST)
66endif
67
68ifeq "$(RELEASE)" "noopt"
69XINCDIRS	+= \
70			$(EOLIST)
71
72XCFLAGS		+= \
73			$(EOLIST)
74
75XDEFINES	+= \
76			$(EOLIST)
77
78XLFLAGS		+= \
79			$(EOLIST)
80endif
81
82ifeq "$(RELEASE)" "release"
83XINCDIRS	+= \
84			$(EOLIST)
85
86XCFLAGS		+= \
87			$(EOLIST)
88
89XDEFINES	+= \
90			$(EOLIST)
91
92XLFLAGS		+= \
93			$(EOLIST)
94endif
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#
101NLM_NAME	=
102
103#
104# This is used by the link '-desc ' directive.
105# If left blank, NLM_NAME will be used.
106#
107NLM_DESCRIPTION	=
108
109#
110# This is used by the '-threadname' directive.  If left blank,
111# NLM_NAME Thread will be used.
112#
113NLM_THREAD_NAME	=
114
115#
116# This is used by the '-screenname' directive.  If left blank,
117# 'Apache for NetWare' Thread will be used.
118#
119NLM_SCREEN_NAME =
120
121#
122# If this is specified, it will override VERSION value in
123# $(APR_WORK)/build/NWGNUenvironment.inc
124#
125NLM_VERSION	=
126
127#
128# If this is specified, it will override the default of 64K
129#
130NLM_STACK_SIZE	=
131
132#
133# If this is specified it will be used by the link '-entry' directive
134#
135NLM_ENTRY_SYM	=
136
137#
138# If this is specified it will be used by the link '-exit' directive
139#
140NLM_EXIT_SYM	=
141
142#
143# If this is specified it will be used by the link '-check' directive
144#
145NLM_CHECK_SYM	=
146
147#
148# If this is specified it will be used by the link '-flags' directive
149#
150NLM_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#
157XDCDATA		=
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#
166TARGET_nlm = \
167	$(OBJDIR)/aputest.nlm \
168	$(OBJDIR)/aputest.nlm \
169	$(EOLIST)
170#
171# If there is an LIB target, put it here
172#
173TARGET_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#
180FILES_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#
187FILES_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#
194FILES_nlm_modules = \
195	aprlib \
196	$(EOLIST)
197
198#
199# If the nlm has a msg file, put it's path here
200#
201FILE_nlm_msg =
202
203#
204# If the nlm has a hlp file put it's path here
205#
206FILE_nlm_hlp =
207
208#
209# If this is specified, it will override the default copyright.
210#
211FILE_nlm_copyright =
212
213#
214# Any additional imports go here
215#
216FILES_nlm_Ximports = \
217	$(EOLIST)
218
219#
220# Any symbols exported to here
221#
222FILES_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#
229FILES_lib_objs = \
230	$(EOLIST)
231
232#
233# implement targets and dependancies (leave this section alone)
234#
235
236libs :: $(OBJDIR) $(TARGET_lib)
237
238nlms :: 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#
244install :: 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
257include $(APRBUILD)/NWGNUtail.inc
258
259