makefile working; doesn't compile yet
parent
a12a83b555
commit
f47ab1315e
|
@ -56,5 +56,5 @@ SCR += $(wildcard $(CURDIR)/*.c)
|
|||
SRC += $(wildcard $(CURDIR)/controller/*.c)
|
||||
SRC += $(wildcard $(CURDIR)/layout/$(KEYBOARD_LAYOUT)*.c)
|
||||
|
||||
CFLAGS += -include $(wildcard $(CURDIR)/options.h)
|
||||
CFLAGS += -include '$(wildcard $(CURDIR)/options.h)'
|
||||
|
||||
|
|
|
@ -11,5 +11,5 @@
|
|||
#
|
||||
|
||||
|
||||
SRC += $(CURDIR)/$(MCU).c
|
||||
SRC += $(wildcard $(CURDIR)/$(MCU).c)
|
||||
|
||||
|
|
|
@ -39,12 +39,12 @@ include $(CURDIR)/options.mk
|
|||
# -------
|
||||
CURDIR := $(OLD_CURDIR)
|
||||
|
||||
SRC += $(CURDIR)/main.c
|
||||
SRC += $(wildcard $(CURDIR)/main.c)
|
||||
# (other source files included through the makefile included above)
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
CFLAGS := -mmcu=$(MCU) # processor type; must match real life
|
||||
CFLAGS += -mmcu=$(MCU) # processor type; must match real life
|
||||
CFLAGS += -DF_CPU=$(F_CPU) # processor frequency; must match initialization
|
||||
# in source
|
||||
# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
@ -133,7 +133,7 @@ clean:
|
|||
--no-change-warnings \
|
||||
'$<' '$@' || exit 0
|
||||
|
||||
%.elf: $(OBJ)
|
||||
$(TARGET).elf: $(OBJ)
|
||||
@echo
|
||||
@echo '--- making $@ ---'
|
||||
$(CC) $(strip $(CFLAGS)) $(strip $(LDFLAGS)) '$^' --output '$@'
|
||||
|
|
Loading…
Reference in New Issue