summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2014-03-20 17:44:06 +0100
committerFlorian Jung <flo@windfisch.org>2014-06-19 23:48:56 +0200
commitef0613fc6a5eef89df1cff5c695e1ccf844359f9 (patch)
tree8b834f83a369c3f538dbe86062bfb81f0922a7e0 /Makefile
parenta400be8ac4d44f3f35fc362081927bc750b1f551 (diff)
initial experiments
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2bbd104..782f5fb 100644
--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@ OBJDIR = obj
# List C source files here. (C dependencies are automatically generated.)
-SRC = $(TARGET).c
+SRC = $(TARGET).c usbdrv/usbdrv.c usbdrv/oddebug.c
# List C++ source files here. (C dependencies are automatically generated.)
@@ -75,13 +75,13 @@ CPPSRC =
# Even though the DOS/Win* filesystem matches both .s and .S the same,
# it will preserve the spelling of the filenames, and gcc itself does
# care about how the name is spelled on its command-line.
-ASRC =
+ASRC = usbdrv/usbdrvasm.S
# Optimization level, can be [0, 1, 2, 3, s].
# 0 = turn off optimization. s = optimize for size.
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
-OPT = 2
+OPT = s
# Debugging format.
@@ -180,7 +180,7 @@ CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
# for use in COFF files, additional information about filenames
# and function names needs to be present in the assembler source
# files -- see avr-libc docs [FIXME: not yet described there]
-ASFLAGS = -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs
+ASFLAGS = -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs $(CDEFS)
#---------------- Library Options ----------------