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-04-11 03:58:26 +02:00
|
|
|
TARGET = firmware
|
2012-03-27 12:06:52 +02:00
|
|
|
|
2012-04-14 04:05:06 +02:00
|
|
|
SRC = $(wildcard *.c) \
|
|
|
|
$(wildcard keyboard/*.c) \
|
|
|
|
$(wildcard keyboard/*/*.c) \
|
|
|
|
$(wildcard lib/*.c) \
|
|
|
|
$(wildcard lib/*/*.c) \
|
2012-04-10 10:44:27 +02:00
|
|
|
'./lib-other/pjrc/usb_keyboard/usb_keyboard.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-04-12 03:52:31 +02:00
|
|
|
TEENSY_MAKE = $(MAKE) -f 'lib-other/pjrc/usb_keyboard/Makefile' \
|
2012-03-27 12:06:52 +02:00
|
|
|
TARGET='$(TARGET)' \
|
2012-03-19 08:01:41 +01:00
|
|
|
SRC='$(SRC)' \
|
|
|
|
EXTRAINCDIRS='$(EXTRAINCDIRS)'
|
2012-03-14 22:46:52 +01:00
|
|
|
|
|
|
|
|
2012-04-10 10:44:27 +02:00
|
|
|
.PHONY: all clean debug
|
2012-03-12 02:52:31 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
2012-04-10 10:44:27 +02:00
|
|
|
debug:
|
|
|
|
$(TEENSY_MAKE) debug
|
|
|
|
|