wok diff syslinux/stuff/iso2exe/Makefile @ rev 13691
syslinux: add iso2exe
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 13 14:33:27 2012 +0100 (2012-12-13) |
parents | |
children | b5ea41033c21 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/syslinux/stuff/iso2exe/Makefile Thu Dec 13 14:33:27 2012 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +GCC=gcc -m32 1.5 +BCC=bcc -ansi -O -0 -C-t 1.6 +BCCFLAGS=-D__MSDOS__ -Md 1.7 + 1.8 +iso2exe: iso2exe.sh bootiso.bin lzcom.bin boot.com init 1.9 + cp iso2exe.sh $@ 1.10 + chmod +x $@ 1.11 + lzma e boot.com boot.com.lzma -eos 1.12 + ./$@ --build bootiso.bin lzcom.bin boot.com.lzma init 1.13 + 1.14 +OBJS = boot.o iso9660.o libdos.o bootlinux.o 1.15 +boot.com: $(OBJS) 1.16 + $(BCC) $(BCCFLAGS) -o $@ $(OBJS) 1.17 + 1.18 +boot.o: boot.c iso9660.h bootlinux.h libdos.h 1.19 + 1.20 +bootlinux.o: bootlinux.c iso9660.h bootlinux.h 1.21 + 1.22 +iso9660.o: iso9660.c iso9660.h 1.23 + 1.24 +libdos.o: libdos.c libdos.h 1.25 + 1.26 +lzcom.bin: lzcom.S unlzma.S 1.27 + 1.28 +%.o: %.c 1.29 + $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $< 1.30 + 1.31 +%.bin: %.S 1.32 + $(GCC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $*.o $< 1.33 + objcopy -O binary $*.o $@ 1.34 + chmod +x $@ 1.35 + 1.36 +clean: 1.37 + rm -f *.bin *.o *~