NWGNUmakefile revision 251876
155682Smarkm#
272445Sassar# Declare the sub-directories to be built here
355682Smarkm#
455682Smarkm
555682SmarkmSUBDIRS = \
655682Smarkm	$(EOLIST) 
755682Smarkm
855682Smarkm#
955682Smarkm# Get the 'head' of the build environment.  This includes default targets and
1055682Smarkm# paths to tools
1155682Smarkm#
1255682Smarkm
1355682Smarkminclude $(APR_WORK)/build/NWGNUhead.inc
1455682Smarkm
1555682Smarkm#
1655682Smarkm# build this level's files
1755682Smarkm
1855682Smarkm#
1955682Smarkm# Make sure all needed macro's are defined
2055682Smarkm#
2155682Smarkm
2255682Smarkm#
2355682Smarkm# These directories will be at the beginning of the include list, followed by
2455682Smarkm# INCDIRS
2555682Smarkm#
2655682SmarkmXINCDIRS	+= \
2755682Smarkm			$(APR)/include \
2855682Smarkm			$(APR)/include/arch/NetWare \
2955682Smarkm			$(APU)/include \
3055682Smarkm			$(APU)/include/private \
3155682Smarkm			$(LDAPSDK)/inc \
3255682Smarkm			$(EOLIST)
3355682Smarkm
3455682Smarkm#
3555682Smarkm# These flags will come after CFLAGS
3655682Smarkm#
3778527SassarXCFLAGS		+= \
3855682Smarkm			$(EOLIST)
3955682Smarkm
4055682Smarkm#
4155682Smarkm# These defines will come after DEFINES
4255682Smarkm#
4355682SmarkmXDEFINES	+= \
4455682Smarkm			$(EOLIST)
4555682Smarkm
4655682Smarkm#
4755682Smarkm#LDAP client requires the use of Winsock
4855682Smarkm#
4955682Smarkmifdef USE_STDSOCKETS
5055682SmarkmXDEFINES += -DUSE_WINSOCK \
5155682Smarkm			$(EOLIST)
5255682Smarkmendif
5355682Smarkm
5455682Smarkm#
5555682Smarkm# These flags will be added to the link.opt file
5655682Smarkm#
5755682SmarkmXLFLAGS		+= \
5855682Smarkm			$(EOLIST)
5955682Smarkm
6055682Smarkm#
6155682Smarkm# These values will be appended to the correct variables based on the value of
6255682Smarkm# RELEASE
6355682Smarkm#
6455682Smarkmifeq "$(RELEASE)" "debug"
6555682SmarkmXINCDIRS	+= \
6655682Smarkm			$(EOLIST)
6755682Smarkm
6855682SmarkmXCFLAGS		+= \
6955682Smarkm			$(EOLIST)
7055682Smarkm
7155682SmarkmXDEFINES	+= \
7255682Smarkm			$(EOLIST)
7355682Smarkm
7455682SmarkmXLFLAGS		+= \
7555682Smarkm			$(EOLIST)
7655682Smarkmendif
7755682Smarkm
7855682Smarkmifeq "$(RELEASE)" "noopt"
7955682SmarkmXINCDIRS	+= \
8055682Smarkm			$(EOLIST)
8155682Smarkm
8255682SmarkmXCFLAGS		+= \
8355682Smarkm			$(EOLIST)
8455682Smarkm
8555682SmarkmXDEFINES	+= \
8655682Smarkm			$(EOLIST)
8755682Smarkm
8855682SmarkmXLFLAGS		+= \
8955682Smarkm			$(EOLIST)
9055682Smarkmendif
9155682Smarkm
9255682Smarkmifeq "$(RELEASE)" "release"
9355682SmarkmXINCDIRS	+= \
9455682Smarkm			$(EOLIST)
9555682Smarkm
9655682SmarkmXCFLAGS		+= \
9755682Smarkm			$(EOLIST)
9855682Smarkm
9955682SmarkmXDEFINES	+= \
10055682Smarkm			$(EOLIST)
10155682Smarkm
10255682SmarkmXLFLAGS		+= \
10355682Smarkm			$(EOLIST)
10455682Smarkmendif
10555682Smarkm
10672445Sassar#
10755682Smarkm# These are used by the link target if an NLM is being generated
10855682Smarkm# This is used by the link 'name' directive to name the nlm.  If left blank
10955682Smarkm# TARGET_nlm (see below) will be used.
11055682Smarkm#
11155682SmarkmNLM_NAME		= 
11255682Smarkm
11355682Smarkm#
11455682Smarkm# This is used by the link '-desc ' directive. 
11555682Smarkm# If left blank, NLM_NAME will be used.
11655682Smarkm#
11755682SmarkmNLM_DESCRIPTION	= 
11855682Smarkm
11955682Smarkm#
12055682Smarkm# This is used by the '-threadname' directive.  If left blank,
12155682Smarkm# NLM_NAME Thread will be used.
12255682Smarkm#
12355682SmarkmNLM_THREAD_NAME	= 
12455682Smarkm#
12555682Smarkm# If this is specified, it will override VERSION value in 
12655682Smarkm# $(APR_WORK)/build/NWGNUenvironment.inc
12755682Smarkm#
12855682SmarkmNLM_VERSION		=
12955682Smarkm
13055682Smarkm#
13155682Smarkm# If this is specified, it will override the default of 64K
13255682Smarkm#
13355682SmarkmNLM_STACK_SIZE	= 
13472445Sassar
13572445Sassar#
13655682Smarkm# If this is specified it will be used by the link '-entry' directive
13755682Smarkm#
13855682SmarkmNLM_ENTRY_SYM	=
13955682Smarkm
14055682Smarkm#
14155682Smarkm# If this is specified it will be used by the link '-exit' directive
14255682Smarkm#
14355682SmarkmNLM_EXIT_SYM	=
14455682Smarkm
14555682Smarkm#
14655682Smarkm# If this is specified it will be used by the link '-check' directive
14755682Smarkm#
14855682SmarkmNLM_CHECK_SYM	=
14955682Smarkm
15055682Smarkm#
15155682Smarkm# If this is specified it will be used by the link '-flags' directive
15255682Smarkm#
15355682SmarkmNLM_FLAGS		=
15455682Smarkm 
15555682Smarkm#
15655682Smarkm# If this is specified it will be linked in with the XDCData option in the def 
15755682Smarkm# file instead of the default of $(APR)/misc/netware/apache.xdc.  XDCData can 
15855682Smarkm# be disabled by setting APACHE_UNIPROC in the environment
15955682Smarkm#
16055682SmarkmXDCDATA         = 
16155682Smarkm
16255682Smarkm#
16355682Smarkm# Declare all target files (you must add your files here)
16455682Smarkm#
16555682Smarkm
16655682Smarkm#
16755682Smarkm# If there is an NLM target, put it here
16855682Smarkm#
16955682SmarkmTARGET_nlm = \
17055682Smarkm	$(EOLIST)
17172445Sassar
17255682Smarkm#
17355682Smarkm# If there is an LIB target, put it here
17472445Sassar#
17555682SmarkmTARGET_lib = \
17655682Smarkm	$(OBJDIR)/apuldap.lib \
17755682Smarkm	$(EOLIST)
17855682Smarkm
17972445Sassar#
18055682Smarkm# These are the OBJ files needed to create the NLM target above.
18155682Smarkm# Paths must all use the '/' character
18255682Smarkm#
18372445SassarFILES_nlm_objs = \
18472445Sassar	$(EOLIST)
18572445Sassar
18672445Sassar#
18772445Sassar# These are the LIB files needed to create the NLM target above.
18855682Smarkm# These will be added as a library command in the link.opt file.
18955682Smarkm#
19055682SmarkmFILES_nlm_libs = \
19155682Smarkm	$(EOLIST)
19255682Smarkm
19355682Smarkm#
19472445Sassar# These are the modules that the above NLM target depends on to load.
19572445Sassar# These will be added as a module command in the link.opt file.
19672445Sassar#
19755682SmarkmFILES_nlm_modules = \
19872445Sassar	$(EOLIST)
19972445Sassar
20072445Sassar#
20172445Sassar# If the nlm has a msg file, put it's path here
20272445Sassar#
20355682SmarkmFILE_nlm_msg =
20472445Sassar 
20555682Smarkm#
20655682Smarkm# If the nlm has a hlp file put it's path here
20755682Smarkm#
20855682SmarkmFILE_nlm_hlp =
20955682Smarkm
21055682Smarkm#
21155682Smarkm# If this is specified, it will override the default copyright.
21255682Smarkm#
21355682SmarkmFILE_nlm_copyright =
21455682Smarkm
21555682Smarkm#
21655682Smarkm# Any additional imports go here
21755682Smarkm#
21855682SmarkmFILES_nlm_Ximports = \
21955682Smarkm	$(EOLIST)
22055682Smarkm 
22155682Smarkm#   
22255682Smarkm# Any symbols exported to here
22355682Smarkm#
22455682SmarkmFILES_nlm_exports = \
22555682Smarkm	$(EOLIST)
22655682Smarkm	
22755682Smarkm#   
22855682Smarkm# These are the OBJ files needed to create the LIB target above.
22955682Smarkm# Paths must all use the '/' character
23055682Smarkm#
23155682SmarkmFILES_lib_objs = \
23255682Smarkm	$(OBJDIR)/apr_ldap_init.o \
23355682Smarkm	$(OBJDIR)/apr_ldap_option.o \
23455682Smarkm	$(OBJDIR)/apr_ldap_url.o \
23555682Smarkm	$(OBJDIR)/apr_ldap_rebind.o \
23655682Smarkm	$(OBJDIR)/apr_ldap_stub.o \
23755682Smarkm	$(EOLIST)
23855682Smarkm
23955682Smarkm#
24055682Smarkm# implement targets and dependancies (leave this section alone)
24155682Smarkm#
24255682Smarkm
24355682Smarkmlibs :: $(OBJDIR) $(TARGET_lib)
24455682Smarkm
24555682Smarkmnlms :: libs $(TARGET_nlm)
24655682Smarkm
24755682Smarkm#
24855682Smarkm# Updated this target to create necessary directories and copy files to the 
24955682Smarkm# correct place.  (See $(APR_WORK)/build/NWGNUhead.inc for examples)
25055682Smarkm#
25155682Smarkminstall :: nlms FORCE
25255682Smarkm
25355682Smarkm#
25455682Smarkm# Any specialized rules here
25555682Smarkm#
25655682Smarkm
25755682Smarkm#
25855682Smarkm# Include the 'tail' makefile that has targets that depend on variables defined
25955682Smarkm# in this makefile
26055682Smarkm#
26155682Smarkm
26255682Smarkminclude $(APRBUILD)/NWGNUtail.inc
26355682Smarkm
26472445Sassar