summaryrefslogtreecommitdiff
path: root/sample/Makefile
diff options
context:
space:
mode:
authorhpa <hpa>2003-11-24 02:44:42 +0000
committerhpa <hpa>2003-11-24 02:44:42 +0000
commit43cf4dda600db1ccd05d9788c7b1da0cde7c0413 (patch)
tree0c69eaa8d2e0f49bc4ea8770762a97d4552771ad /sample/Makefile
parent4a10396ab1f114fc37fa8f276e047fe3c283671c (diff)
downloadsyslinux-43cf4dda600db1ccd05d9788c7b1da0cde7c0413.tar.gz
Fix COMBOOT/COM32 command-line generation.syslinux-2.08-pre1
Add test programs.
Diffstat (limited to 'sample/Makefile')
-rw-r--r--sample/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/sample/Makefile b/sample/Makefile
index 0d23c98f..373828c3 100644
--- a/sample/Makefile
+++ b/sample/Makefile
@@ -18,6 +18,7 @@
CC = gcc
LD = ld
AR = ar
+NASM = nasm
RANLIB = ranlib
CFLAGS = -march=i386 -O2 -fomit-frame-pointer -I../com32/include
SFLAGS = -march=i386
@@ -30,7 +31,7 @@ LIBOBJS = conio.o
.SUFFIXES: .lss .c .o .elf .c32
-all: syslogo.lss hello.c32 hello2.c32 filetest.c32
+all: syslogo.lss comecho.com hello.c32 hello2.c32 filetest.c32 c32echo.c32
%.o: %.S
$(CC) $(SFLAGS) -c -o $@ $<
@@ -44,6 +45,9 @@ all: syslogo.lss hello.c32 hello2.c32 filetest.c32
%.c32: %.elf
$(OBJCOPY) -O binary $< $@
+%.com: %.asm
+ $(NASM) -f bin -o $@ -l $*.lst $<
+
$(LIB): $(LIBOBJS)
rm -f $@
$(AR) cq $@ $^