wok-next view syslinux/stuff/iso2exe/Makefile @ rev 14317

elementary-dev: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 07 13:15:40 2013 +0200 (2013-04-07)
parents 19258b949c1b
children 3f0b08dbc9d3
line source
1 GCC=gcc -m32
2 BCC=bcc -ansi -O -0 -C-t
3 BCCFLAGS=-D__MSDOS__ -Md
5 all: isohybrid.exe iso2exe
7 iso2exe: iso2exe.sh boot.com bootiso.bin init win32.exe
8 cp iso2exe.sh $@
9 chmod +x $@
10 ./$@ --build boot.com bootiso.bin init win32.exe
12 isohybrid.res: isohybrid.rc isohybrid.ico
13 i586-pc-mingw32-windres $< -O coff -o $@
15 iso2exe.h: iso2exe ../mbr/isohdpfx.bin
16 chmod +x iso2exe.sh
17 ./iso2exe.sh --array ../mbr/isohdpfx.bin > $@
19 iso2exe.com: iso2exe.c iso2exe.h
20 $(BCC) $(BCCFLAGS) -o $@ iso2exe.c && upx --ultra-brute $@
22 iso2exe.exe: iso2exe.c iso2exe.h isohybrid.res
23 i586-pc-mingw32-gcc -Os -s -o $@ iso2exe.c isohybrid.res -lws2_32
25 isohybrid.exe: iso2exe.sh mvcom.bin iso2exe.com iso2exe.exe
26 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@
27 chmod +x $@
29 OBJS = boot.o iso9660.o libdos.o bootlinux.o
30 boot.com: $(OBJS)
31 $(BCC) $(BCCFLAGS) -o $@ $(OBJS) && upx --ultra-brute $@
33 boot.o: boot.c iso9660.h bootlinux.h libdos.h
35 bootlinux.o: bootlinux.c iso9660.h bootlinux.h
37 iso9660.o: iso9660.c iso9660.h
39 libdos.o: libdos.c libdos.h
41 win32.res: win32.rc win32.ico
42 i586-pc-mingw32-windres $< -O coff -o $@
44 win32.exe: win32.c win32.res
45 i586-pc-mingw32-gcc -Os -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@
47 %.o: %.c
48 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $<
50 %.bin: %.S
51 $(GCC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $*.o $<
52 objcopy -O binary $*.o $@
53 chmod +x $@
55 clean:
56 rm -f *.bin *.o *~