simpler makefile
parent
90bd7c9116
commit
2ff9c05a48
19
src/makefile
19
src/makefile
|
@ -21,28 +21,11 @@ BOARD := teensy-2-0 # see the libraries you're using for what's available
|
||||||
F_CPU := 16000000 # processor speed, in Hz
|
F_CPU := 16000000 # processor speed, in Hz
|
||||||
|
|
||||||
# firmware stuff
|
# firmware stuff
|
||||||
SRC := $(wildcard *.c)
|
SRC := main.c keyboard/controller.c
|
||||||
# keyboard and layout stuff
|
# keyboard and layout stuff
|
||||||
# --- remove whitespace from vars
|
# --- remove whitespace from vars
|
||||||
KEYBOARD := $(strip $(KEYBOARD))
|
KEYBOARD := $(strip $(KEYBOARD))
|
||||||
LAYOUT := $(strip $(LAYOUT))
|
LAYOUT := $(strip $(LAYOUT))
|
||||||
# --- include stuff
|
|
||||||
SRC += $(wildcard keyboard/*.c)
|
|
||||||
SRC += $(wildcard keyboard/controller/*.c)
|
|
||||||
SRC += $(wildcard keyboard/layout/$(LAYOUT)*.c)
|
|
||||||
# library stuff
|
|
||||||
# - should be last in the list of files to compile, in case there are default
|
|
||||||
# macros that have to be overridden in other source files
|
|
||||||
# - add more "*/*/..."s as necessary to compile everything.
|
|
||||||
# - parts of the stuff under "lib" may not be necessary, depending on other
|
|
||||||
# options, but it's all included here. hopefully any unnecessary stuff gets
|
|
||||||
# compiled out. else, the makefile will have to become more complicated.
|
|
||||||
SRC += $(wildcard lib/*.c)
|
|
||||||
SRC += $(wildcard lib/*/*.c)
|
|
||||||
SRC += $(wildcard lib/*/*/*.c)
|
|
||||||
SRC += $(wildcard lib-other/*.c)
|
|
||||||
SRC += $(wildcard lib-other/*/*.c)
|
|
||||||
SRC += $(wildcard lib-other/*/*/*.c)
|
|
||||||
|
|
||||||
OBJ = $(SRC:%.c=%.o)
|
OBJ = $(SRC:%.c=%.o)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue