-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.mk
33 lines (26 loc) · 801 Bytes
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Configuration
#BOARD = k30
BOARD = 68k
# End of Configuration
ifeq ($(BOARD), k30)
#CFLAGS_ARCH = -m68030 -msoft-float
#ASFLAGS_ARCH = -m68030 --defsym __mc68010__=1
CFLAGS_ARCH = -m68010 -DBOARD_K30
ASFLAGS_ARCH = -m68010 --defsym __mc68010__=1
else
CFLAGS_ARCH = -m68010
ASFLAGS_ARCH = -m68010 --defsym __mc68010__=1
endif
BUILD = build
AS = m68k-linux-gnu-as
AR = m68k-linux-gnu-ar
CC = m68k-linux-gnu-gcc
OBJDUMP = m68k-linux-gnu-objdump
OBJCOPY = m68k-linux-gnu-objcopy
RANLIB = m68k-linux-gnu-ranlib
INCLUDE = $(GLOWORM)/include
ASFLAGS = $(ASFLAGS_ARCH)
CFLAGS = -I$(INCLUDE) $(CFLAGS_ARCH) -DBOARD_$(BOARD) -nostartfiles -nostdlib -fno-zero-initialized-in-bss -g -Os
LDFLAGS = -Wl,--build-id=none
# reduce the elf output size by reducing the alignment
CFLAGS += -z max-page-size=0x10