#!/usr/bin/make -f
# -*- Makefile -*-

#####
# Overhead stuff
#####
M := $(if $(MK_START),$(firstword $(NEXT_M_STACK)),$(CURDIR))
NEXT_M_STACK := $(wordlist 2, 40, $(NEXT_M_STACK))

all: build

######
#   I. What does this file provide to the world
#      (Path for include, list of files for libs & bins
#      without file extensions)
######

$M/INC_PATH_PUBLISHED := 
$M/ARCS_PUBLISHED     := 
$M/BINS_PUBLISHED     := 
$M/A_ROOT_MODULE      := 

######
#  II. What other modules are needed for this module 
#      to compile (list of module directory names and
#      specific lib file names)
######

$M/MODULES_NEEDED   := 
$M/LIBRARIES_NEEDED := 

######
# III. What is the build directory structure relative to
#      directory containing this file.  If left blank,
#      basemake.mak will provide defaults.
#####E

$M/SRC_PATH :=
$M/INC_PATH :=
$M/OBJ_PATH :=
$M/LIB_PATH :=
$M/BIN_PATH :=

######
#  IV. List sources and build deliverables.  Should be
#      listed as relative to SRC_PATH and LIB_PATH/BIN_PATH
#      respectively.  *_PUBLISHED from above automatically
#      added. (BUILD_SRCS only used for Linux dependency generation)
######

$M/BUILD_SRCS := 
$M/BUILD_BINS := 
$M/BUILD_ARCS := 
$M/BUILD_DLLS :=

######
#   V. Set any global compile features through defining 
#     feature's flag variable: MK_THREADS, MK_SOCKETS
######

######
#  VI. Include basemake.mak which contains all necessary 
#      functions and rules to build based upon data above.
######
ifeq ($P,)
%.mk: %.mk.in ; cd $(@D);configure
endif

include $(if $P,$P,$M/../)mevlib/basemake.mk

######
# VII. Add any custom dependencies and/or rules.
#      NOTE:  Beginning here, all files MUST use full path
#      naming.  basemake.mak establishes these variables:
#       $P - Path prefix, absolute path name less this module's directory
#       $M - Module path, absolute path name including this directory
#       $O - Object file extension (.o in Linux, .obj in Windows)
#       $B/$E - Binary file extension (. in Linux, .exe in Windows)
#       $A/$L - Static library extension (.a in Linux, .lib in Windows)
#       $S/$D - dynamic library extension (.s in Linux, .dll in Windows)
#       $($M/SRCS) - BUILD_SRCS with full path prefixed
#       $($M/BINS) - BUILD_BINS with full path prefixed and $B suffixed
#       $($M/ARCS) - BUILD_ARCS with full path prefixed and $A suffixed
#       $($M/DLLS) - BUILD_DLLS with full path prefixed and $D suffixed
#       $(MS) - Module path to sources
#       $(MI) - Module path to includes
#       $(MO) - Module path to object files
#       $(ML) - Module path to libraries (static and dynamic)
#       $(MB) - Module path to binaries
#####

## change module specific flags if needed
$M/CFLAGS   +=
$M/CPPFLAGS +=
$M/CXXFLAGS +=
$M/LDFLAGS  +=
$M/LDLIBS   +=




