2018-03-10 13:26:43 +01:00
|
|
|
# Compiling the projects with libutils logging code?
|
|
|
|
DO_LOGGING := 1
|
|
|
|
|
2018-06-17 12:47:45 +02:00
|
|
|
# Non WUT plugins need to wrap the malloc functions.
|
|
|
|
WRAP_MALLOC := 1
|
|
|
|
|
2018-06-17 13:00:29 +02:00
|
|
|
# Sets the "-D__WUT__" compiling flag
|
|
|
|
USE_WUT := 0
|
|
|
|
|
2018-03-10 13:26:43 +01:00
|
|
|
# Target filename
|
|
|
|
TARGET := $(notdir $(CURDIR)).mod
|
|
|
|
|
|
|
|
# Source directories
|
|
|
|
SOURCES := src \
|
|
|
|
src/common \
|
2018-03-13 10:15:48 +01:00
|
|
|
src/myfs
|
2018-03-10 13:26:43 +01:00
|
|
|
|
|
|
|
# Data directories
|
|
|
|
DATA :=
|
|
|
|
|
|
|
|
# Include directories
|
|
|
|
INCLUDES := src
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
2018-03-13 10:15:48 +01:00
|
|
|
# options for code generation and linking
|
2018-03-10 13:26:43 +01:00
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# Extra C compiler flags
|
|
|
|
CFLAGS :=
|
|
|
|
# Extra C++ compiler flags
|
|
|
|
CXXFLAGS := -D_GNU_SOURCE
|
2018-03-13 10:15:48 +01:00
|
|
|
# Extra linking flags for all linking steps
|
|
|
|
LD_FLAGS :=
|
|
|
|
# extra linking flags for linking the temporarily elf file (using ld)
|
|
|
|
LD_FLAGS_ELF :=
|
|
|
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
|
|
|
LD_FLAGS_MOD :=
|
2018-03-10 13:26:43 +01:00
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# list of directories containing libraries, this must be the top level containing
|
|
|
|
# include and lib
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
LIBDIRS := $(WUPSDIR) $(PORTLIBS)
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# any extra libraries we wish to link with the project
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
LIBS := -lwups -lfswrapper -lutils -ldynamiclibs
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# Will be added to the final lib paths
|
|
|
|
# example:
|
|
|
|
# -L$C:/library1/lib
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
EXTERNAL_LIBPATHS :=
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# Will be added to the final include paths
|
|
|
|
# -IC:/library1/include
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
2018-03-13 10:15:48 +01:00
|
|
|
-I$(PORTLIBS)/include/libfswrapper
|