wok-current view syslinux/stuff/iso2exe/Makefile @ rev 18493

Add atril
author Yuri Pourre <yuripourre@gmail.com>
date Sun Oct 11 00:10:26 2015 -0300 (2015-10-11)
parents 490951fbd6fd
children e8de1b7505ef
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
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 win32.exe
17 cp iso2exe.sh $@
18 chmod +x $@
19 ./$@ --build boot.com bootiso.bin init win32.exe
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 $@
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 OBJS = boot.o iso9660.o libdos.o bootlinux.o
43 boot.com: $(OBJS)
44 $(BCC) $(BCCFLAGS) -o $@ $(OBJS) && upx --ultra-brute $@
46 boot.o: boot.c iso9660.h bootlinux.h libdos.h
48 bootlinux.o: bootlinux.c iso9660.h bootlinux.h
50 iso9660.o: iso9660.c iso9660.h
52 libdos.o: libdos.c libdos.h
54 win32.res: win32.rc win32.ico
55 i586-pc-mingw32-windres $< -O coff -o $@
57 win32.exe: win32.c win32.res
58 i586-pc-mingw32-gcc -Os -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@
60 %.o: %.c
61 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $<
63 %.bin: %.S
64 $(GCC) -D__ASSEMBLY__ -DMULTI_INITRD -Wa,-acghlnm=$*.lst -c -o $*.o $<
65 objcopy -O binary $*.o $@
66 chmod +x $@
68 clean:
69 rm -f *.bin *.o *~