wok-6.x annotate syslinux/stuff/iso2exe/Makefile @ rev 14258
syslinux/iso2exe: check kernel version, add floppy bootstrap stub (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 28 11:54:40 2013 +0100 (2013-03-28) |
parents | 65b3fd0022ed |
children | bf8be127c60b |
rev | line source |
---|---|
pascal@13691 | 1 GCC=gcc -m32 |
pascal@13691 | 2 BCC=bcc -ansi -O -0 -C-t |
pascal@13691 | 3 BCCFLAGS=-D__MSDOS__ -Md |
pascal@13691 | 4 |
pascal@14150 | 5 all: isohybrid.exe iso2exe |
pascal@14150 | 6 |
pascal@13972 | 7 iso2exe: iso2exe.sh boot.com bootiso.bin init win32.exe |
pascal@13691 | 8 cp iso2exe.sh $@ |
pascal@13691 | 9 chmod +x $@ |
pascal@13972 | 10 ./$@ --build boot.com bootiso.bin init win32.exe |
pascal@13691 | 11 |
pascal@14150 | 12 iso2exe.h: iso2exe ../mbr/isohdpfx.bin |
pascal@14150 | 13 chmod +x iso2exe.sh |
pascal@14150 | 14 ./iso2exe.sh --array ../mbr/isohdpfx.bin > $@ |
pascal@14150 | 15 |
pascal@14150 | 16 iso2exe.com: iso2exe.c iso2exe.h |
pascal@14150 | 17 $(BCC) $(BCCFLAGS) -o $@ iso2exe.c |
pascal@14150 | 18 |
pascal@14150 | 19 iso2exe.exe: iso2exe.c iso2exe.h |
pascal@14150 | 20 i586-pc-mingw32-gcc -s -o $@ iso2exe.c -lws2_32 |
pascal@14150 | 21 |
pascal@14150 | 22 isohybrid.exe: iso2exe.sh mvcom.bin iso2exe.com iso2exe.exe |
pascal@14150 | 23 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@ |
pascal@14150 | 24 chmod +x $@ |
pascal@14150 | 25 |
pascal@13691 | 26 OBJS = boot.o iso9660.o libdos.o bootlinux.o |
pascal@13691 | 27 boot.com: $(OBJS) |
pascal@13972 | 28 $(BCC) $(BCCFLAGS) -o $@ $(OBJS) && upx --ultra-brute $@ |
pascal@13691 | 29 |
pascal@13691 | 30 boot.o: boot.c iso9660.h bootlinux.h libdos.h |
pascal@13691 | 31 |
pascal@13691 | 32 bootlinux.o: bootlinux.c iso9660.h bootlinux.h |
pascal@13691 | 33 |
pascal@13691 | 34 iso9660.o: iso9660.c iso9660.h |
pascal@13691 | 35 |
pascal@13691 | 36 libdos.o: libdos.c libdos.h |
pascal@13691 | 37 |
pascal@14257 | 38 win32.res: win32.rc win32.ico |
pascal@14257 | 39 i586-pc-mingw32-windres $< -O coff -o $@ |
pascal@14257 | 40 |
pascal@14258 | 41 win32.exe: win32.c win32.res |
pascal@14257 | 42 i586-pc-mingw32-gcc -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@ |
pascal@14150 | 43 |
pascal@13691 | 44 %.o: %.c |
pascal@13691 | 45 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $< |
pascal@13691 | 46 |
pascal@13691 | 47 %.bin: %.S |
pascal@13691 | 48 $(GCC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $*.o $< |
pascal@13691 | 49 objcopy -O binary $*.o $@ |
pascal@13691 | 50 chmod +x $@ |
pascal@13691 | 51 |
pascal@13691 | 52 clean: |
pascal@13691 | 53 rm -f *.bin *.o *~ |