diff options
author | hpa <hpa> | 2002-11-18 22:22:37 +0000 |
---|---|---|
committer | hpa <hpa> | 2002-11-18 22:22:37 +0000 |
commit | b918509b86a1d65427fe9270886c41b5d0491344 (patch) | |
tree | e76cb483ca01a5f2a719768983a0ca0195a3df62 /sample/Makefile | |
parent | f3b2b7af08efd9872c973f47410b39de63490230 (diff) | |
download | syslinux-b918509b86a1d65427fe9270886c41b5d0491344.tar.gz |
Fix the COM32 sample programsyslinux-2.01-pre2
Diffstat (limited to 'sample/Makefile')
-rw-r--r-- | sample/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sample/Makefile b/sample/Makefile index 58d6d052..54fdb097 100644 --- a/sample/Makefile +++ b/sample/Makefile @@ -18,6 +18,7 @@ CC = gcc LD = ld CFLAGS = -march=i386 -O2 -fomit-frame-pointer -I../com32/include +SFLAGS = -march=i386 LDFLAGS = -s OBJCOPY = objcopy PPMTOLSS16 = ../ppmtolss16 @@ -26,10 +27,16 @@ PPMTOLSS16 = ../ppmtolss16 all: syslogo.lss hello.c32 -.c.o: +%.o: %.S + $(CC) $(SFLAGS) -c -o $@ $< + +%.o: %.c $(CC) $(CFLAGS) -c -o $@ $< -.elf.c32: +%.elf: c32entry.o %.o + $(LD) -Ttext 0x101000 -e _start -o $@ $^ + +%.c32: %.elf $(OBJCOPY) -O binary $< $@ syslogo.lss: syslogo.png $(PPMTOLSS16) @@ -37,9 +44,6 @@ syslogo.lss: syslogo.png $(PPMTOLSS16) $(PPMTOLSS16) \#000000=0 \#d0d0d0=7 \#f6f6f6=15 \ > syslogo.lss -hello.elf: hello.o - $(LD) -Ttext 0x101000 -e _start -o $@ $< - clean: rm -f *.lss *.o *.elf *.c32 |