From 31606866f18ce1549f55afcb46a94fe85d23b204 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sun, 5 Jun 2016 04:46:06 +0000 Subject: [PATCH] Add some preprocessor checks on the output format to the asm. git-svn-id: https://svn.eduke32.com/eduke32@5767 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/a.nasm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/polymer/eduke32/build/src/a.nasm b/polymer/eduke32/build/src/a.nasm index 53fe22b16..ee5d822e5 100644 --- a/polymer/eduke32/build/src/a.nasm +++ b/polymer/eduke32/build/src/a.nasm @@ -5,6 +5,30 @@ ; This file has been modified from Ken Silverman's original release ; by Jonathon Fowler (jf@jonof.id.au) +%ifidn __OUTPUT_FORMAT__, x64 +%define ASM_x86_64 +%elifidn __OUTPUT_FORMAT__, win64 +%define ASM_x86_64 +%elifidn __OUTPUT_FORMAT__, elf64 +%define ASM_x86_64 +%elifidn __OUTPUT_FORMAT__, macho64 +%define ASM_x86_64 +%elifidn __OUTPUT_FORMAT__, win32 +%define ASM_x86 +%elifidn __OUTPUT_FORMAT__, elf32 +%define ASM_x86 +%elifidn __OUTPUT_FORMAT__, macho32 +%define ASM_x86 +%elifidn __OUTPUT_FORMAT__, win +%define ASM_x86 +%elifidn __OUTPUT_FORMAT__, elf +%define ASM_x86 +%elifidn __OUTPUT_FORMAT__, macho +%define ASM_x86 +%endif + +%ifdef ASM_x86 + ;CPU 586 SECTION .text @@ -2894,3 +2918,5 @@ pentiumpro: ret dep_end: + +%endif