wok-6.x view syslinux/stuff/iso2exe/Makefile @ rev 14257
syslinux/iso2exe: check kernel version, add floppy bootstrap stub
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 28 11:51:42 2013 +0100 (2013-03-28) |
parents | a26ba54f3ea7 |
children | 8567588e9396 |
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 iso2exe.h: iso2exe ../mbr/isohdpfx.bin
13 chmod +x iso2exe.sh
14 ./iso2exe.sh --array ../mbr/isohdpfx.bin > $@
16 iso2exe.com: iso2exe.c iso2exe.h
17 $(BCC) $(BCCFLAGS) -o $@ iso2exe.c
19 iso2exe.exe: iso2exe.c iso2exe.h
20 i586-pc-mingw32-gcc -s -o $@ iso2exe.c -lws2_32
22 isohybrid.exe: iso2exe.sh mvcom.bin iso2exe.com iso2exe.exe
23 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@
24 chmod +x $@
26 OBJS = boot.o iso9660.o libdos.o bootlinux.o
27 boot.com: $(OBJS)
28 $(BCC) $(BCCFLAGS) -o $@ $(OBJS) && upx --ultra-brute $@
30 boot.o: boot.c iso9660.h bootlinux.h libdos.h
32 bootlinux.o: bootlinux.c iso9660.h bootlinux.h
34 iso9660.o: iso9660.c iso9660.h
36 libdos.o: libdos.c libdos.h
38 win32.res: win32.rc win32.ico
39 i586-pc-mingw32-windres $< -O coff -o $@
41 win32.exe: win32.c winutils.c win32.res
42 i586-pc-mingw32-gcc -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@
44 %.o: %.c
45 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $<
47 %.bin: %.S
48 $(GCC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $*.o $<
49 objcopy -O binary $*.o $@
50 chmod +x $@
52 clean:
53 rm -f *.bin *.o *~