2018-06-23 18:46:49 +02:00
|
|
|
# Compiling the projects with libutils logging code?
|
|
|
|
DO_LOGGING := 1
|
|
|
|
|
|
|
|
# Links against the wut implementation of newlib, this is useful for using any function
|
|
|
|
# from the C standard library
|
|
|
|
WUT_ENABLE_NEWLIB := 0
|
|
|
|
|
|
|
|
# Links against the wut implementation of stdcpp, this is useful for using any function
|
|
|
|
# from the C++ standard library. This will enable WUT_ENABLE_NEWLIB if you have not already done so.
|
|
|
|
WUT_ENABLE_CPP := 0
|
|
|
|
|
|
|
|
# By default newlib will allocate 90% of the default heap for use with sbrk & malloc,
|
|
|
|
# if this is unacceptable to you then you should use this as it replaces the newlib
|
|
|
|
# malloc functions which ones which redirect to the CafeOS default heap functions
|
|
|
|
# such as MEMAllocFromDefaultHeap.
|
|
|
|
WUT_DEFAULT_MALLOC := 1
|
|
|
|
|
|
|
|
# Target filename
|
|
|
|
TARGET := hidtovpad.mod
|
|
|
|
|
|
|
|
# Source directories
|
|
|
|
SOURCES := src
|
|
|
|
|
|
|
|
# Data directories
|
|
|
|
DATA :=
|
|
|
|
|
|
|
|
# Include directories
|
|
|
|
INCLUDES := src
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# options for code generation and linking
|
|
|
|
#---------------------------------------------------------------------------------
|
2018-06-28 23:34:05 +02:00
|
|
|
# Extra C AND C++ compiler flags
|
|
|
|
COMMON_CFLAGS :=
|
2018-06-23 18:46:49 +02:00
|
|
|
# Extra C compiler flags
|
2018-06-28 23:34:05 +02:00
|
|
|
CFLAGS :=
|
2018-06-23 18:46:49 +02:00
|
|
|
# Extra C++ compiler flags
|
2018-06-28 23:34:05 +02:00
|
|
|
CXXFLAGS :=
|
2018-06-23 18:46:49 +02:00
|
|
|
# Extra linking flags for all linking steps
|
2018-06-28 23:34:05 +02:00
|
|
|
LDFLAGS :=
|
2018-06-23 18:46:49 +02:00
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# list of directories containing libraries, this must be the top level containing
|
|
|
|
# include and lib
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
LIBDIRS := $(WUPSDIR) $(WUT_ROOT)
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# any extra libraries we wish to link with the project
|
|
|
|
#---------------------------------------------------------------------------------
|
2018-06-28 23:34:05 +02:00
|
|
|
LIBS := -lwups -lcontrollerpatcherwut -lutilswut -lcoreinit -lnsysnet -lnsyshid -lvpadbase
|
2018-06-23 18:46:49 +02:00
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# Will be added to the final lib paths
|
|
|
|
# example:
|
|
|
|
# -L$C:/library1/lib
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
EXTERNAL_LIBPATHS :=
|
2018-06-28 23:34:05 +02:00
|
|
|
|
2018-06-23 18:46:49 +02:00
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# Will be added to the final include paths
|
|
|
|
# -IC:/library1/include
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
EXTERNAL_INCLUDE := -I$(WUT_ROOT)/include/libutilswut
|