home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.2 / LINUX-1.2 / LINUX-1 / linux / arch / i386 / Makefile < prev   
Encoding:
Makefile  |  1995-02-25  |  1.7 KB  |  82 lines

  1. #
  2. # i386/Makefile
  3. #
  4. # This file is included by the global makefile so that you can add your own
  5. # architecture-specific flags and dependencies. Remember to do have actions
  6. # for "archclean" and "archdep" for cleaning up and making dependencies for
  7. # this architecture
  8. #
  9. # This file is subject to the terms and conditions of the GNU General Public
  10. # License.  See the file "COPYING" in the main directory of this archive
  11. # for more details.
  12. #
  13. # Copyright (C) 1994 by Linus Torvalds
  14. #
  15.  
  16. #
  17. # Set these to indicate how to link it..
  18. #
  19. # -zmagic:   
  20. #
  21. # ZLINKFLAGS   = -Ttext 0x1000
  22. # LINKFLAGS    = -Ttext 0x100000
  23. #
  24. # -qmagic (we need to remove the 32 byte header for bootup purposes)
  25. #
  26. ZLINKFLAGS =-qmagic -Ttext 0xfe0
  27. LINKFLAGS =-qmagic -Ttext 0xfffe0
  28. CFLAGS := $(CFLAGS) -pipe
  29.  
  30. ifdef CONFIG_M486
  31. CFLAGS := $(CFLAGS) -m486
  32. else
  33. ifdef CONFIG_M586
  34. CFLAGS := $(CFLAGS) -mpentium
  35. else
  36. CFLAGS := $(CFLAGS) -m386
  37. endif
  38. endif
  39.  
  40. HEAD := arch/i386/kernel/head.o
  41.  
  42. SUBDIRS := $(SUBDIRS) arch/i386/kernel arch/i386/mm
  43. ARCHIVES := arch/i386/kernel/kernel.o arch/i386/mm/mm.o $(ARCHIVES)
  44.  
  45. ifdef CONFIG_IBCS
  46. SUBDIRS := $(SUBDIRS) arch/i386/ibcs
  47. DRIVERS := $(DRIVERS) arch/i386/ibcs/ibcs.o
  48. endif
  49.  
  50. ifdef CONFIG_MATH_EMULATION
  51. SUBDIRS := $(SUBDIRS) arch/i386/math-emu
  52. DRIVERS := $(DRIVERS) arch/i386/math-emu/math.a
  53. endif
  54.  
  55. arch/i386/kernel: dummy
  56.     $(MAKE) linuxsubdirs SUBDIRS=arch/i386/kernel
  57.  
  58. arch/i386/mm: dummy
  59.     $(MAKE) linuxsubdirs SUBDIRS=arch/i386/mm
  60.  
  61. MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
  62.  
  63. zImage: vmlinux
  64.     @$(MAKEBOOT) zImage
  65.  
  66. compressed: zImage
  67.  
  68. zlilo: vmlinux
  69.     @$(MAKEBOOT) zlilo
  70.  
  71. zdisk: vmlinux
  72.     @$(MAKEBOOT) zdisk
  73.  
  74. install: vmlinux
  75.     @$(MAKEBOOT) install
  76.  
  77. archclean:
  78.     @$(MAKEBOOT) clean
  79.  
  80. archdep:
  81.     @$(MAKEBOOT) dep
  82.