2012-03-12 02:52:31 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
2012-03-14 22:46:52 +01:00
|
|
|
# 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
|
2012-03-12 02:52:31 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
2012-03-27 12:06:52 +02:00
|
|
|
# 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>
|
2012-03-12 02:52:31 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
2012-03-14 22:46:52 +01:00
|
|
|
|
2012-03-27 12:06:52 +02:00
|
|
|
TARGET = ergodox-firmware
|
|
|
|
|
|
|
|
SRC = $(shell find -maxdepth 1 -name '*.c') \
|
|
|
|
$(shell find ./keyboard -name '*.c') \
|
2012-04-01 02:02:55 +02:00
|
|
|
$(shell find ./lib -name '*.c')
|
2012-03-27 12:06:52 +02:00
|
|
|
|
|
|
|
|
2012-03-19 08:01:41 +01:00
|
|
|
EXTRAINCDIRS = .
|
2012-03-14 22:46:52 +01:00
|
|
|
|
2012-03-27 12:06:52 +02:00
|
|
|
TEENSY_MAKE = $(MAKE) -f 'lib-other/pjrc/blinky/Makefile' \
|
|
|
|
TARGET='$(TARGET)' \
|
2012-03-19 08:01:41 +01:00
|
|
|
SRC='$(SRC)' \
|
|
|
|
EXTRAINCDIRS='$(EXTRAINCDIRS)'
|
2012-03-14 22:46:52 +01:00
|
|
|
|
|
|
|
|
2012-03-12 02:52:31 +01:00
|
|
|
.PHONY: all clean
|
|
|
|
|
|
|
|
all:
|
2012-03-14 22:46:52 +01:00
|
|
|
$(TEENSY_MAKE) all
|
2012-03-12 02:52:31 +01:00
|
|
|
|
|
|
|
clean:
|
2012-03-14 22:46:52 +01:00
|
|
|
$(TEENSY_MAKE) clean
|
2012-04-05 12:08:20 +02:00
|
|
|
git clean -X
|
2012-03-12 02:52:31 +01:00
|
|
|
|