diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-10 14:12:58 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-10 14:12:58 -0700 |
commit | 83d1b33a86685ede62933f761b8e0b61c48b269f (patch) | |
tree | 3b8da1457324bfe319afc7a6cac762c21ea5aeb3 /sample | |
parent | 985c965eca140470d87912cebd923cd27a6d892c (diff) | |
download | syslinux-83d1b33a86685ede62933f761b8e0b61c48b269f.tar.gz |
Makefiles: create NASMOPT variable
Create NASMOPT variable, defaulting to -O9999. Mostly there to test
beta versions of NASM.
Diffstat (limited to 'sample')
-rw-r--r-- | sample/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sample/Makefile b/sample/Makefile index 22573e63..9ad85409 100644 --- a/sample/Makefile +++ b/sample/Makefile @@ -1,6 +1,6 @@ ## ----------------------------------------------------------------------- ## -## Copyright 2001-2004 H. Peter Anvin - All Rights Reserved +## Copyright 2001-2007 H. Peter Anvin - All Rights Reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -25,6 +25,7 @@ CC = gcc LD = ld -m elf_i386 AR = ar NASM = nasm +NASMOPT = -O9999 RANLIB = ranlib CFLAGS = $(M32) -W -Wall -march=i386 -Os -fomit-frame-pointer -I../com32/include SFLAGS = $(M32) -march=i386 @@ -56,7 +57,7 @@ all: syslogo.lss comecho.com hello.c32 hello2.c32 filetest.c32 c32echo.c32 \ $(OBJCOPY) -O binary $< $@ %.com: %.asm - $(NASM) -O99 -f bin -o $@ -l $*.lst $< + $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $< $(LIB): $(LIBOBJS) rm -f $@ |