wok view syslinux/stuff/iso2exe/Makefile @ rev 23886
glibc: fix for binutils 2.29
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 16 09:15:37 2020 +0000 (2020-07-16) |
parents | 46921aca812b |
children | 42a48dc164f3 |
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 win32.exe
17 cp iso2exe.sh $@
18 chmod +x $@
19 ./$@ --build boot.com bootiso.bin win32.exe init
21 isohybrid.res: isohybrid.rc isohybrid.ico
22 i586-pc-mingw32-windres $< -O coff -o $@
24 iso2exe.h: iso2exe
25 chmod +x iso2exe.sh
26 ./iso2exe.sh --array ../mbr/isohdpfx.bin > $@
28 iso2exe.com: iso2exe.c iso2exe.h
29 $(BCC) $(BCCFLAGS) -o $@ iso2exe.c && upx --ultra-brute --8086 $@
31 iso2exe.exe: iso2exe.c iso2exe.h isohybrid.res
32 i586-pc-mingw32-gcc -Os -s -o $@ iso2exe.c isohybrid.res -lws2_32
34 isohybrid.exe: iso2exe.sh mvcom.bin iso2exe.com iso2exe.exe
35 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@
36 chmod +x $@
38 tazboot.exe: boot.com
39 com2exe $< > $@
40 chmod +x $@
42 win32.res: win32.rc win32.ico
43 i586-pc-mingw32-windres $< -O coff -o $@
45 win32.exe: win32.c win32.res
46 i586-pc-mingw32-gcc -Os -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@
48 %.o: %.c
49 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $<
51 %.bin: %.S
52 $(GCC) -D__ASSEMBLY__ -DMULTI_INITRD -Wa,-acghlnm=$*.lst -c -o $*.o $<
53 objcopy -O binary $*.o $@
54 chmod +x $@
56 clean:
57 rm -f *.bin *.o *~