X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=test%2Fgeekos_test_vm%2Fbuild%2FMakefile;h=ff3dbb60cdc722ebc4fc59e0f7415c1033da0f30;hb=6fa605075d1944da0a88a389122ea24bbc583329;hp=c38b9f4bcc511323658efdf29183be1f56430258;hpb=a70930549d1b741704dd7af4e6bb0e89f6f8a519;p=palacios.git diff --git a/test/geekos_test_vm/build/Makefile b/test/geekos_test_vm/build/Makefile index c38b9f4..ff3dbb6 100644 --- a/test/geekos_test_vm/build/Makefile +++ b/test/geekos_test_vm/build/Makefile @@ -81,12 +81,15 @@ KERNEL_C_SRCS := idt.c int.c trap.c irq.c io.c \ gdt.c tss.c segment.c \ bget.c malloc.c \ synch.c kthread.c \ - vm_cons.c debug.c \ + debug.c \ + vm_cons.c \ pci.c \ serial.c reboot.c \ paging.c \ main.c + # + # Kernel object files built from C source files KERNEL_C_OBJS := $(KERNEL_C_SRCS:%.c=geekos/%.o) @@ -124,17 +127,17 @@ COMMON_C_OBJS := $(COMMON_C_SRCS:%.c=common/%.o) # Uncomment if cross compiling #TARGET_CC_PREFIX := i386-elf- -TARGET_CC_PREFIX := $(PROJECT_ROOT)/../../devtools/i386/bin/i386-elf- +#TARGET_CC_PREFIX := $(PROJECT_ROOT)/../../devtools/i386/bin/i386-elf- # Target C compiler. gcc 2.95.2 or later should work. -TARGET_CC := $(TARGET_CC_PREFIX)gcc +TARGET_CC := $(TARGET_CC_PREFIX)gcc -m32 # Host C compiler. This is used to compile programs to execute on # the host platform, not the target (x86) platform. On x86/ELF # systems, such as Linux and FreeBSD, it can generally be the same # as the target C compiler. -HOST_CC := gcc +HOST_CC := gcc # Target linker. GNU ld is probably to only one that will work. TARGET_LD := $(TARGET_CC_PREFIX)ld -melf_i386 @@ -152,8 +155,8 @@ TARGET_NM := $(TARGET_CC_PREFIX)nm TARGET_OBJCOPY := $(TARGET_CC_PREFIX)objcopy # Nasm (http://nasm.sourceforge.net) -NASM := $(PROJECT_ROOT)/../../devtools/bin/nasm -#NASM := /opt/vmm-tools/bin/nasm +#NASM := $(PROJECT_ROOT)/../../devtools/bin/nasm +NASM := nasm -f elf AS = as --32