ergodox-firmware/src/makefile

35 lines
982 B
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 = ergodox-firmware
SRC = $(shell find -maxdepth 1 -name '*.c') \
$(shell find ./keyboard -name '*.c') \
$(shell find ./lib -name '*.c')
EXTRAINCDIRS = .
TEENSY_MAKE = $(MAKE) -f 'lib-other/pjrc/blinky/Makefile' \
TARGET='$(TARGET)' \
SRC='$(SRC)' \
EXTRAINCDIRS='$(EXTRAINCDIRS)'
.PHONY: all clean
all:
$(TEENSY_MAKE) all
clean:
$(TEENSY_MAKE) clean
git clean -X