summaryrefslogtreecommitdiff
path: root/sample/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-10 14:12:58 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-10 14:12:58 -0700
commit83d1b33a86685ede62933f761b8e0b61c48b269f (patch)
tree3b8da1457324bfe319afc7a6cac762c21ea5aeb3 /sample/Makefile
parent985c965eca140470d87912cebd923cd27a6d892c (diff)
downloadsyslinux-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/Makefile')
-rw-r--r--sample/Makefile5
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 $@