make.def 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #!/usr/bin/make -f
  2. # file: make.def
  3. # ====================================================================
  4. # Atheros Wifi Router Hardware Symbols;
  5. # --------------------------------------------------------------------
  6. # include ../../../../build/scripts/$(BOARD_TYPE)/config.$(BOARD_TYPE)
  7. # ====================================================================
  8. # Atheros Wifi Router Software Symbols;
  9. # --------------------------------------------------------------------
  10. # TOOLPATH=../../../../build/$(TOOLCHAIN)/build_mips/bin
  11. # CROSS=$(TOOLPATH)/mips-linux-
  12. # CROSS_LINUX=$(TOOLPREFIX)
  13. # ====================================================================
  14. # Freescale PL-14/iMX35 Platform Symbols;
  15. # --------------------------------------------------------------------
  16. # ROOTFS=~/ltib/rootfs
  17. # TOOLPATH=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/
  18. # CROSS=${TOOLPATH}/arm-none-linux-gnueabi-
  19. # CROSS_LINUX=$(TOOLPREFIX)
  20. # ====================================================================
  21. # Freescale PL-16/iMX28 Platform Symbols;
  22. # --------------------------------------------------------------------
  23. # ROOTFS=~/ltib/rootfs
  24. # TOOLPATH=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/
  25. # CROSS=${TOOLPATH}/arm-none-linux-gnueabi-
  26. # CROSS_LINUX=$(TOOLPREFIX)
  27. # ====================================================================
  28. # MIPS/AMiLDA Software Symbols;
  29. # --------------------------------------------------------------------
  30. # CROSS=/export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-
  31. # CROSS_LINUX=/export/tools/bin/mipsel-linux-
  32. # ====================================================================
  33. # Edimax Gateway Hardware Symbols;
  34. # --------------------------------------------------------------------
  35. # PLATFORM=-D_ADM5120_
  36. # MODEL=-D_6104KP_
  37. # ENDIAN=-D_LITTLE_ENDIAN_
  38. # GATEWAY=y
  39. # ====================================================================
  40. # toolchain;
  41. # --------------------------------------------------------------------
  42. AR=$(CROSS)ar
  43. CAS=$(CROSS)gcc -c
  44. CC=$(CROSS)gcc
  45. CXX=$(CROSS)g++
  46. LD=$(CROSS)ld
  47. RANLIB=$(CROSS)ranlib
  48. STRIP=$(CROSS)strip
  49. # ====================================================================
  50. # installation folders;
  51. # --------------------------------------------------------------------
  52. ROOTFS?=/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/open-plc-utils-0.3/release
  53. BIN=${ROOTFS}/usr/local/bin
  54. MAN=${ROOTFS}/usr/local/man/man1
  55. DOC=${ROOTFS}/home/www/software
  56. WWW=${ROOTFS}/home/www
  57. FTP=${ROOTFS}/home/ftp
  58. # ====================================================================
  59. # file ownership;
  60. # --------------------------------------------------------------------
  61. OWNER=0
  62. GROUP=0
  63. # ====================================================================
  64. # file permissions;
  65. # --------------------------------------------------------------------
  66. DIR_PERM=0755
  67. MAN_PERM=0444
  68. BIN_PERM=0555
  69. WWW_PERM=0666
  70. SUID_PERM=4555
  71. # ====================================================================
  72. # search folders;
  73. # --------------------------------------------------------------------
  74. VPATH=../applets:../debian:../docbook:../docbook2:../ether:../key:../mdio:../mme:../nda:../nodes:../nvm:../patches:../pib:../plc:../qca:../ram:../scripts:../serial:../support:../tools
  75. # ====================================================================
  76. # types and targets;
  77. # --------------------------------------------------------------------
  78. .SUFFIXES: .o .c .h .cpp .hpp
  79. .PHONY: all compile compact install scripts manuals uninstall library check fresh clean
  80. # ====================================================================
  81. # default compiler and linker flags;
  82. # --------------------------------------------------------------------
  83. CFLAGS=-Wall -Wextra -Wno-unused-parameter -DMAKEFILE -D__GETOPT_H__ -D_GETOPT_DEFINED_ $(EXTRA_CFLAGS)
  84. CXXFLAGS=-Wall -Wextra -Wno-unused-parameter -DMAKEFILE $(EXTRA_CXXFLAGS)
  85. LDFLAGS=$(EXTRA_LDFLAGS)