/examples/Makefile.fpc

http://github.com/graemeg/lazarus · Unknown · 126 lines · 113 code · 13 blank · 0 comment · 0 complexity · 2af3ca13efa4e54799b14e3ac80c444c MD5 · raw file

  1. #
  2. # Makefile.fpc for LCL Examples for Free Pascal
  3. #
  4. [package]
  5. name=lazarus-examples
  6. version=1.0
  7. [target]
  8. units=hello \
  9. bitbutton \
  10. checkbox \
  11. combobox \
  12. comdialogs \
  13. edittest \
  14. groupbox \
  15. groupboxnested \
  16. listboxtest \
  17. listviewtest \
  18. loadpicture \
  19. memotest \
  20. messagedialogs \
  21. notebk \
  22. notebooktest \
  23. progressbar \
  24. scrollbar \
  25. speedtest \
  26. synedit1 \
  27. taborder \
  28. testall \
  29. toolbar \
  30. trackbar
  31. [require]
  32. libc=y
  33. packages=regexpr
  34. [clean]
  35. files=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) \
  36. $(wildcard units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) \
  37. $(wildcard units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) \
  38. $(wildcard trayicon/*$(OEXT)) $(wildcard trayicon/*$(PPUEXT)) \
  39. $(wildcard units/$(CPU_TARGET)-$(OS_TARGET)/*.or) \
  40. hello \
  41. bitbutton \
  42. checkbox \
  43. combobox \
  44. comdialogs \
  45. edittest \
  46. groupbox \
  47. groupboxnested \
  48. listboxtest \
  49. listviewtest \
  50. loadpicture \
  51. memotest \
  52. messagedialogs \
  53. notebk \
  54. notebooktest \
  55. progressbar \
  56. scrollbar \
  57. speedtest \
  58. synedit1 \
  59. taborder \
  60. testall \
  61. toolbar \
  62. trackbar
  63. [default]
  64. [compiler]
  65. options=-gl
  66. unitdir=../lcl/units/$(CPU_TARGET)-$(OS_TARGET) \
  67. ../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  68. ../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) \
  69. ../components/codetools/units/$(CPU_TARGET)-$(OS_TARGET) \
  70. ../components/synedit/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  71. .
  72. units=allexamples
  73. [prerules]
  74. ifndef LCL_PLATFORM
  75. ifneq ($(findstring $(OS_TARGET),win32 win64),)
  76. LCL_PLATFORM=win32
  77. else
  78. ifeq ($(OS_TARGET),wince)
  79. LCL_PLATFORM=wince
  80. else
  81. ifeq ($(OS_TARGET),darwin)
  82. LCL_PLATFORM=carbon
  83. else
  84. LCL_PLATFORM=gtk2
  85. endif
  86. endif
  87. endif
  88. export LCL_PLATFORM
  89. endif
  90. #
  91. # apptype gui
  92. ifeq ($(OS_TARGET),win32)
  93. LAZARUS_OPT+= -WG
  94. endif
  95. #-----------------------------------------------------------------------------
  96. [rules]
  97. .PHONY: help cleanall clean
  98. #-----------------------------------------------------------------------------
  99. help:
  100. @$(ECHO)
  101. @$(ECHO) " Targets"
  102. @$(ECHO) " all build all simple examples"
  103. @$(ECHO) " Requires LCL and basecomponents, see make help of main directory"
  104. @$(ECHO) " Note: There are more complex examples in the sub directories."
  105. @$(ECHO) " clean deletes files that 'all' creates"
  106. @$(ECHO)
  107. @$(ECHO) Clean up:
  108. @$(ECHO) " There is no command to clean up a svn repository completely, but"
  109. @$(ECHO) " you can use the following command under Linux/OS X:"
  110. @$(ECHO) " svn status | grep '\?' | sed -e 's/\? *//' | xargs rm -r"
  111. @$(ECHO)
  112. @exit
  113. cleanall: clean