diff options
| author | hpa <hpa> | 2003-11-23 01:38:19 +0000 |
|---|---|---|
| committer | hpa <hpa> | 2003-11-23 01:38:19 +0000 |
| commit | 9b297ddabcf8f3f7d92f825705daa3bf671614e4 (patch) | |
| tree | 474bd9bd891c60a1957638caf76f1e552ea3be5d /sample/Makefile | |
| parent | 0a87ce1c8221d32083715d13d53368c1b41f320e (diff) | |
| download | syslinux-2.07.tar.gz | |
Fix the file read API for COMBOOT/COM32syslinux-2.07
Diffstat (limited to 'sample/Makefile')
| -rw-r--r-- | sample/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sample/Makefile b/sample/Makefile index 35ee3788..0d23c98f 100644 --- a/sample/Makefile +++ b/sample/Makefile @@ -17,11 +17,16 @@ CC = gcc LD = ld +AR = ar +RANLIB = ranlib CFLAGS = -march=i386 -O2 -fomit-frame-pointer -I../com32/include SFLAGS = -march=i386 LDFLAGS = -s OBJCOPY = objcopy PPMTOLSS16 = ../ppmtolss16 +LIB = libcom32.a + +LIBOBJS = conio.o .SUFFIXES: .lss .c .o .elf .c32 @@ -33,12 +38,17 @@ all: syslogo.lss hello.c32 hello2.c32 filetest.c32 %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< -%.elf: c32entry.o %.o +%.elf: c32entry.o %.o $(LIB) $(LD) -Ttext 0x101000 -e _start -o $@ $^ %.c32: %.elf $(OBJCOPY) -O binary $< $@ +$(LIB): $(LIBOBJS) + rm -f $@ + $(AR) cq $@ $^ + $(RANLIB) $@ + syslogo.lss: syslogo.png $(PPMTOLSS16) pngtopnm syslogo.png | \ $(PPMTOLSS16) \#000000=0 \#d0d0d0=7 \#f6f6f6=15 \ |
