Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Makefile 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # Locations of utilities
  2. #
  3. ISOLINUX_BIN = /usr/lib/syslinux/isolinux.bin
  4. # i386-specific directories containing source files
  5. #
  6. SRCDIRS += arch/i386/core arch/i386/transitions arch/i386/prefix
  7. SRCDIRS += arch/i386/firmware/pcbios
  8. SRCDIRS += arch/i386/image
  9. SRCDIRS += arch/i386/drivers/bus
  10. SRCDIRS += arch/i386/drivers/net
  11. SRCDIRS += arch/i386/drivers/disk
  12. SRCDIRS += arch/i386/interface/pcbios
  13. SRCDIRS += arch/i386/interface/pxe
  14. # The various xxx_loader.c files are #included into core/loader.c and
  15. # should not be compiled directly.
  16. #
  17. NON_AUTO_SRCS += arch/i386/core/aout_loader.c
  18. NON_AUTO_SRCS += arch/i386/core/freebsd_loader.c
  19. NON_AUTO_SRCS += arch/i386/core/wince_loader.c
  20. # unnrv2b.S is used to generate a 16-bit as well as a 32-bit object.
  21. #
  22. OBJS_unnrv2b = unnrv2b unnrv2b16
  23. CFLAGS_unnrv2b16 = -DCODE16
  24. # We need to undefine the default macro "i386" when compiling .S
  25. # files, otherwise ".arch i386" translates to ".arch 1"...
  26. #
  27. CFLAGS_S += -Ui386
  28. # The i386 linker script
  29. #
  30. LDSCRIPT = arch/i386/scripts/i386.lds
  31. # Media types.
  32. #
  33. MEDIA += rom
  34. MEDIA += pxe
  35. MEDIA += elf
  36. MEDIA += elfd
  37. MEDIA += lmelf
  38. MEDIA += lmelfd
  39. MEDIA += lkrn
  40. MEDIA += bImage
  41. MEDIA += dsk
  42. MEDIA += nbi
  43. MEDIA += hd
  44. MEDIA += raw
  45. MEDIA += com
  46. MEDIA += exe
  47. # Special target for building Master Boot Record binary
  48. $(BIN)/mbr.bin : $(BIN)/mbr.o
  49. $(OBJCOPY) -O binary $< $@
  50. # Some suffixes (e.g. %.fd0) are generated directly from other
  51. # finished files (e.g. %.dsk), rather than having their own prefix.
  52. # rule to write disk images to /dev/fd0
  53. NON_AUTO_MEDIA += fd0
  54. %fd0 : %dsk
  55. dd if=$< bs=512 conv=sync of=/dev/fd0
  56. sync
  57. # rule to create padded disk images
  58. NON_AUTO_MEDIA += pdsk
  59. %pdsk : %dsk
  60. cp $< $@
  61. $(PERL) ./util/dskpad.pl $@
  62. # rule to make a non-emulation ISO boot image
  63. NON_AUTO_MEDIA += iso
  64. %iso: %lkrn util/geniso
  65. ISOLINUX_BIN=$(ISOLINUX_BIN) bash util/geniso $@ $<
  66. # rule to make a floppy emulation ISO boot image
  67. NON_AUTO_MEDIA += liso
  68. %liso: %lkrn util/genliso
  69. bash util/genliso $@ $<
  70. # rule to make a USB disk image
  71. $(BIN)/usbdisk.bin : $(BIN)/usbdisk.o
  72. $(OBJCOPY) -O binary $< $@
  73. NON_AUTO_MEDIA += usb
  74. %usb: $(BIN)/usbdisk.bin %hd
  75. cat $^ > $@
  76. # Add NON_AUTO_MEDIA to the media list, so that they show up in the
  77. # output of "make"
  78. #
  79. MEDIA += $(NON_AUTO_MEDIA)
  80. # Shortcut to allow typing just
  81. # make bin-kir/%
  82. # rather than
  83. # make -f arch/i386/kir-Makefile bin-kir/%
  84. # for building a KEEP_IT_REAL flavour.
  85. #
  86. $(BIN)-kir/% : kir-target
  87. $(MAKE) -f arch/i386/kir-Makefile $(MAKECMDGOALS)
  88. .PHONY : kir-target