| 1 |
# |
| 2 |
# Purgatory x86_64 |
| 3 |
# |
| 4 |
|
| 5 |
x86_64_PURGATORY_SRCS_native = purgatory/arch/x86_64/entry64-32.S |
| 6 |
x86_64_PURGATORY_SRCS_native += purgatory/arch/x86_64/entry64.S |
| 7 |
x86_64_PURGATORY_SRCS_native += purgatory/arch/x86_64/setup-x86_64.S |
| 8 |
x86_64_PURGATORY_SRCS_native += purgatory/arch/x86_64/stack.S |
| 9 |
x86_64_PURGATORY_SRCS_native += purgatory/arch/x86_64/purgatory-x86_64.c |
| 10 |
|
| 11 |
x86_64_PURGATORY_SRCS += $(x86_64_PURGATORY_SRCS_native) |
| 12 |
|
| 13 |
dist += purgatory/arch/x86_64/Makefile $(x86_64_PURGATORY_SRCS_native) \ |
| 14 |
purgatory/arch/x86_64/include/arch/io.h \ |
| 15 |
purgatory/arch/x86_64/include/arch/debug.h \ |
| 16 |
purgatory/arch/x86_64/purgatory-x86_64.h |
| 17 |
|
| 18 |
# Don't add sources in i386/ to dist, as i386/Makefile adds them |
| 19 |
x86_64_PURGATORY_SRCS += purgatory/arch/i386/entry32-16.S |
| 20 |
x86_64_PURGATORY_SRCS += purgatory/arch/i386/entry32-16-debug.S |
| 21 |
x86_64_PURGATORY_SRCS += purgatory/arch/i386/crashdump_backup.c |
| 22 |
x86_64_PURGATORY_SRCS += purgatory/arch/i386/console-x86.c |
| 23 |
x86_64_PURGATORY_SRCS += purgatory/arch/i386/vga.c |
| 24 |
x86_64_PURGATORY_SRCS += purgatory/arch/i386/pic.c |
| 25 |
|
| 26 |
ifneq ($(SUBARCH),x32) |
| 27 |
x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large -march=x86-64 -mno-mmx -mno-sse -mno-sse2 -mno-avx |
| 28 |
endif |