wok-6.x annotate syslinux/stuff/iso2exe/Makefile @ rev 18140
syslinux/taziso: add floppyset
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 15 16:28:54 2015 +0200 (2015-06-15) |
parents | 19cc1578fb5c |
children | 0a22c10d35b2 |
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@18140 | 7 taziso.built: bootloader.bin |
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@17812 | 16 iso2exe: iso2exe.sh boot.com bootiso.bin init win32.exe |
pascal@13691 | 17 cp iso2exe.sh $@ |
pascal@13691 | 18 chmod +x $@ |
pascal@17812 | 19 ./$@ --build boot.com bootiso.bin init win32.exe |
pascal@13691 | 20 |
pascal@14317 | 21 isohybrid.res: isohybrid.rc isohybrid.ico |
pascal@14317 | 22 i586-pc-mingw32-windres $< -O coff -o $@ |
pascal@14317 | 23 |
pascal@17489 | 24 iso2exe.h: iso2exe |
pascal@14150 | 25 chmod +x iso2exe.sh |
pascal@17813 | 26 ./iso2exe.sh --array ../mbr/isohdpfx.bin > $@ |
pascal@14150 | 27 |
pascal@14150 | 28 iso2exe.com: iso2exe.c iso2exe.h |
pascal@14264 | 29 $(BCC) $(BCCFLAGS) -o $@ iso2exe.c && upx --ultra-brute $@ |
pascal@14150 | 30 |
pascal@14317 | 31 iso2exe.exe: iso2exe.c iso2exe.h isohybrid.res |
pascal@14317 | 32 i586-pc-mingw32-gcc -Os -s -o $@ iso2exe.c isohybrid.res -lws2_32 |
pascal@14150 | 33 |
pascal@14150 | 34 isohybrid.exe: iso2exe.sh mvcom.bin iso2exe.com iso2exe.exe |
pascal@14150 | 35 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@ |
pascal@14150 | 36 chmod +x $@ |
pascal@14150 | 37 |
pascal@16069 | 38 tazboot.exe: boot.com |
pascal@16069 | 39 com2exe $< > $@ |
pascal@17160 | 40 chmod +x $@ |
pascal@16069 | 41 |
pascal@13691 | 42 OBJS = boot.o iso9660.o libdos.o bootlinux.o |
pascal@13691 | 43 boot.com: $(OBJS) |
pascal@13972 | 44 $(BCC) $(BCCFLAGS) -o $@ $(OBJS) && upx --ultra-brute $@ |
pascal@13691 | 45 |
pascal@13691 | 46 boot.o: boot.c iso9660.h bootlinux.h libdos.h |
pascal@13691 | 47 |
pascal@13691 | 48 bootlinux.o: bootlinux.c iso9660.h bootlinux.h |
pascal@13691 | 49 |
pascal@13691 | 50 iso9660.o: iso9660.c iso9660.h |
pascal@13691 | 51 |
pascal@13691 | 52 libdos.o: libdos.c libdos.h |
pascal@13691 | 53 |
pascal@14257 | 54 win32.res: win32.rc win32.ico |
pascal@14257 | 55 i586-pc-mingw32-windres $< -O coff -o $@ |
pascal@14257 | 56 |
pascal@14258 | 57 win32.exe: win32.c win32.res |
pascal@14268 | 58 i586-pc-mingw32-gcc -Os -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@ |
pascal@14150 | 59 |
pascal@13691 | 60 %.o: %.c |
pascal@13691 | 61 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $< |
pascal@13691 | 62 |
pascal@13691 | 63 %.bin: %.S |
pascal@13691 | 64 $(GCC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $*.o $< |
pascal@13691 | 65 objcopy -O binary $*.o $@ |
pascal@13691 | 66 chmod +x $@ |
pascal@13691 | 67 |
pascal@13691 | 68 clean: |
pascal@13691 | 69 rm -f *.bin *.o *~ |