wok-current view syslinux/stuff/iso2exe/Makefile @ rev 19516
syslinux/iso2exe: vm86 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 22 22:17:33 2016 +0100 (2016-11-22) |
parents | e8de1b7505ef |
children | cc38abe27c7a |
line source
1 GCC=gcc -m32
2 BCC=bcc -ansi -O -0 -C-t
3 BCCFLAGS=-D__MSDOS__ -Md
5 all: isohybrid.exe iso2exe meminfo.exe tazboot.exe taziso.built
7 taziso.built: bootloader.bin ifmem.bin taziso
8 ./taziso --build
9 touch taziso.built
11 meminfo.exe: meminfo.S
12 cc -o meminfo.o -Wa,-a=meminfo.lst -c meminfo.S
13 objcopy -O binary meminfo.o meminfo.exe
14 chmod +x $@
16 iso2exe: iso2exe.sh boot.com bootiso.bin init.built win32.exe
17 cp iso2exe.sh $@
18 chmod +x $@
19 ./$@ --build boot.com bootiso.bin init win32.exe
21 init.built: bootloader.bin ifmem.bin init
22 ./init --build
23 touch init.built
25 isohybrid.res: isohybrid.rc isohybrid.ico
26 i586-pc-mingw32-windres $< -O coff -o $@
28 iso2exe.h: iso2exe
29 chmod +x iso2exe.sh
30 ./iso2exe.sh --array ../mbr/isohdpfx.bin > $@
32 iso2exe.com: iso2exe.c iso2exe.h
33 $(BCC) $(BCCFLAGS) -o $@ iso2exe.c && upx --ultra-brute $@
35 iso2exe.exe: iso2exe.c iso2exe.h isohybrid.res
36 i586-pc-mingw32-gcc -Os -s -o $@ iso2exe.c isohybrid.res -lws2_32
38 isohybrid.exe: iso2exe.sh mvcom.bin iso2exe.com iso2exe.exe
39 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@
40 chmod +x $@
42 tazboot.exe: boot.com
43 com2exe $< > $@
44 chmod +x $@
46 win32.res: win32.rc win32.ico
47 i586-pc-mingw32-windres $< -O coff -o $@
49 win32.exe: win32.c win32.res
50 i586-pc-mingw32-gcc -Os -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@
52 %.o: %.c
53 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $<
55 %.bin: %.S
56 $(GCC) -D__ASSEMBLY__ -DMULTI_INITRD -Wa,-acghlnm=$*.lst -c -o $*.o $<
57 objcopy -O binary $*.o $@
58 chmod +x $@
60 clean:
61 rm -f *.bin *.o *~