From 2ff9c05a48b5cd165723bad4a3d3edc0042ec94b Mon Sep 17 00:00:00 2001 From: Stefan Dorn Date: Sun, 12 Jun 2016 00:53:15 +0100 Subject: [PATCH] simpler makefile --- src/makefile | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/makefile b/src/makefile index 8c9a2c8..cc6ecd1 100644 --- a/src/makefile +++ b/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 # firmware stuff -SRC := $(wildcard *.c) +SRC := main.c keyboard/controller.c # keyboard and layout stuff # --- remove whitespace from vars KEYBOARD := $(strip $(KEYBOARD)) 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)