3 # i386 Architecture Makefile
8 CPPFLAGS := -DMAX_CPUS=$(MAX_CPUS) -D USE_MP=0
9 CFLAGS := $(KERNEL_CFLAGS) -mno-sse -mno-mmx
10 ASFLAGS := -f elf64 -D MAX_CPUS=$(MAX_CPUS) -D USE_MP=0
11 LDFLAGS := -nostdlib -nodefaultlibs
18 ASFLAGS += -D AMD64=0 -D X86_64=1
19 CPPFLAGS += -DAMD64=0 -DX86_64=1
24 A_OBJ := start32.ao start64.ao desctab.ao
25 A_OBJ += main.o lib.o proc.o mm_virt.o mm_phys.o
26 A_OBJ += kernelpanic.o errors.o
30 POSTBUILD = objcopy $(BIN) -F elf32-i386 $(BIN)