wok view syslinux/stuff/iso2exe/Makefile @ rev 16993
mate-polkit-dev: Remove tarball as well
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Sat Aug 09 13:09:11 2014 -0300 (2014-08-09) |
parents | 3f0b08dbc9d3 |
children | 3e7ad70145ce |
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
7 meminfo.exe: meminfo.S
8 cc -o meminfo.o -Wa,-a=meminfo.lst -c meminfo.S
9 objcopy -O binary meminfo.o meminfo.exe
11 iso2exe: iso2exe.sh boot.com bootiso.bin init win32.exe
12 cp iso2exe.sh $@
13 chmod +x $@
14 ./$@ --build boot.com bootiso.bin init win32.exe
16 isohybrid.res: isohybrid.rc isohybrid.ico
17 i586-pc-mingw32-windres $< -O coff -o $@
19 iso2exe.h: iso2exe ../mbr/isohdpfx.bin
20 chmod +x iso2exe.sh
21 ./iso2exe.sh --array ../mbr/isohdpfx.bin > $@
23 iso2exe.com: iso2exe.c iso2exe.h
24 $(BCC) $(BCCFLAGS) -o $@ iso2exe.c && upx --ultra-brute $@
26 iso2exe.exe: iso2exe.c iso2exe.h isohybrid.res
27 i586-pc-mingw32-gcc -Os -s -o $@ iso2exe.c isohybrid.res -lws2_32
29 isohybrid.exe: iso2exe.sh mvcom.bin iso2exe.com iso2exe.exe
30 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@
31 chmod +x $@
33 tazboot.exe: boot.com
34 com2exe $< > $@
36 OBJS = boot.o iso9660.o libdos.o bootlinux.o
37 boot.com: $(OBJS)
38 $(BCC) $(BCCFLAGS) -o $@ $(OBJS) && upx --ultra-brute $@
40 boot.o: boot.c iso9660.h bootlinux.h libdos.h
42 bootlinux.o: bootlinux.c iso9660.h bootlinux.h
44 iso9660.o: iso9660.c iso9660.h
46 libdos.o: libdos.c libdos.h
48 win32.res: win32.rc win32.ico
49 i586-pc-mingw32-windres $< -O coff -o $@
51 win32.exe: win32.c win32.res
52 i586-pc-mingw32-gcc -Os -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@
54 %.o: %.c
55 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $<
57 %.bin: %.S
58 $(GCC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $*.o $<
59 objcopy -O binary $*.o $@
60 chmod +x $@
62 clean:
63 rm -f *.bin *.o *~