ergodox-firmware/src/makefile

41 lines
1.1 KiB
Makefile
Raw Normal View History

# -----------------------------------------------------------------------------
# This is mostly a stub at the moment, but I'm keeping it separate so I can
# mess with it later without changing the original
# -----------------------------------------------------------------------------
# Copyright (c) 2012 Ben Blazak <benblazak.dev@gmail.com>
# Released under The MIT License (MIT) (see "license.md")
# Project located at <https://github.com/benblazak/ergodox-firmware>
# -----------------------------------------------------------------------------
TARGET = firmware
SRC = $(wildcard *.c) \
$(wildcard keyboard/*.c) \
$(wildcard keyboard/*/*.c) \
$(wildcard lib/*.c) \
$(wildcard lib/*/*.c) \
'./lib-other/pjrc/usb_keyboard/usb_keyboard.c'
EXTRAINCDIRS = .
TEENSY_MAKE = $(MAKE) -f 'lib-other/pjrc/usb_keyboard/Makefile' \
TARGET='$(TARGET)' \
SRC='$(SRC)' \
EXTRAINCDIRS='$(EXTRAINCDIRS)'
.PHONY: all clean debug
all:
$(TEENSY_MAKE) all
clean:
$(TEENSY_MAKE) clean
git clean -X
debug:
$(TEENSY_MAKE) debug