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

VxWorks

开发平台:

C/C++

  1. # Makefile - makefile for demo/1
  2. #
  3. # Copyright 1984-1995 Wind River Systems, Inc.
  4. #
  5. # modification history
  6. # --------------------
  7. # 01a,11nov95,p_m  written.
  8. #
  9. # DESCRIPTION
  10. # This file contains rules for building a simple VxWorks demo (demo.o) 
  11. # for the desired architecture and then moving the object in its final 
  12. # location.
  13. #
  14. # It also contains rules to build the client side (running on VxWorks) of
  15. # a simple client/server application.
  16. #
  17. # To build VxWorks objects for a given target do:
  18. #
  19. # % make CPU=<CPU_TYPE>
  20. #
  21. # Eg: to build the programs for a MC68060 target use:
  22. #
  23. # % make  CPU=MC68060
  24. #
  25. # INCLUDES
  26. #     makeTarget
  27. #*/
  28. CPU             = MC68020
  29. TOOL            = gnu
  30. include $(WIND_BASE)/target/h/make/defs.bsp
  31. include $(WIND_BASE)/target/h/make/make.$(CPU)$(TOOL)
  32. include $(WIND_BASE)/target/h/make/defs.$(WIND_HOST_TYPE)
  33. default : $(DEMO_DIR)
  34. $(DEMO_DIR)     : .neverbuilt
  35. $(CC) $(CFLAGS) -c demo.c
  36. $(CP) demo.o $@
  37. $(CC) $(CFLAGS) -c client.c
  38. $(CP) client.o $@
  39. exe             :
  40. .neverbuilt     :