NWGNUmakefile revision 553f11a8f542196fd02498006338dd33c64045c3
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova# Declare the sub-directories to be built here
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova# Get the 'head' of the build environment. This includes default targets and
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova# paths to tools
ccaa75089b23c0f043cdbd4001cba4e076ca4fd3Kristina Sojakova# build this level's files
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova# Make sure all needed macro's are defined
ccaa75089b23c0f043cdbd4001cba4e076ca4fd3Kristina Sojakova# These directories will be at the beginning of the include list, followed by
d71bb9deea089887b4fd829c5b766e7e4de9f204Kristina Sojakova $(APR)/include \
d2786879b4733fd4886a5b654f7c6de1d234f638Kristina Sojakova $(APRUTIL)/include \
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova $(SRC)/include \
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova $(STDMOD)/database \
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova $(STDMOD)/http \
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova $(STDMOD)/ssl \
ccaa75089b23c0f043cdbd4001cba4e076ca4fd3Kristina Sojakova $(LUASRC)/src \
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova# These flags will come after CFLAGS
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova -opt nointrinsics \
ccaa75089b23c0f043cdbd4001cba4e076ca4fd3Kristina Sojakova# These defines will come after DEFINES
14650c9e129d8dc51ed55b2edc6ec27d9f0f6d00Kristina Sojakova -DLUA_COMPAT_ALL \
d2786879b4733fd4886a5b654f7c6de1d234f638Kristina Sojakova# These flags will be added to the link.opt file
ccaa75089b23c0f043cdbd4001cba4e076ca4fd3Kristina Sojakova# These values will be appended to the correct variables based on the value of
ccaa75089b23c0f043cdbd4001cba4e076ca4fd3Kristina Sojakovaifeq "$(RELEASE)" "debug"
ccaa75089b23c0f043cdbd4001cba4e076ca4fd3Kristina Sojakovaifeq "$(RELEASE)" "noopt"
d2786879b4733fd4886a5b654f7c6de1d234f638Kristina Sojakovaifeq "$(RELEASE)" "release"
e8dd447a2aa5fbac10668749dfe4142c05ec3d7dKristina Sojakova# These are used by the link target if an NLM is being generated
e8dd447a2aa5fbac10668749dfe4142c05ec3d7dKristina Sojakova# This is used by the link 'name' directive to name the nlm. If left blank
e8dd447a2aa5fbac10668749dfe4142c05ec3d7dKristina Sojakova# TARGET_nlm (see below) will be used.
e8dd447a2aa5fbac10668749dfe4142c05ec3d7dKristina SojakovaNLM_NAME = mod_lua
e8dd447a2aa5fbac10668749dfe4142c05ec3d7dKristina Sojakova# This is used by the link '-desc ' directive.
abd5fc85dc7e19b1614890182436940e922963a4Kristina Sojakova# If left blank, NLM_NAME will be used.
e8dd447a2aa5fbac10668749dfe4142c05ec3d7dKristina SojakovaNLM_DESCRIPTION = Apache $(VERSION_STR) LUA Module
5e35940c3516ccea02caa0450d2b075de0106fa5Kristina Sojakova# This is used by the '-threadname' directive. If left blank,
# $(AP_WORK)/build/NWGNUenvironment.inc
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
$(OBJDIR)/lua.lib \
$(OBJDIR)/mod_lua.o \
$(OBJDIR)/lua_apr.o \
$(OBJDIR)/lua_config.o \
$(OBJDIR)/lua_passwd.o \
$(OBJDIR)/lua_request.o \
$(OBJDIR)/lua_vmprep.o \
$(OBJDIR)/lua_dbd.o \
# These will be added as a library command in the link.opt file.
$(OBJDIR)/lua.lib \
# These will be added as a module command in the link.opt file.
# If this is specified, it will override $(NWOS)\copyright.txt.
@aprlib.imp \
@httpd.imp \
@libc.imp \
$(patsubst $(LUASRC)/src/%.c,$(OBJDIR)/%.o, $(filter-out $(UNWANTED), $(wildcard $(LUASRC)/src/*.c))) \
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
include $(APBUILD)/NWGNUtail.inc