Makefile
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:3k
源码类别:

VxWorks

开发平台:

C/C++

  1. # Makefile - makefile for bsp/src/drv/scsi
  2. #
  3. # modification history
  4. # --------------------
  5. # 01k,12mar02,dat  SPR 72518 Drivers docs in separate directory
  6. # 01j,12oct01,tam  added repackaging support
  7. # 01i,16aug01,hdn  added PENTIUM2/3/4 support
  8. # 01h,21jun00,dat  added sym895Lib.[co]
  9. # 01g,25aug98,sut  added module ncr710CommLib.c
  10. # 01f,03jun98,dat  fixed EXTRA_INCLUDE to use TGT_DIR
  11. # 01e,29may98,dbt  added support for pentium
  12. # 01d,06sep97,dds  made aic7880Lib.c CPU specific.
  13. # 01c,10jul97,dds  added module aic7880Lib.c
  14. # 01b,04nov96,p_m  Added objects added since 01j of MakeSkel
  15. # 01a,18jun96,yp   created from 01j of MakeSkel
  16. #
  17. # DESCRIPTION
  18. # This file contains the makefile rules for building the drv library.
  19. #
  20. # This file also contains rules for building an NCR script .c file from the
  21. # .n script file.  The .c file is then copied into the src/drv/scsi directory
  22. # where it is then included with the library built in src/drv/scsi.
  23. # The documentation includes in the .n file is extracted and added to 
  24. # the final .c file.
  25. #
  26. #*/
  27. TGT_DIR=$(WIND_BASE)/target
  28. DOC_FILES= mb87030Lib.c ncr5390Lib.c ncr5390Lib1.c ncr5390Lib2.c 
  29.                 ncr710Lib.c ncr710Lib2.c ncr810Lib.c wd33c93Lib.c 
  30. aic7880Lib.c wd33c93Lib1.c  wd33c93Lib2.c ncr710CommLib.c 
  31. sym895Lib.c
  32. LIB_BASE_NAME=drv
  33. EXTRA_INCLUDE=-I$(TGT_DIR)/h/
  34. OBJS_COMMON = mb87030Lib.o ncr5390Lib.o ncr5390Lib1.o ncr5390Lib2.o 
  35.               ncr710Lib.o ncr710init.o ncr710Lib2.o ncr710init2.o 
  36.               ncr810Lib.o ncr810init.o wd33c93Lib.o wd33c93Lib1.o 
  37.       wd33c93Lib2.o ncr710CommLib.o sym895Lib.o
  38. OBJS_I80386 = aic7880Lib.o
  39. OBJS_I80486 = aic7880Lib.o
  40. OBJS_PENTIUM = aic7880Lib.o
  41. OBJS_PENTIUM2 = aic7880Lib.o
  42. OBJS_PENTIUM3 = aic7880Lib.o
  43. OBJS_PENTIUM4 = aic7880Lib.o
  44. OBJS         = $(OBJS_COMMON) $(OBJS_$(CPU))
  45. include $(TGT_DIR)/h/make/rules.library
  46. CC_OPTIM=$(CC_OPTIM_DRIVER)
  47. DOC_DIR = $(DOCS_ROOT)/vxworks/ref/drv
  48. DOC_CHAPTER=Driver_Libraries
  49. # note: in order to compile script the script compilers should be in the path
  50. CPP         = cpp -C -P $(CCFLAGS) $(CC_DEFINES)
  51. NCRCPP      = n710psun4
  52. NCRCC       = n710csun4
  53. NCRH1       = $(TGT_DIR)/h/drv/scsi/ncr710Script1.h
  54. # Build rules for ncrXXXinit.c. The .c files are created from the .n files.
  55. # However, this process is not automated due to the availability of the
  56. # nasm compiler on SUN hosts. The following procedure applies to pre-processing
  57. # the .n file and making it ready for nasm compilation. The objective is
  58. # to use the C pre-processor to create a temporary .i file from a .n file.
  59. # The .i file can then be compiled using nasm on any host, in order to
  60. # get the .c file. The .c file is then compiled by this Makefile.
  61. #Example:
  62. #          $ cpp -P < ncr810init.n > ncr810init.i
  63. #     On the host where nasm resides
  64. #          $ nasm -a 825 -o ncr810init.c ncr810init.i