PageRenderTime 25ms CodeModel.GetById 13ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

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