NWGNUmakefile revision e961abd49ab1b184b356f63591d37083a5651451
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim#
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim# Declare the sub-directories to be built here
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim#
4e191199a0aeab09d78df8f5579e745572e8b7bcwsanchez
f3a5934ca0fb0f0f813bd9d9d06af8937e3f401fjimSUBDIRS = \
f3a5934ca0fb0f0f813bd9d9d06af8937e3f401fjim $(EOLIST)
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim#
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim# Get the 'head' of the build environment. This includes default targets and
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim# paths to tools
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh#
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianhinclude $(AP_WORK)\build\NWGNUhead.inc
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh#
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh# build this level's files
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh#
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh# These directories will be at the beginning of the include list, followed by
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh# INCDIRS
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh#
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianhXINCDIRS += \
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh $(NWOS) \
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh $(APR)/include \
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh $(AP_WORK)/include \
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh $(APRUTIL)/include \
b999f6ba2a266bf9a92687f31bb7e76021ac5891ianh $(EOLIST)
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwrowe
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwrowe#
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwrowe# These flags will come after CFLAGS
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwrowe#
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwroweXCFLAGS += \
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwrowe $(EOLIST)
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwrowe
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwrowe#
b999f6ba2a266bf9a92687f31bb7e76021ac5891ianh# These defines will come after DEFINES
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwrowe#
b999f6ba2a266bf9a92687f31bb7e76021ac5891ianhXDEFINES += \
7d7931c1f4d46b041ad2ad6fdb9499289063611eianh $(EOLIST)
1f3a44f2fd7f9fee00b80c7ddcf1028ea145f91drbb
b9b69856aec9ea58ea1b1e5aff669e8eaf2ebce4rbb#
b9b69856aec9ea58ea1b1e5aff669e8eaf2ebce4rbb# These flags will be added to the link.opt file
b9b69856aec9ea58ea1b1e5aff669e8eaf2ebce4rbb#
1f3a44f2fd7f9fee00b80c7ddcf1028ea145f91drbbXLFLAGS += \
1f3a44f2fd7f9fee00b80c7ddcf1028ea145f91drbb $(EOLIST)
1f3a44f2fd7f9fee00b80c7ddcf1028ea145f91drbb
7d7931c1f4d46b041ad2ad6fdb9499289063611eianh#
1f3a44f2fd7f9fee00b80c7ddcf1028ea145f91drbb# These values will be appended to the correct variables based on the value of
68bcde9c52e9e749482df2800dbdff09559115e0chuck# RELEASE
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck#
43ea154f46345c9722c2b25b2b9f5086ec79eaeeorlikowskiifeq "$(RELEASE)" "debug"
43ea154f46345c9722c2b25b2b9f5086ec79eaeeorlikowskiXINCDIRS += \
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck $(EOLIST)
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck
0c233c76f21b358f4a0d81e0f956339ca727c14cchuckXCFLAGS += \
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck $(EOLIST)
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck
0c233c76f21b358f4a0d81e0f956339ca727c14cchuckXDEFINES += \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
53c2eb831bfe47860e3f5ec9190b15cb92f15181chuck
0c233c76f21b358f4a0d81e0f956339ca727c14cchuckXLFLAGS += \
53c2eb831bfe47860e3f5ec9190b15cb92f15181chuck $(EOLIST)
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowskiendif
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowski
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowskiifeq "$(RELEASE)" "noopt"
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowskiXINCDIRS += \
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowski $(EOLIST)
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowski
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowskiXCFLAGS += \
4f7dd0949d92462a8adc31eee8aff266eea55204chuck $(EOLIST)
4f7dd0949d92462a8adc31eee8aff266eea55204chuck
4f7dd0949d92462a8adc31eee8aff266eea55204chuckXDEFINES += \
4f7dd0949d92462a8adc31eee8aff266eea55204chuck $(EOLIST)
4f7dd0949d92462a8adc31eee8aff266eea55204chuck
75b3ed55173b29dbdf9e2fb6ec5462bfceee21aechuckXLFLAGS += \
75b3ed55173b29dbdf9e2fb6ec5462bfceee21aechuck $(EOLIST)
75b3ed55173b29dbdf9e2fb6ec5462bfceee21aechuckendif
4f7dd0949d92462a8adc31eee8aff266eea55204chuck
75b3ed55173b29dbdf9e2fb6ec5462bfceee21aechuckifeq "$(RELEASE)" "release"
0c233c76f21b358f4a0d81e0f956339ca727c14cchuckXINCDIRS += \
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck $(EOLIST)
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuckXCFLAGS += \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuckXDEFINES += \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuckXLFLAGS += \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
68bcde9c52e9e749482df2800dbdff09559115e0chuckendif
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# These are used by the link target if an NLM is being generated
68bcde9c52e9e749482df2800dbdff09559115e0chuck# This is used by the link 'name' directive to name the nlm. If left blank
68bcde9c52e9e749482df2800dbdff09559115e0chuck# TARGET_nlm (see below) will be used.
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckNLM_NAME = genchars
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# This is used by the link '-desc ' directive.
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If left blank, NLM_NAME will be used.
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckNLM_DESCRIPTION = Generate Test Characters
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# This is used by the '-threadname' directive. If left blank,
68bcde9c52e9e749482df2800dbdff09559115e0chuck# NLM_NAME Thread will be used.
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckNLM_THREAD_NAME = genchars
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck# If this is specified, it will override VERSION value in
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck# $(AP_WORK)\NWGNUNetWare.rul
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckNLM_VERSION = 1,0,0
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If this is specified, it will override the default of 64K
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckNLM_STACK_SIZE = 8192
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If this is specified it will be used by the link '-entry' directive
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckNLM_ENTRY_SYM =_LibCPrelude
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If this is specified it will be used by the link '-exit' directive
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckNLM_EXIT_SYM =_LibCPostlude
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If this is specified it will be used by the link '-check' directive
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckNLM_CHECK_SYM =
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If this is specified it will be used by the link '-flags' directive
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
0c233c76f21b358f4a0d81e0f956339ca727c14cchuckNLM_FLAGS = PSEUDOPREEMPTION
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If this is specified it will be linked in with the XDCData option in the def
68bcde9c52e9e749482df2800dbdff09559115e0chuck# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
68bcde9c52e9e749482df2800dbdff09559115e0chuck# by setting APACHE_UNIPROC in the environment
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckXDCDATA =
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# Declare all target files (you must add your files here)
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If there is an NLM target, put it here
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckTARGET_nlm = \
68bcde9c52e9e749482df2800dbdff09559115e0chuck$(OBJDIR)/genchars.nlm \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If there is an LIB target, put it here
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckTARGET_lib = \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# These are the OBJ files needed to create the NLM target above.
68bcde9c52e9e749482df2800dbdff09559115e0chuck# Paths must all use the '/' character
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckFILES_nlm_objs = \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(OBJDIR)/gen_test_char.o \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# These are the LIB files needed to create the NLM target above.
68bcde9c52e9e749482df2800dbdff09559115e0chuck# These will be added as a library command in the link.opt file.
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck#
0c233c76f21b358f4a0d81e0f956339ca727c14cchuckFILES_nlm_libs = \
68bcde9c52e9e749482df2800dbdff09559115e0chuck libcpre.o \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# These are the modules that the above NLM target depends on to load.
68bcde9c52e9e749482df2800dbdff09559115e0chuck# These will be added as a module command in the link.opt file.
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckFILES_nlm_modules = \
68bcde9c52e9e749482df2800dbdff09559115e0chuck Libc \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If the nlm has a msg file, put it's path here
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckFILE_nlm_msg =
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If the nlm has a hlp file put it's path here
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckFILE_nlm_hlp =
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# If this is specified, it will override $(NWOS)\copyright.txt.
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckFILE_nlm_copyright =
68bcde9c52e9e749482df2800dbdff09559115e0chuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# Any additional imports go here
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckFILES_nlm_Ximports = \
68bcde9c52e9e749482df2800dbdff09559115e0chuck @libc.imp \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck
68bcde9c52e9e749482df2800dbdff09559115e0chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# Any symbols exported to here
4f7dd0949d92462a8adc31eee8aff266eea55204chuck#
4f7dd0949d92462a8adc31eee8aff266eea55204chuckFILES_nlm_exports = \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(EOLIST)
4f7dd0949d92462a8adc31eee8aff266eea55204chuck
4f7dd0949d92462a8adc31eee8aff266eea55204chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuck# These are the OBJ files needed to create the LIB target above.
4f7dd0949d92462a8adc31eee8aff266eea55204chuck# Paths must all use the '/' character
4f7dd0949d92462a8adc31eee8aff266eea55204chuck#
68bcde9c52e9e749482df2800dbdff09559115e0chuckFILES_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.
#
install :: nlms FORCE
#
# 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