NWGNUmakefile revision 0662ed52e814f8f08ef0e09956413a792584eddf
8a77240a809197c92c0736c431b4b88947a7bac1Christian Maeder# Declare the sub-directories to be built here
2eeec5240b424984e3ee26296da1eeab6c6d739eChristian Maeder# Get the 'head' of the build environment. This includes default targets and
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# paths to tools
e3c3e8934edda5b2a7c0d11e44fcfb38094dc80bKlaus Luettich# build this level's files
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder# Make sure all needed macro's are defined
8ca6bd4e7de178daa43f05b12cc26dc14d00ad3aChristian Maeder# These directories will be at the beginning of the include list, followed by
6fd36be5d272b82fbd4eb489fc333d9b4c40bd01Maciek Makowski# These flags will come after CFLAGS
01aafb6a9520f05df5ff467b591ecb5474dcfc86Christian Maeder# These defines will come after DEFINES
a7e812b473ac8f0207cec03cc0e4f85a8110b0ebChristian Maeder# These flags will be added to the link.opt file
1a5414972199f27756b513d5cf515e4c0d688c08Ewaryst Schulz# These values will be appended to the correct variables based on the value of
c04f0404f38621101b7cde8a25ea996f927bc172Christian Maederifeq "$(RELEASE)" "debug"
1f086d5155f47fdad9a0de4e46bbebb2c4b33d30Christian Maederifeq "$(RELEASE)" "noopt"
70731e5459a18fc473bdc962ca94d1c12de974afChristian Maederifeq "$(RELEASE)" "release"
70731e5459a18fc473bdc962ca94d1c12de974afChristian Maeder# These are used by the link target if an NLM is being generated
70731e5459a18fc473bdc962ca94d1c12de974afChristian Maeder# This is used by the link 'name' directive to name the nlm. If left blank
70731e5459a18fc473bdc962ca94d1c12de974afChristian Maeder# TARGET_nlm (see below) will be used.
e3c3e8934edda5b2a7c0d11e44fcfb38094dc80bKlaus Luettich# This is used by the link '-desc ' directive.
1f086d5155f47fdad9a0de4e46bbebb2c4b33d30Christian Maeder# If left blank, NLM_NAME will be used.
0e2ae85e2453466d03c1fc5884a3d693235bb9d9Christian MaederNLM_DESCRIPTION =
16e124196c6b204769042028c74f533509c9b5d3Christian Maeder# This is used by the '-threadname' directive. If left blank,
4c7f058cdd19ce67b2b5d4b7f69703d0f8a21e38Christian Maeder# NLM_NAME Thread will be used.
a7e812b473ac8f0207cec03cc0e4f85a8110b0ebChristian MaederNLM_THREAD_NAME =
4c7f058cdd19ce67b2b5d4b7f69703d0f8a21e38Christian Maeder# If this is specified, it will override VERSION value in
e16b3696b2c173aac14200321868ed81b8f7dc69Christian Maeder# If this is specified, it will override the default of 64K
2ce581897091465f0d602e2e36c4ea687230855fChristian MaederNLM_STACK_SIZE =
e85b224577b78d08ba5c39fe9dcc2e53995454a2Christian Maeder# If this is specified it will be used by the link '-entry' directive
71bf376677866b4735ae3c13ee08a863d25c1188Christian MaederNLM_ENTRY_SYM =
0e2ae85e2453466d03c1fc5884a3d693235bb9d9Christian Maeder# If this is specified it will be used by the link '-exit' directive
bea42c7170ab60924237aff297f2ef2bf86d3e37Ewaryst SchulzNLM_EXIT_SYM =
e3c3e8934edda5b2a7c0d11e44fcfb38094dc80bKlaus Luettich# If this is specified it will be used by the link '-check' directive
8c7aa750542dcadb94b971be712564a9a8f1d189Christian MaederNLM_CHECK_SYM =
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# If these are specified it will be used by the link '-flags' directive
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# If this is specified it will be linked in with the XDCData option in the def
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# by setting APACHE_UNIPROC in the environment
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# If there is an NLM target, put it here
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederTARGET_nlm = \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# If there is an LIB target, put it here
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederTARGET_lib = \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# These are the OBJ files needed to create the NLM target above.
4ef5e33657aae95850b7e6941f67ac1fb73cd13fChristian Maeder# Paths must all use the '/' character
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederFILES_nlm_objs = \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# These are the LIB files needed to create the NLM target above.
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# These will be added as a library command in the link.opt file.
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederFILES_nlm_libs = \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# These are the modules that the above NLM target depends on to load.
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# These will be added as a module command in the link.opt file.
1dfd1687e9ee6a45e2cb5268a701ead79c1c1f79Christian MaederFILES_nlm_modules = \
1dfd1687e9ee6a45e2cb5268a701ead79c1c1f79Christian Maeder# If the nlm has a msg file, put it's path here
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederFILE_nlm_msg =
6974b703484f213938fbada59dba61e49840d044Christian Maeder# If the nlm has a hlp file put it's path here
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederFILE_nlm_hlp =
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# If this is specified, it will override $(NWOS)\copyright.txt.
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederFILE_nlm_copyright =
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# Any additional imports go here
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederFILES_nlm_Ximports = \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# Any symbols exported to here
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederFILES_nlm_exports = \
cd6e5706893519bfcf24539afa252fcbed5097ddKlaus Luettich# These are the OBJ files needed to create the LIB target above.
fbf1cdad9a9775bd7332e85f01b6a307d7dbb1cfChristian Maeder# Paths must all use the '/' character
4b338e9d8a4e0bffb4d1bc6fb5fa371a8a0dec1aTill MossakowskiFILES_lib_objs = \
961978c71545e0177683279f8b63358b3e3804b8Christian Maeder# implement targets and dependancies (leave this section alone)
eaf34cf96fbfcdcce7f3bdb322c4ea7ebd1fd220Liam O'Reillylibs :: $(OBJDIR) $(TARGET_lib)
e3c3e8934edda5b2a7c0d11e44fcfb38094dc80bKlaus Luettichnlms :: libs $(TARGET_nlm)
e85b224577b78d08ba5c39fe9dcc2e53995454a2Christian Maeder# Updated this target to create necessary directories and copy files to the
e85b224577b78d08ba5c39fe9dcc2e53995454a2Christian Maeder# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
fbf1cdad9a9775bd7332e85f01b6a307d7dbb1cfChristian Maederinstall :: nlms FORCE
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder $(call COPY,$(OBJDIR)/*.nlm, $(INSTALL)/$(BASEDIR)/modules/)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Any specialized rules here
3b4439aa37e4229ad6e83d46bd303c2799784c80Till Mossakowski# Include the 'tail' makefile that has targets that depend on variables defined
0992b212df8eec8af18e1c208da54897021964c4Christian Maeder# in this makefile
01aafb6a9520f05df5ff467b591ecb5474dcfc86Christian Maederinclude $(APBUILD)/NWGNUtail.inc