All user-space apps ware moved to 8MB virtual address address (link.ld changes);...
[ZeXOS.git] / kernel / arch / arm / Makefile
blobfc495b3dc44d9f6766dd519a890447d8b288cdf6
1 .SUFFIXES: .asm
3 ARCH =arm
5 CFLAGS =-g -Os -fno-builtin -ffreestanding -nostdinc -pipe -mcpu=arm926ej-s -mabi=apcs-gnu -nostdlib -nostartfiles -nodefaultlibs -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float
6 # defines
7 MAKEFILE=Makefile
8 MAKEDEP=$(MAKEFILE)
9 INCDIR =../../include/
10 CCASM =arm-linux-gcc -D__ASSEMBLY__ -g -Os -pipe -mcpu=arm926ej-s -mabi=apcs-gnu -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -fno-builtin -ffreestanding -nostdinc
11 CC =arm-linux-gcc $(CFLAGS) -I$(INCDIR) -I../../build/main
12 OBJS =int.o fault.o handler.o task.o arch.o timer.o rtc.o smp.o elf.o ctx.o io.o
13 # Select ARM Board
14 BOARDS =bd/intcp.o bd/verpb.o
16 ifneq ($(V),1)
17 Q := @
18 endif
20 # targets
21 all: $(OBJS) $(BOARDS) arch.a
23 clean:
24 $(Q)rm -f *.o ../arch.a boot/start.o $(OBJS) $(BOARDS)
25 @printf " CLEAN\n";
27 # implicit rules
28 .S.o:
29 @printf " ASM $(subst $(shell pwd)/,,$(@))\n";
30 $(Q)$(CCASM) -c -o$@ $<
32 .c.o:
33 @printf " CC $(subst $(shell pwd)/,,$(@))\n";
34 $(Q)$(CC) -c -o$@ $<
36 # explicit rules
37 arch.a: $(OBJS) $(BOARDS) $(MAKEDEP)
38 @printf " AR $(subst $(shell pwd)/,,$(@))\n";
39 $(Q)arm-linux-ar rcs ../arch.a $(OBJS) $(BOARDS)