diff options
| author | Donald Delmar Davis <don@suspectdevices.com> | 2012-08-13 17:42:25 -0700 |
|---|---|---|
| committer | Donald Delmar Davis <don@suspectdevices.com> | 2012-08-13 17:42:25 -0700 |
| commit | 1b8d33c1b063054b20409a5fbc2711c80e8bbf1d (patch) | |
| tree | 1c836000fb3b88a3d0630c04781c6b1d457015c0 /dumblogger/rules.mk | |
| parent | 8b9f691d1f711b94c0c78125cf8c48d12d9cfcc3 (diff) | |
Draft of Freertos based logger without wifi.
Diffstat (limited to 'dumblogger/rules.mk')
| -rw-r--r-- | dumblogger/rules.mk | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/dumblogger/rules.mk b/dumblogger/rules.mk new file mode 100644 index 0000000..263991a --- /dev/null +++ b/dumblogger/rules.mk @@ -0,0 +1,76 @@ +# Template rules.mk file. + +# First, include the standard libmaple rules.mk header. Leave this +# line alone. +include $(MAKEDIR)/header.mk + +############################################################################### + +### Change this middle section for your project. + +### Source subdirectories + +# If any subdirectories contain source files, we have to add them to +# the variable BUILDDIRS, like this. $(BUILD_PATH) is the directory +# where compilation output (like object files) goes. The variable $(d) +# gets expanded to the directory containing this rules.mk file. +#BUILDDIRS += $(BUILD_PATH)/$(d)/getter +#BUILDDIRS += $(BUILD_PATH)/$(d)/randomizer + +### Local flags: these control how the compiler gets called. + +# Here we set a variable for our project's include directory. Note +# that the project top-level directory (i.e., the one containing this +# rules.mk file) is automatically used for include files, so you don't +# need to add it here. +PROJECT_INCLUDE_DIR := $(d)/include + +# CFLAGS_$(d) are additional flags you want to give the C (not C++!) +# compiler. You at least want to have this, which provide the +# appropriate GCC -I switches to let you include libmaple headers. +CFLAGS_$(d) := $(WIRISH_INCLUDES) $(LIBMAPLE_INCLUDES) +# We'll also want our local include directory +CFLAGS_$(d) += -I$(PROJECT_INCLUDE_DIR) -I$(d)/libraries/SDfat -I$(d)/libraries/FreeRTOS +# -I$(d)/libraries/MapleRTC + +# CXXFLAGS_$(d) are extra flags passed to the C++ compiler. We'll need +# our include directory, and we'll also add an extra definition as a +# demo (look in getter.cpp for how it's used). +CXXFLAGS_$(d) := -DMY_MAGIC_NUMBER=0x1eaf1ab5 -I$(PROJECT_INCLUDE_DIR) + +# ASFLAGS_$(d) are extra flags passed to the assembler. We don't +# have any assembly language files in this example, so we'll just +# leave it empty. +ASFLAGS_$(d) := + +### Local rules + +# You can add any additional rules you want here. We don't have +# any extra rules to add. + +### Source files + +# cSRCS_$(d) are the C source files we want compiled. +#cSRCS_$(d) := monitor.c + +# cppSRCS_$(d) are the C++ sources we want compiled. We have our own +# main.cpp, and one additional file. +USER_MODULES_MODULES += $(d)/libraries/SDfat +#USER_MODULES_MODULES += $(d)/libraries/FreeRTOS +#USER_MODULES_MODULES += $(d)/libraries/MapleRTC +$(foreach m,$(USER_MODULES_MODULES),$(eval $(call LIBMAPLE_MODULE_template,$(m)))) + +# We can't call our main file main.cpp, or libmaple's build system +# will get confused and try to build it without our CXXFLAGS. So call +# it something else. Annoying! Hopefully LeafLabs will fix it soon. +cppSRCS_$(d) := Monitor.cpp datalogger.cpp +#cppSRCS_$(d) += Monitor.cpp +#cppSRCS_$(d) += wifiHack.cpp + +# sSRCS_$(d) are the assembly sources. We don't have any. +sSRCS_$(d) := + +############################################################################### + +# Include the libmaple rules.mk footer. Leave this line alone. +include $(MAKEDIR)/footer.mk |
