NWGNUmakefile revision 00d1c0c914426a97022d8205a875c48b211001c2
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Declare the sub-directories to be built here
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSUBDIRS = \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Get the 'head' of the build environment. This includes default targets and
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# paths to tools
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(AP_WORK)/build/NWGNUhead.inc
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# build this level's files
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Make sure all needed macro's are defined
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# These directories will be at the beginning of the include list, followed by
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXINCDIRS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(APR)/include \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(APRUTIL)/include \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(AP_WORK)/include \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LUASRC)/src \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# These flags will come after CFLAGS
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXCFLAGS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -opt nointrinsics \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# These defines will come after DEFINES
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXDEFINES += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# These flags will be added to the link.opt file
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXLFLAGS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -L$(OBJDIR) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# These values will be appended to the correct variables based on the value of
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinifeq "$(RELEASE)" "debug"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXINCDIRS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXCFLAGS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXDEFINES += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXLFLAGS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinifeq "$(RELEASE)" "noopt"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXINCDIRS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXCFLAGS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXDEFINES += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXLFLAGS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinifeq "$(RELEASE)" "release"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXINCDIRS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXCFLAGS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXDEFINES += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinXLFLAGS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# These are used by the link target if an NLM is being generated
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# This is used by the link 'name' directive to name the nlm. If left blank
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# TARGET_nlm (see below) will be used.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinNLM_NAME = mod_lua
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# This is used by the link '-desc ' directive.
# $(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_request.o \
$(OBJDIR)/lua_vmprep.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