Merge branch 'master' of [email protected]:acess2
[tpg/acess2.git] / Kernel / arch / x86 / 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 CPPFLAGS        =
13 CFLAGS          =
14 ASFLAGS         = -f elf
15
16 ifeq ($(ARCH),i386)
17         ASFLAGS += -D USE_MP=0 -D USE_PAE=0
18         CPPFLAGS += -DUSE_MP=0 -DUSE_PAE=0
19 else
20         ifeq ($(ARCH),i486)
21                 ASFLAGS += -D USE_MP=1 -D USE_PAE=0
22                 CPPFLAGS += -DUSE_MP=1 -DUSE_PAE=0
23         else
24                 ifeq ($(ARCH),i586)
25                         ASFLAGS += -D USE_MP=1 -D USE_PAE=1
26                         CPPFLAGS += -DUSE_MP=1 -DUSE_PAE=1
27                 endif
28         endif
29 endif
30         
31
32 A_OBJ  = start.ao main.o lib.o desctab.ao errors.o irq.o
33 A_OBJ += mm_phys.o mm_virt.o
34 A_OBJ += proc.o proc.ao time.o vm8086.o
35 A_OBJ += kpanic.o

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