NWGNUmakefile revision 4f935de4900dc064a1e145be5e48f6af77ac24fc
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
670734c2ee137c587411795c6f82566c9d3729b7coar# Declare the sub-directories to be built here
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manojSUBDIRS = \
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb $(EOLIST)
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# Get the 'head' of the build environment. This includes default targets and
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# paths to tools
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddardinclude $(AP_WORK)\build\NWGNUhead.inc
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard#
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# build this level's files
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# Make sure all needed macro's are defined
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb#
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb# These directories will be at the beginning of the include list, followed by
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# INCDIRS
f6a6245816cd866361da8c576b1f47c7a54b6610fanf#
f755f06050191550f77c825eff6b0e48a35b3e91dgaudetXINCDIRS += \
f755f06050191550f77c825eff6b0e48a35b3e91dgaudet $(EOLIST)
40a5b7189dbbb28e107bf008ee625f2f0142c2ccdgaudet
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj#
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj# These flags will come after CFLAGS
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manojXCFLAGS += \
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj $(EOLIST)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard#
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# These defines will come after DEFINES
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard#
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardXDEFINES += \
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard $(EOLIST)
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard#
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard# These flags will be added to the link.opt file
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard#
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardXLFLAGS += \
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard $(EOLIST)
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddard# These values will be appended to the correct variables based on the value of
75960f20f88dad6bc67892c711c429946063d133stoddard# RELEASE
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddardifeq "$(RELEASE)" "debug"
75960f20f88dad6bc67892c711c429946063d133stoddardXINCDIRS += \
75960f20f88dad6bc67892c711c429946063d133stoddard $(EOLIST)
75960f20f88dad6bc67892c711c429946063d133stoddard
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanojXCFLAGS += \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(EOLIST)
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj
f6a6245816cd866361da8c576b1f47c7a54b6610fanfXDEFINES += \
f6a6245816cd866361da8c576b1f47c7a54b6610fanf $(EOLIST)
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manojXLFLAGS += \
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard $(EOLIST)
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddardendif
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddardifeq "$(RELEASE)" "noopt"
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddardXINCDIRS += \
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard $(EOLIST)
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard
2aae6faee508221efbeaba5547ca79b7a20ef047stoddardXCFLAGS += \
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard $(EOLIST)
670734c2ee137c587411795c6f82566c9d3729b7coar
670734c2ee137c587411795c6f82566c9d3729b7coarXDEFINES += \
75960f20f88dad6bc67892c711c429946063d133stoddard $(EOLIST)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardXLFLAGS += \
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard $(EOLIST)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardendif
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
56ca30c968906053ae61acb218420667bb58d996rbbifeq "$(RELEASE)" "release"
56ca30c968906053ae61acb218420667bb58d996rbbXINCDIRS += \
56ca30c968906053ae61acb218420667bb58d996rbb $(EOLIST)
56ca30c968906053ae61acb218420667bb58d996rbb
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanojXCFLAGS += \
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj $(EOLIST)
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj
56ca30c968906053ae61acb218420667bb58d996rbbXDEFINES += \
0bff2f28ef945280c17099c142126178a78e1e54manoj $(EOLIST)
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manojXLFLAGS += \
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard $(EOLIST)
1e585ba09ea32272e63c4c39c35491e975d21d98stoddardendif
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard#
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard# These are used by the link target if an NLM is being generated
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard# This is used by the link 'name' directive to name the nlm. If left blank
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard# TARGET_nlm (see below) will be used.
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard#
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardNLM_NAME =
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
0bff2f28ef945280c17099c142126178a78e1e54manoj#
0bff2f28ef945280c17099c142126178a78e1e54manoj# This is used by the link '-desc ' directive.
0bff2f28ef945280c17099c142126178a78e1e54manoj# If left blank, NLM_NAME will be used.
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddardNLM_DESCRIPTION =
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard#
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj# This is used by the '-threadname' directive. If left blank,
f03d292915be9977eaf74e9be7b0404aec226f84manoj# NLM_NAME Thread will be used.
f03d292915be9977eaf74e9be7b0404aec226f84manoj#
f03d292915be9977eaf74e9be7b0404aec226f84manojNLM_THREAD_NAME =
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# If this is specified, it will override VERSION value in
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj# $(AP_WORK)\build\NWGNUenvironment.inc
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj#
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanojNLM_VERSION =
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj
ff849e4163ed879288f0df15f78b6c9d278ec804fanf#
ff849e4163ed879288f0df15f78b6c9d278ec804fanf# If this is specified, it will override the default of 64K
ff849e4163ed879288f0df15f78b6c9d278ec804fanf#
ff849e4163ed879288f0df15f78b6c9d278ec804fanfNLM_STACK_SIZE =
ff849e4163ed879288f0df15f78b6c9d278ec804fanf
df4a7c143b27b489dd2d865bb3f6668c8420b3a9fanf
df4a7c143b27b489dd2d865bb3f6668c8420b3a9fanf#
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein# If this is specified it will be used by the link '-entry' directive
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein#
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgsteinNLM_ENTRY_SYM =
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein#
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein# If this is specified it will be used by the link '-exit' directive
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojNLM_EXIT_SYM =
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
d5defd5a0c5cdbaf74b85939484dc2b6c8317d19manoj# If this is specified it will be used by the link '-check' directive
d5defd5a0c5cdbaf74b85939484dc2b6c8317d19manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojNLM_CHECK_SYM =
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# If these are specified it will be used by the link '-flags' directive
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojNLM_FLAGS =
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manoj#
0bff2f28ef945280c17099c142126178a78e1e54manoj# If this is specified it will be linked in with the XDCData option in the def
d6b3cb141f0667101c1bca883ad15b383402c93bfielding# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# by setting APACHE_UNIPROC in the environment
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojXDCDATA =
40a5b7189dbbb28e107bf008ee625f2f0142c2ccdgaudet
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
dbf0c7bef06259486cd2748a2d0e82f27e099d6efielding# If there is an NLM target, put it here
dbf0c7bef06259486cd2748a2d0e82f27e099d6efielding#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojTARGET_nlm = \
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb $(OBJDIR)/example.nlm \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(OBJDIR)/mod_cach.nlm \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(OBJDIR)/mem_cach.nlm \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(OBJDIR)/dsk_cach.nlm \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(OBJDIR)/extfiltr.nlm \
f6a6245816cd866361da8c576b1f47c7a54b6610fanf $(EOLIST)
f6a6245816cd866361da8c576b1f47c7a54b6610fanf
f6a6245816cd866361da8c576b1f47c7a54b6610fanf#
f6a6245816cd866361da8c576b1f47c7a54b6610fanf# If there is an LIB target, put it here
f6a6245816cd866361da8c576b1f47c7a54b6610fanf#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojTARGET_lib = \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(EOLIST)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# These are the OBJ files needed to create the NLM target above.
d6b3cb141f0667101c1bca883ad15b383402c93bfielding# Paths must all use the '/' character
d6b3cb141f0667101c1bca883ad15b383402c93bfielding#
d6b3cb141f0667101c1bca883ad15b383402c93bfieldingFILES_nlm_objs = \
d6b3cb141f0667101c1bca883ad15b383402c93bfielding $(EOLIST)
d6b3cb141f0667101c1bca883ad15b383402c93bfielding
d6b3cb141f0667101c1bca883ad15b383402c93bfielding#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# These are the LIB files needed to create the NLM target above.
670734c2ee137c587411795c6f82566c9d3729b7coar# These will be added as a library command in the link.opt file.
670734c2ee137c587411795c6f82566c9d3729b7coar#
670734c2ee137c587411795c6f82566c9d3729b7coarFILES_nlm_libs = \
670734c2ee137c587411795c6f82566c9d3729b7coar $(EOLIST)
670734c2ee137c587411795c6f82566c9d3729b7coar
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# These are the modules that the above NLM target depends on to load.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# These will be added as a module command in the link.opt file.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojFILES_nlm_modules = \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(EOLIST)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# If the nlm has a msg file, put it's path here
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
d6b3cb141f0667101c1bca883ad15b383402c93bfieldingFILE_nlm_msg =
d6b3cb141f0667101c1bca883ad15b383402c93bfielding
d6b3cb141f0667101c1bca883ad15b383402c93bfielding#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
#
install :: nlms FORCE
copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)\build\NWGNUtail.inc