Subversion Repositories MK3Mag

Rev

Rev 36 | Rev 41 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36 Rev 38
Line 6... Line 6...
6
BOARD = 10
6
BOARD = 10
7
#BOARD = 11
7
#BOARD = 11
8
VERSION_MAJOR    =   0
8
VERSION_MAJOR    =   0
9
VERSION_MINOR    =  19
9
VERSION_MINOR    =  19
Line 10... Line 10...
10
 
10
 
11
VERSION_COMPATIBLE = 8  # PC-Kompatibilität
11
VERSION_PCCOMPATIBLE = 8  # PC-Kompatibilität
Line -... Line 12...
-
 
12
#-------------------------------------------------------------------
-
 
13
 
-
 
14
# get SVN revision
12
#-------------------------------------------------------------------
15
REV := $(shell sh -c "cat .svn/entries | sed -n '4p'")
13
 
16
 
Line 14... Line 17...
14
# Output format. (can be srec, ihex, binary)
17
# Output format. (can be srec, ihex, binary)
15
FORMAT = ihex
18
FORMAT = ihex
Line 16... Line 19...
16
 
19
 
17
# Target file name (without extension).
20
# Target file name (without extension).
18
TARGET = MK3Mag_MEGA168_V$(VERSION_MAJOR)_$(VERSION_MINOR)
21
TARGET = MK3Mag_MEGA168_V$(VERSION_MAJOR)_$(VERSION_MINOR)_SVN$(REV)
Line 64... Line 67...
64
#CFLAGS += -std=c89
67
#CFLAGS += -std=c89
65
#CFLAGS += -std=gnu89
68
#CFLAGS += -std=gnu89
66
#CFLAGS += -std=c99
69
#CFLAGS += -std=c99
67
CFLAGS += -std=gnu99
70
CFLAGS += -std=gnu99
68
CFLAGS += $(CDEFS)
71
CFLAGS += $(CDEFS)
69
CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_COMPATIBLE=$(VERSION_COMPATIBLE) -DBOARD=$(BOARD)
72
CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_PCCOMPATIBLE=$(VERSION_PCCOMPATIBLE) -DBOARD=$(BOARD)
Line 70... Line 73...
70
 
73
 
71
ifeq ($(AVR_CTRL_PLATINE), 1)
74
ifeq ($(AVR_CTRL_PLATINE), 1)
72
CFLAGS += -DAVR_CTRL_PLATINE=$(AVR_CTRL_PLATINE)         
75
CFLAGS += -DAVR_CTRL_PLATINE=$(AVR_CTRL_PLATINE)