wok-next annotate syslinux/stuff/iso2exe/Makefile @ rev 17812
syslinux/iso2exe: update partition table
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 21 14:39:57 2015 +0100 (2015-03-21) |
parents | 054f70cb9bec |
children | 19cc1578fb5c |
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@16069 | 5 all: isohybrid.exe iso2exe meminfo.exe tazboot.exe |
pascal@15981 | 6 |
pascal@15981 | 7 meminfo.exe: meminfo.S |
pascal@15981 | 8 cc -o meminfo.o -Wa,-a=meminfo.lst -c meminfo.S |
pascal@15981 | 9 objcopy -O binary meminfo.o meminfo.exe |
pascal@17160 | 10 chmod +x $@ |
pascal@14150 | 11 |
pascal@17812 | 12 iso2exe: iso2exe.sh boot.com bootiso.bin init win32.exe |
pascal@13691 | 13 cp iso2exe.sh $@ |
pascal@13691 | 14 chmod +x $@ |
pascal@17812 | 15 ./$@ --build boot.com bootiso.bin init win32.exe |
pascal@13691 | 16 |
pascal@14317 | 17 isohybrid.res: isohybrid.rc isohybrid.ico |
pascal@14317 | 18 i586-pc-mingw32-windres $< -O coff -o $@ |
pascal@14317 | 19 |
pascal@17489 | 20 iso2exe.h: iso2exe |
pascal@14150 | 21 chmod +x iso2exe.sh |
pascal@17489 | 22 ./iso2exe.sh --array isohdpfx.bin > $@ |
pascal@14150 | 23 |
pascal@14150 | 24 iso2exe.com: iso2exe.c iso2exe.h |
pascal@14264 | 25 $(BCC) $(BCCFLAGS) -o $@ iso2exe.c && upx --ultra-brute $@ |
pascal@14150 | 26 |
pascal@14317 | 27 iso2exe.exe: iso2exe.c iso2exe.h isohybrid.res |
pascal@14317 | 28 i586-pc-mingw32-gcc -Os -s -o $@ iso2exe.c isohybrid.res -lws2_32 |
pascal@14150 | 29 |
pascal@14150 | 30 isohybrid.exe: iso2exe.sh mvcom.bin iso2exe.com iso2exe.exe |
pascal@14150 | 31 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@ |
pascal@14150 | 32 chmod +x $@ |
pascal@14150 | 33 |
pascal@16069 | 34 tazboot.exe: boot.com |
pascal@16069 | 35 com2exe $< > $@ |
pascal@17160 | 36 chmod +x $@ |
pascal@16069 | 37 |
pascal@13691 | 38 OBJS = boot.o iso9660.o libdos.o bootlinux.o |
pascal@13691 | 39 boot.com: $(OBJS) |
pascal@13972 | 40 $(BCC) $(BCCFLAGS) -o $@ $(OBJS) && upx --ultra-brute $@ |
pascal@13691 | 41 |
pascal@13691 | 42 boot.o: boot.c iso9660.h bootlinux.h libdos.h |
pascal@13691 | 43 |
pascal@13691 | 44 bootlinux.o: bootlinux.c iso9660.h bootlinux.h |
pascal@13691 | 45 |
pascal@13691 | 46 iso9660.o: iso9660.c iso9660.h |
pascal@13691 | 47 |
pascal@13691 | 48 libdos.o: libdos.c libdos.h |
pascal@13691 | 49 |
pascal@14257 | 50 win32.res: win32.rc win32.ico |
pascal@14257 | 51 i586-pc-mingw32-windres $< -O coff -o $@ |
pascal@14257 | 52 |
pascal@14258 | 53 win32.exe: win32.c win32.res |
pascal@14268 | 54 i586-pc-mingw32-gcc -Os -s -o $@ $< win32.res -mwindows -lws2_32 && upx --ultra-brute $@ |
pascal@14150 | 55 |
pascal@13691 | 56 %.o: %.c |
pascal@13691 | 57 $(BCC) $(BCCFLAGS) -A-l -A$*.lst -c -o $@ $< |
pascal@13691 | 58 |
pascal@13691 | 59 %.bin: %.S |
pascal@13691 | 60 $(GCC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $*.o $< |
pascal@13691 | 61 objcopy -O binary $*.o $@ |
pascal@13691 | 62 chmod +x $@ |
pascal@13691 | 63 |
pascal@13691 | 64 clean: |
pascal@13691 | 65 rm -f *.bin *.o *~ |