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