NWGNUmakefile revision 251876
1193323Sed#
2193323Sed# Declare the sub-directories to be built here
3193323Sed#
4193323Sed
5193323SedSUBDIRS = \
6193323Sed	$(EOLIST) 
7193323Sed
8193323Sed#
9193323Sed# Get the 'head' of the build environment.  This includes default targets and
10193323Sed# paths to tools
11193323Sed#
12193323Sed
13193323Sedinclude $(APR_WORK)/build/NWGNUhead.inc
14193323Sed
15193323Sed#
16193323Sed# build this level's files
17193323Sed
18193323Sed#
19193323Sed# Make sure all needed macro's are defined
20193323Sed#
21193323Sed
22249423Sdim#
23198090Srdivacky# These directories will be at the beginning of the include list, followed by
24198090Srdivacky# INCDIRS
25193323Sed#
26193323SedXINCDIRS	+= \
27193323Sed			$(APR)/include \
28193323Sed			$(APR)/include/arch/NetWare \
29193323Sed			$(APU)/include \
30193323Sed			$(APU)/include/private \
31193323Sed			$(LDAPSDK)/inc \
32193323Sed			$(EOLIST)
33193323Sed
34193323Sed#
35193323Sed# These flags will come after CFLAGS
36202375Srdivacky#
37193323SedXCFLAGS		+= \
38193323Sed			$(EOLIST)
39193323Sed
40193323Sed#
41193323Sed# These defines will come after DEFINES
42193323Sed#
43193323SedXDEFINES	+= \
44193323Sed			$(EOLIST)
45193323Sed
46202375Srdivacky#
47202375Srdivacky#LDAP client requires the use of Winsock
48193323Sed#
49198090Srdivackyifdef USE_STDSOCKETS
50226633SdimXDEFINES += -DUSE_WINSOCK \
51193323Sed			$(EOLIST)
52193323Sedendif
53218893Sdim
54193323Sed#
55193323Sed# These flags will be added to the link.opt file
56193323Sed#
57193323SedXLFLAGS		+= \
58193323Sed			$(EOLIST)
59234353Sdim
60193323Sed#
61193323Sed# These values will be appended to the correct variables based on the value of
62234353Sdim# RELEASE
63193323Sed#
64193323Sedifeq "$(RELEASE)" "debug"
65193323SedXINCDIRS	+= \
66193323Sed			$(EOLIST)
67193323Sed
68226633SdimXCFLAGS		+= \
69193323Sed			$(EOLIST)
70193323Sed
71193323SedXDEFINES	+= \
72193323Sed			$(EOLIST)
73193323Sed
74193323SedXLFLAGS		+= \
75193323Sed			$(EOLIST)
76193323Sedendif
77193323Sed
78193323Sedifeq "$(RELEASE)" "noopt"
79193323SedXINCDIRS	+= \
80223017Sdim			$(EOLIST)
81223017Sdim
82223017SdimXCFLAGS		+= \
83223017Sdim			$(EOLIST)
84223017Sdim
85223017SdimXDEFINES	+= \
86223017Sdim			$(EOLIST)
87223017Sdim
88223017SdimXLFLAGS		+= \
89223017Sdim			$(EOLIST)
90226633Sdimendif
91226633Sdim
92223017Sdimifeq "$(RELEASE)" "release"
93193323SedXINCDIRS	+= \
94193323Sed			$(EOLIST)
95193323Sed
96193323SedXCFLAGS		+= \
97193323Sed			$(EOLIST)
98193323Sed
99193323SedXDEFINES	+= \
100205218Srdivacky			$(EOLIST)
101205218Srdivacky
102193323SedXLFLAGS		+= \
103193323Sed			$(EOLIST)
104193323Sedendif
105193323Sed
106193323Sed#
107193323Sed# These are used by the link target if an NLM is being generated
108193323Sed# This is used by the link 'name' directive to name the nlm.  If left blank
109193323Sed# TARGET_nlm (see below) will be used.
110193323Sed#
111193323SedNLM_NAME		= 
112193323Sed
113193323Sed#
114193323Sed# This is used by the link '-desc ' directive. 
115193323Sed# If left blank, NLM_NAME will be used.
116193323Sed#
117193323SedNLM_DESCRIPTION	= 
118193323Sed
119193323Sed#
120193323Sed# This is used by the '-threadname' directive.  If left blank,
121193323Sed# NLM_NAME Thread will be used.
122226633Sdim#
123226633SdimNLM_THREAD_NAME	= 
124226633Sdim#
125193323Sed# If this is specified, it will override VERSION value in 
126193323Sed# $(APR_WORK)/build/NWGNUenvironment.inc
127193323Sed#
128193323SedNLM_VERSION		=
129193323Sed
130193323Sed#
131193323Sed# If this is specified, it will override the default of 64K
132193323Sed#
133193323SedNLM_STACK_SIZE	= 
134193323Sed
135193323Sed#
136193323Sed# If this is specified it will be used by the link '-entry' directive
137193323Sed#
138193323SedNLM_ENTRY_SYM	=
139193323Sed
140193323Sed#
141193323Sed# If this is specified it will be used by the link '-exit' directive
142193323Sed#
143193323SedNLM_EXIT_SYM	=
144193323Sed
145193323Sed#
146193323Sed# If this is specified it will be used by the link '-check' directive
147226633Sdim#
148226633SdimNLM_CHECK_SYM	=
149226633Sdim
150226633Sdim#
151226633Sdim# If this is specified it will be used by the link '-flags' directive
152226633Sdim#
153193323SedNLM_FLAGS		=
154193323Sed 
155193323Sed#
156263508Sdim# If this is specified it will be linked in with the XDCData option in the def 
157193323Sed# file instead of the default of $(APR)/misc/netware/apache.xdc.  XDCData can 
158193323Sed# be disabled by setting APACHE_UNIPROC in the environment
159193323Sed#
160193323SedXDCDATA         = 
161193323Sed
162193323Sed#
163263508Sdim# Declare all target files (you must add your files here)
164193323Sed#
165193323Sed
166193323Sed#
167226633Sdim# If there is an NLM target, put it here
168226633Sdim#
169263508SdimTARGET_nlm = \
170226633Sdim	$(EOLIST)
171226633Sdim
172226633Sdim#
173226633Sdim# If there is an LIB target, put it here
174226633Sdim#
175226633SdimTARGET_lib = \
176226633Sdim	$(OBJDIR)/apuldap.lib \
177226633Sdim	$(EOLIST)
178226633Sdim
179226633Sdim#
180193323Sed# These are the OBJ files needed to create the NLM target above.
181193323Sed# Paths must all use the '/' character
182263508Sdim#
183193323SedFILES_nlm_objs = \
184193323Sed	$(EOLIST)
185226633Sdim
186226633Sdim#
187193323Sed# These are the LIB files needed to create the NLM target above.
188193323Sed# These will be added as a library command in the link.opt file.
189193323Sed#
190193323SedFILES_nlm_libs = \
191193323Sed	$(EOLIST)
192193323Sed
193193323Sed#
194193323Sed# These are the modules that the above NLM target depends on to load.
195193323Sed# These will be added as a module command in the link.opt file.
196263508Sdim#
197193323SedFILES_nlm_modules = \
198226633Sdim	$(EOLIST)
199226633Sdim
200193323Sed#
201193323Sed# If the nlm has a msg file, put it's path here
202193323Sed#
203193323SedFILE_nlm_msg =
204193323Sed 
205193323Sed#
206218893Sdim# If the nlm has a hlp file put it's path here
207193323Sed#
208198090SrdivackyFILE_nlm_hlp =
209198090Srdivacky
210198090Srdivacky#
211198090Srdivacky# If this is specified, it will override the default copyright.
212263508Sdim#
213193323SedFILE_nlm_copyright =
214193323Sed
215223017Sdim#
216193323Sed# Any additional imports go here
217223017Sdim#
218234353SdimFILES_nlm_Ximports = \
219193323Sed	$(EOLIST)
220218893Sdim 
221193323Sed#   
222223017Sdim# Any symbols exported to here
223193323Sed#
224193323SedFILES_nlm_exports = \
225223017Sdim	$(EOLIST)
226223017Sdim	
227193323Sed#   
228223017Sdim# These are the OBJ files needed to create the LIB target above.
229193323Sed# Paths must all use the '/' character
230224145Sdim#
231224145SdimFILES_lib_objs = \
232224145Sdim	$(OBJDIR)/apr_ldap_init.o \
233224145Sdim	$(OBJDIR)/apr_ldap_option.o \
234223017Sdim	$(OBJDIR)/apr_ldap_url.o \
235218893Sdim	$(OBJDIR)/apr_ldap_rebind.o \
236193323Sed	$(OBJDIR)/apr_ldap_stub.o \
237193323Sed	$(EOLIST)
238193323Sed
239193323Sed#
240193323Sed# implement targets and dependancies (leave this section alone)
241193323Sed#
242193323Sed
243193323Sedlibs :: $(OBJDIR) $(TARGET_lib)
244193323Sed
245193323Sednlms :: libs $(TARGET_nlm)
246207618Srdivacky
247207618Srdivacky#
248193323Sed# Updated this target to create necessary directories and copy files to the 
249218893Sdim# correct place.  (See $(APR_WORK)/build/NWGNUhead.inc for examples)
250193323Sed#
251223017Sdiminstall :: nlms FORCE
252234353Sdim
253234353Sdim#
254234353Sdim# Any specialized rules here
255234353Sdim#
256234353Sdim
257193323Sed#
258193323Sed# Include the 'tail' makefile that has targets that depend on variables defined
259198090Srdivacky# in this makefile
260198090Srdivacky#
261193323Sed
262193323Sedinclude $(APRBUILD)/NWGNUtail.inc
263193323Sed
264193323Sed