summaryrefslogtreecommitdiff
path: root/include.mk
diff options
context:
space:
mode:
Diffstat (limited to 'include.mk')
-rw-r--r--include.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/include.mk b/include.mk
index c2eb585..4bf417e 100644
--- a/include.mk
+++ b/include.mk
@@ -20,7 +20,10 @@
## along with spreadspace avr utils. If not, see <http://www.gnu.org/licenses/>.
##
-include ../defines.mk
+ifndef SPREADAVR_PATH
+SPREADAVR_PATH := ..
+endif
+include $(SPREADAVR_PATH)/defines.mk
## project-specific objects
SRC := $(OBJ:%.o=%.c)
@@ -55,12 +58,12 @@ build-lufa: liblufa.a
liblufa.a: Makefile
@echo "building external LUFA lib ($(LUFA_PATH))"
- make -f ../lufa.mk liblufa.a
- make -f ../lufa.mk clean
+ make -f $(SPREADAVR_PATH)/lufa.mk liblufa.a
+ make -f $(SPREADAVR_PATH)/lufa.mk clean
clean-lufa:
@echo "cleaning external LUFA lib ($(LUFA_PATH))"
- make -f ../lufa.mk clean
+ make -f $(SPREADAVR_PATH)/lufa.mk clean
rm -f liblufa.a