Makefile
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #
  2. # This file is subject to the terms and conditions of the GNU General Public
  3. # License.  See the file "COPYING" in the main directory of this archive
  4. # for more details.
  5. #
  6. # Copyright (C) 1995, 1998, 2001 by Ralf Baechle
  7. #
  8. USE_STANDARD_AS_RULE := true
  9. #
  10. # Some DECstations need all possible sections of an ECOFF executable
  11. #
  12. ifdef CONFIG_DECSTATION
  13.   E2EFLAGS = -a
  14. else
  15.   E2EFLAGS =
  16. endif
  17. #
  18. # Drop some uninteresting sections in the kernel.
  19. # This is only relevant for ELF kernels but doesn't hurt a.out
  20. #
  21. drop-sections = .reginfo .mdebug
  22. strip-flags = $(addprefix --remove-section=,$(drop-sections))
  23. all: vmlinux.ecoff addinitrd
  24. vmlinux.ecoff: $(CONFIGURE) elf2ecoff $(TOPDIR)/vmlinux
  25. ./elf2ecoff $(TOPDIR)/vmlinux vmlinux.ecoff $(E2EFLAGS)
  26. elf2ecoff: elf2ecoff.c
  27. $(HOSTCC) -o $@ $^
  28. addinitrd: addinitrd.c
  29. $(HOSTCC) -o $@ $^
  30. # Don't build dependencies, this may die if $(CC) isn't gcc
  31. dep:
  32. clean:
  33. rm -f vmlinux.ecoff
  34. rm -f zImage zImage.tmp
  35. mrproper:
  36. rm -f vmlinux.ecoff
  37. rm -f addinitrd
  38. rm -f elf2ecoff
  39. dummy:
  40. include $(TOPDIR)/Rules.make