wok-next annotate syslinux/stuff/iso2exe/Makefile @ rev 15586
Up ndiswrapper (1.59)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 30 19:25:54 2013 +0000 (2013-11-30) |
parents | 19258b949c1b |
children | 3f0b08dbc9d3 |
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@14317 | 12 isohybrid.res: isohybrid.rc isohybrid.ico |
pascal@14317 | 13 i586-pc-mingw32-windres $< -O coff -o $@ |
pascal@14317 | 14 |
pascal@14150 | 15 iso2exe.h: iso2exe ../mbr/isohdpfx.bin |
pascal@14150 | 16 chmod +x iso2exe.sh |
pascal@14150 | 17 ./iso2exe.sh --array ../mbr/isohdpfx.bin > $@ |
pascal@14150 | 18 |
pascal@14150 | 19 iso2exe.com: iso2exe.c iso2exe.h |
pascal@14264 | 20 $(BCC) $(BCCFLAGS) -o $@ iso2exe.c && upx --ultra-brute $@ |
pascal@14150 | 21 |
pascal@14317 | 22 iso2exe.exe: iso2exe.c iso2exe.h isohybrid.res |
pascal@14317 | 23 i586-pc-mingw32-gcc -Os -s -o $@ iso2exe.c isohybrid.res -lws2_32 |
pascal@14150 | 24 |
pascal@14150 | 25 isohybrid.exe: iso2exe.sh mvcom.bin iso2exe.com iso2exe.exe |
pascal@14150 | 26 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@ |
pascal@14150 | 27 chmod +x $@ |
pascal@14150 | 28 |
pascal@13691 | 29 OBJS = boot.o iso9660.o libdos.o bootlinux.o |
pascal@13691 | 30 boot.com: $(OBJS) |
pascal@13972 | 31 $(BCC) $(BCCFLAGS) -o $@ $(OBJS) && upx --ultra-brute $@ |
pascal@13691 | 32 |
pascal@13691 | 33 boot.o: boot.c iso9660.h bootlinux.h libdos.h |
pascal@13691 | 34 |
pascal@13691 | 35 bootlinux.o: bootlinux.c iso9660.h bootlinux.h |
pascal@13691 | 36 |
pascal@13691 | 37 iso9660.o: iso9660.c iso9660.h |
pascal@13691 | 38 |
pascal@13691 | 39 libdos.o: libdos.c libdos.h |
pascal@13691 | 40 |
pascal@14257 | 41 win32.res: win32.rc win32.ico |
pascal@14257 | 42 i586-pc-mingw32-windres $< -O coff -o $@ |
pascal@14257 | 43 |
pascal@14258 | 44 win32.exe: win32.c win32.res |
pascal@14268 | 45 i586-pc-mingw32-gcc -Os -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@ |
pascal@14150 | 46 |
pascal@13691 | 47 %.o: %.c |
pascal@13691 | 48 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $< |
pascal@13691 | 49 |
pascal@13691 | 50 %.bin: %.S |
pascal@13691 | 51 $(GCC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $*.o $< |
pascal@13691 | 52 objcopy -O binary $*.o $@ |
pascal@13691 | 53 chmod +x $@ |
pascal@13691 | 54 |
pascal@13691 | 55 clean: |
pascal@13691 | 56 rm -f *.bin *.o *~ |