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

VxWorks

开发平台:

C/C++

  1. # Makefile - makefile for target/src/usr
  2. #
  3. # modification history
  4. # --------------------
  5. # 01i,08dec01,jkf  fixing statTbl.c dependencies, per yogu's T3 work and
  6. #                  SPR#8389.  adding memDrv.c and ramDrv.c into DOCS.
  7. # 01h,06dec01,jkf  SPR#70580, makeStatTbl support readded for Windows host
  8. # 01g,12oct01,tam  added repackaging support
  9. # 01f,24sep01,jkf  moving tarLib.c into src/usr directory, removed
  10. #                  DOC_DIR changes.
  11. # 01e,28jul00,rec  changes to support multiple architectures for ARM
  12. #                  added $(LIBDIR)/*.o to LOCAL_CLEAN
  13. # 01e,21jun00,rsh  upgrade to dosFs 2.0
  14. # 01g,26oct99,jkf  added DOC_OPTS = $(DOC_OPTS_MAN) -category DOSFS2
  15. # 01f,08oct99,jkf  more doc kludges for T2 component, remove for T3
  16. # 01e,08oct99,jkf  added a kludge to get these into the T2 component
  17. #                  documentation directory "dosfs2".  This change should be
  18. #                  be removed for T3, since dosfs2 will no longer be a
  19. #                  component release.
  20. # 01d,14oct98,lrn  added devSplit to OBJS, merged from ms.
  21. # 01c,06jul98,lrn  added new dosFs files, separated I/O utils from usrLib.c
  22. # 01b,02dec96,yp   made build of statTbl.o more reliable. We find makeStatTbl
  23. #    from search path now
  24. # 01a,17aug96,yp   derived from 01e of MakeSkel
  25. #
  26. # DESCRIPTION
  27. # This file contains the makefile rules for building the vx library
  28. #
  29. #*/
  30. TGT_DIR=$(WIND_BASE)/target
  31. LIB_BASE_NAME   = os
  32. DOC_FILES= usrLib.c usrFsLib.c usrFdiskPartLib.c ramDiskCbio.c 
  33.            tarLib.c memDrv.c ramDrv.c
  34. # the files that contain status codes are listed here. To prevent
  35. # the need to update this list every time a new file with status
  36. # codes is added we wildcard all .h files from the directories
  37. # specifed. The specified directory is expected to have a file
  38. # that lists module numbers.
  39. STATCODEDIRS= $(TGT_DIR)/h
  40. STATFILES= $(wildcard $(foreach dir, $(STATCODEDIRS), $(dir)/*.h))
  41. OBJS=usrLib.o statTbl.o memDrv.o ramDrv.o devSplit.o
  42. usrDosFsOld.o usrFsLib.o usrFdiskPartLib.o ramDiskCbio.o 
  43.         tarLib.o
  44. NODEPENDOBJS=statTbl.c
  45. LOCAL_CLEAN=$(NODEPENDOBJS)
  46. include $(TGT_DIR)/h/make/rules.library
  47. $(subst /,$(DIRCHAR),$(TGT_DIR)/lib/$(LIBNAME)): $(LIBDIR)/statTbl.o
  48. $(LIBDIR)/statTbl.o: statTbl.c
  49. statTbl.c: $(STATFILES)
  50. @ $(RM) $@                              
  51. ifneq ($(WIND_HOST_TYPE),x86-win32)
  52. makeStatTbl $(STATCODEDIRS) > statTbl.c 
  53. else
  54. makeStatTbl $(STATCODEDIRS)
  55. endif