wok view syslinux/stuff/iso2exe/Makefile @ rev 13713

syslinux/iso2exe: add loram support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Dec 18 16:09:07 2012 +0100 (2012-12-18)
parents
children b5ea41033c21
line source
1 GCC=gcc -m32
2 BCC=bcc -ansi -O -0 -C-t
3 BCCFLAGS=-D__MSDOS__ -Md
5 iso2exe: iso2exe.sh bootiso.bin lzcom.bin boot.com init
6 cp iso2exe.sh $@
7 chmod +x $@
8 lzma e boot.com boot.com.lzma -eos
9 ./$@ --build bootiso.bin lzcom.bin boot.com.lzma init
11 OBJS = boot.o iso9660.o libdos.o bootlinux.o
12 boot.com: $(OBJS)
13 $(BCC) $(BCCFLAGS) -o $@ $(OBJS)
15 boot.o: boot.c iso9660.h bootlinux.h libdos.h
17 bootlinux.o: bootlinux.c iso9660.h bootlinux.h
19 iso9660.o: iso9660.c iso9660.h
21 libdos.o: libdos.c libdos.h
23 lzcom.bin: lzcom.S unlzma.S
25 %.o: %.c
26 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $<
28 %.bin: %.S
29 $(GCC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $*.o $<
30 objcopy -O binary $*.o $@
31 chmod +x $@
33 clean:
34 rm -f *.bin *.o *~