Mercurial > hg > Members > anatofuz > CbC_xv6
comparison src/makefile-armclang @ 14:02a1ce33746e
armclang
author | mir3636 |
---|---|
date | Fri, 16 Feb 2018 20:28:53 +0900 |
parents | f28daf1e47c1 |
children | 7eb81a3c4b29 |
comparison
equal
deleted
inserted
replaced
13:f28daf1e47c1 | 14:02a1ce33746e |
---|---|
1 # specify path to QEMU, installed with MacPorts | 1 # specify path to QEMU, installed with MacPorts |
2 QEMU = qemu-system-arm | 2 QEMU = qemu-system-arm |
3 | 3 |
4 include makefile.inc | 4 include makefile.inc |
5 CC = /usr/local/cbclang/bin/clang | |
6 AS = arm-linux-gnu-as | |
7 LD = arm-linux-gnu-ld | |
8 OBJCOPY = arm-linux-gnu-objcopy | |
9 OBJDUMP = arm-linux-gnu-objdump | |
10 | |
11 # CFLAGS = -march=armv6 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 | |
12 CFLAGS = -target armv6-arm-none-eabi -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -I. -I ../cbclang/arm -g -O0 | |
13 LDFLAGS = -L. | |
14 # ASFLAGS = -march=armv6 | |
15 ASFLAGS = -target armv6-arm-none-eabi | |
16 | |
17 LIBGCC = $(shell $(CC) -print-libgcc-file-name) | |
5 | 18 |
6 # link the libgcc.a for __aeabi_idiv. ARM has no native support for div | 19 # link the libgcc.a for __aeabi_idiv. ARM has no native support for div |
7 LIBS = $(LIBGCC) | 20 LIBS = $(LIBGCC) |
8 | 21 |
9 OBJS = \ | 22 OBJS = \ |