diff options
Diffstat (limited to 'include.mk')
-rw-r--r-- | include.mk | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |