3 # i386 Architecture Makefile
10 CPPFLAGS := -DMAX_CPUS=$(MAX_CPUS) -D USE_MP=0
11 CFLAGS := $(KERNEL_CFLAGS) -mno-sse -mno-mmx
12 ASFLAGS := -f elf64 -D MAX_CPUS=$(MAX_CPUS) -D USE_MP=0
13 LDFLAGS := -nostdlib -nodefaultlibs
20 ASFLAGS += -D AMD64=0 -D X86_64=1
21 CPPFLAGS += -DAMD64=0 -DX86_64=1
26 A_OBJ := start32.ao start64.ao desctab.ao
27 A_OBJ += main.o lib.o proc.o mm_virt.o mm_phys.o
28 A_OBJ += kernelpanic.o errors.o time.o pci.o
32 POSTBUILD = objcopy $(BIN) -F elf32-i386 $(BIN)