move apps to subdirectory, add relative path support to Makefile

This commit is contained in:
Joey Castillo
2021-09-16 15:40:01 -04:00
parent b3de08343b
commit 07420e6ead
10 changed files with 85 additions and 81 deletions

View File

@@ -0,0 +1 @@
build/

View File

@@ -0,0 +1,26 @@
# Leave these lines at the top of the file.
# TOP should get us to the root of the project...
TOP = ../../..
# ...and make.mk has all the watch library sources and includes.
include $(TOP)/make.mk
# If you add any other subdirectories with header files you wish to include, add them after ../
# Note that you will need to add a backslash at the end of any line you wish to continue, i.e.
# INCLUDES += \
# -I../ \
# -I../drivers/ \
# -I../utils/
INCLUDES += \
-I../ \
# If you add any other source files you wish to compile, add them after ../app.c
# Note that you will need to add a backslash at the end of any line you wish to continue, i.e.
# SRCS += \
# ../app.c \
# ../drivers/bmp280.c \
# ../utils/temperature.c
SRCS += \
../app.c \
# Leave this line at the bottom of the file; rules.mk has all the targets for making your project.
include $(TOP)/rules.mk