Rev 19 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 19 | Rev 29 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #-------------------------------------------------------------------- |
1 | #-------------------------------------------------------------------- |
2 | # MCU name |
2 | # MCU name |
3 | MCU = atmega168 |
3 | MCU = atmega168 |
- | 4 | F_CPU = 8000000 |
|
4 | #------------------------------------------------------------------- |
5 | #------------------------------------------------------------------- |
- | 6 | BOARD = 10 |
|
- | 7 | #BOARD = 11 |
|
5 | VERSION_MAJOR = 0 |
8 | VERSION_MAJOR = 0 |
6 | VERSION_MINOR = 14 |
9 | VERSION_MINOR = 16 |
Line 7... | Line 10... | ||
7 | 10 | ||
8 | VERSION_COMPATIBLE = 8 # PC-Kompatibilität |
11 | VERSION_COMPATIBLE = 8 # PC-Kompatibilität |
Line 9... | Line 12... | ||
9 | #------------------------------------------------------------------- |
12 | #------------------------------------------------------------------- |
Line 37... | Line 40... | ||
37 | # List any extra directories to look for include files here. |
40 | # List any extra directories to look for include files here. |
38 | # Each directory must be seperated by a space. |
41 | # Each directory must be seperated by a space. |
39 | EXTRAINCDIRS = |
42 | EXTRAINCDIRS = |
Line -... | Line 43... | ||
- | 43 | ||
- | 44 | ||
40 | 45 | CDEFS = -DF_CPU=$(F_CPU)UL |
|
41 | 46 | ||
42 | # Optional compiler flags. |
47 | # Optional compiler flags. |
43 | # -g: generate debugging information (for GDB, or for COFF conversion) |
48 | # -g: generate debugging information (for GDB, or for COFF conversion) |
44 | # -O*: optimization level |
49 | # -O*: optimization level |
Line 58... | Line 63... | ||
58 | # gnu99 = C99 + GNU extensions. See GCC manual for more information. |
63 | # gnu99 = C99 + GNU extensions. See GCC manual for more information. |
59 | #CFLAGS += -std=c89 |
64 | #CFLAGS += -std=c89 |
60 | #CFLAGS += -std=gnu89 |
65 | #CFLAGS += -std=gnu89 |
61 | #CFLAGS += -std=c99 |
66 | #CFLAGS += -std=c99 |
62 | CFLAGS += -std=gnu99 |
67 | CFLAGS += -std=gnu99 |
63 | - | ||
- | 68 | CFLAGS += $(CDEFS) |
|
64 | CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_COMPATIBLE=$(VERSION_COMPATIBLE) |
69 | CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_COMPATIBLE=$(VERSION_COMPATIBLE) -DBOARD=$(BOARD) |
Line 65... | Line 70... | ||
65 | 70 | ||
66 | ifeq ($(AVR_CTRL_PLATINE), 1) |
71 | ifeq ($(AVR_CTRL_PLATINE), 1) |
67 | CFLAGS += -DAVR_CTRL_PLATINE=$(AVR_CTRL_PLATINE) |
72 | CFLAGS += -DAVR_CTRL_PLATINE=$(AVR_CTRL_PLATINE) |