Working on separating architecture dependent and independent stuff,
[tpg/acess2.git] / Kernel / arch / x86_64 / Makefile
1 #
2 # Acess2 Kernel
3 # i386 Architecture Makefile
4 # arch/i386/Makefile
5
6 # Assuming build machine is 32-bit ELF
7 #CC = gcc
8 #AS = nasm
9 #LD = ld
10 #OBJDUMP = objdump
11
12 MAX_CPUS := 4
13
14 CPPFLAGS        := -DMAX_CPUS=$(MAX_CPUS)
15 CFLAGS          := $(KERNEL_CFLAGS)
16 ASFLAGS         := -f elf64 -D MAX_CPUS=$(MAX_CPUS)
17
18 ifeq ($(ARCH),amd64)
19         ASFLAGS += -D AMD64=1
20         CPPFLAGS += -DAMD64=1
21 else
22         ifeq ($(ARCH),ia64)
23                 ASFLAGS += -D AMD64=0 -D IA64=1
24                 CPPFLAGS += -DAMD64=0 -DIA64=1
25         endif
26 endif
27         
28
29 A_OBJ  = start32.ao start64.ao desctab.ao
30 A_OBJ += main.o lib.o proc.o

UCC git Repository :: git.ucc.asn.au