wok-6.x annotate syslinux/stuff/iso2exe/Makefile @ rev 22331
python-pygments: update $WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 15 11:56:14 2019 +0100 (2019-11-15) |
parents | 8b4447362fc3 |
children | 0f864bb40808 |
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@18140 | 5 all: isohybrid.exe iso2exe meminfo.exe tazboot.exe taziso.built |
pascal@18140 | 6 |
pascal@18772 | 7 taziso.built: bootloader.bin ifmem.bin taziso |
pascal@18140 | 8 ./taziso --build |
pascal@18140 | 9 touch taziso.built |
pascal@15981 | 10 |
pascal@15981 | 11 meminfo.exe: meminfo.S |
pascal@15981 | 12 cc -o meminfo.o -Wa,-a=meminfo.lst -c meminfo.S |
pascal@15981 | 13 objcopy -O binary meminfo.o meminfo.exe |
pascal@17160 | 14 chmod +x $@ |
pascal@14150 | 15 |
pascal@18772 | 16 iso2exe: iso2exe.sh boot.com bootiso.bin init.built win32.exe |
pascal@13691 | 17 cp iso2exe.sh $@ |
pascal@13691 | 18 chmod +x $@ |
pascal@20861 | 19 ./$@ --build boot.com bootiso.bin win32.exe init |
pascal@13691 | 20 |
pascal@18772 | 21 init.built: bootloader.bin ifmem.bin init |
pascal@18772 | 22 ./init --build |
pascal@18772 | 23 touch init.built |
pascal@18772 | 24 |
pascal@14317 | 25 isohybrid.res: isohybrid.rc isohybrid.ico |
pascal@14317 | 26 i586-pc-mingw32-windres $< -O coff -o $@ |
pascal@14317 | 27 |
pascal@17489 | 28 iso2exe.h: iso2exe |
pascal@14150 | 29 chmod +x iso2exe.sh |
pascal@17813 | 30 ./iso2exe.sh --array ../mbr/isohdpfx.bin > $@ |
pascal@14150 | 31 |
pascal@14150 | 32 iso2exe.com: iso2exe.c iso2exe.h |
pascal@22331 | 33 $(BCC) $(BCCFLAGS) -o $@ iso2exe.c && upx --ultra-brute --8086 $@ |
pascal@14150 | 34 |
pascal@14317 | 35 iso2exe.exe: iso2exe.c iso2exe.h isohybrid.res |
pascal@14317 | 36 i586-pc-mingw32-gcc -Os -s -o $@ iso2exe.c isohybrid.res -lws2_32 |
pascal@14150 | 37 |
pascal@14150 | 38 isohybrid.exe: iso2exe.sh mvcom.bin iso2exe.com iso2exe.exe |
pascal@14150 | 39 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@ |
pascal@14150 | 40 chmod +x $@ |
pascal@14150 | 41 |
pascal@16069 | 42 tazboot.exe: boot.com |
pascal@16069 | 43 com2exe $< > $@ |
pascal@17160 | 44 chmod +x $@ |
pascal@16069 | 45 |
pascal@14257 | 46 win32.res: win32.rc win32.ico |
pascal@14257 | 47 i586-pc-mingw32-windres $< -O coff -o $@ |
pascal@14257 | 48 |
pascal@14258 | 49 win32.exe: win32.c win32.res |
pascal@14268 | 50 i586-pc-mingw32-gcc -Os -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@ |
pascal@14150 | 51 |
pascal@13691 | 52 %.o: %.c |
pascal@13691 | 53 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $< |
pascal@13691 | 54 |
pascal@13691 | 55 %.bin: %.S |
pascal@18151 | 56 $(GCC) -D__ASSEMBLY__ -DMULTI_INITRD -Wa,-acghlnm=$*.lst -c -o $*.o $< |
pascal@13691 | 57 objcopy -O binary $*.o $@ |
pascal@13691 | 58 chmod +x $@ |
pascal@13691 | 59 |
pascal@13691 | 60 clean: |
pascal@13691 | 61 rm -f *.bin *.o *~ |