wok view syslinux/stuff/iso2exe/Makefile @ rev 13972

syslinux/iso2exe: add win32 stub
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 05 23:32:17 2013 +0100 (2013-02-05)
parents 7d300004a3b8
children a26ba54f3ea7
line source
1 GCC=gcc -m32
2 BCC=bcc -ansi -O -0 -C-t
3 BCCFLAGS=-D__MSDOS__ -Md
5 iso2exe: iso2exe.sh boot.com bootiso.bin init win32.exe
6 cp iso2exe.sh $@
7 chmod +x $@
8 ./$@ --build boot.com bootiso.bin init win32.exe
10 OBJS = boot.o iso9660.o libdos.o bootlinux.o
11 boot.com: $(OBJS)
12 $(BCC) $(BCCFLAGS) -o $@ $(OBJS) && upx --ultra-brute $@
14 boot.o: boot.c iso9660.h bootlinux.h libdos.h
16 bootlinux.o: bootlinux.c iso9660.h bootlinux.h
18 iso9660.o: iso9660.c iso9660.h
20 libdos.o: libdos.c libdos.h
22 win32.exe: win32.c
23 i586-pc-mingw32-gcc -s -o $@ $< -lws2_32 && upx --ultra-brute $@
25 %.o: %.c
26 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $<
28 %.bin: %.S
29 $(GCC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $*.o $<
30 objcopy -O binary $*.o $@
31 chmod +x $@
33 clean:
34 rm -f *.bin *.o *~