Pratt 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. data/.exrc +61 -0
  2. data/.gitignore +4 -0
  3. data/History.txt +6 -0
  4. data/Manifest.txt +46 -0
  5. data/Pratt.gemspec +351 -0
  6. data/README.txt +66 -0
  7. data/Rakefile +85 -0
  8. data/TODO +54 -0
  9. data/VERSION +1 -0
  10. data/bin/pratt.rb +13 -0
  11. data/config.rb +34 -0
  12. data/lib/pratt.rb +527 -0
  13. data/lib/pratt/array.rb +11 -0
  14. data/lib/pratt/string.rb +18 -0
  15. data/models/app.rb +40 -0
  16. data/models/customer.rb +24 -0
  17. data/models/payment.rb +22 -0
  18. data/models/pratt.rb +19 -0
  19. data/models/project.rb +82 -0
  20. data/models/whence.rb +70 -0
  21. data/pkgs/tile-0.8.2.tar.gz +0 -0
  22. data/pkgs/tile-0.8.2/ANNOUNCE.txt +95 -0
  23. data/pkgs/tile-0.8.2/ChangeLog +4651 -0
  24. data/pkgs/tile-0.8.2/Makefile +250 -0
  25. data/pkgs/tile-0.8.2/Makefile.in +250 -0
  26. data/pkgs/tile-0.8.2/README.txt +86 -0
  27. data/pkgs/tile-0.8.2/aclocal.m4 +2 -0
  28. data/pkgs/tile-0.8.2/altTheme.o +0 -0
  29. data/pkgs/tile-0.8.2/blink.o +0 -0
  30. data/pkgs/tile-0.8.2/button.o +0 -0
  31. data/pkgs/tile-0.8.2/cache.o +0 -0
  32. data/pkgs/tile-0.8.2/clamTheme.o +0 -0
  33. data/pkgs/tile-0.8.2/classicTheme.o +0 -0
  34. data/pkgs/tile-0.8.2/config.log +1330 -0
  35. data/pkgs/tile-0.8.2/config.status +795 -0
  36. data/pkgs/tile-0.8.2/configure +15248 -0
  37. data/pkgs/tile-0.8.2/configure.in +89 -0
  38. data/pkgs/tile-0.8.2/demos/autocomplete.tcl +59 -0
  39. data/pkgs/tile-0.8.2/demos/demo.tcl +870 -0
  40. data/pkgs/tile-0.8.2/demos/dirbrowser.tcl +167 -0
  41. data/pkgs/tile-0.8.2/demos/dlgtest.tcl +97 -0
  42. data/pkgs/tile-0.8.2/demos/iconlib.tcl +110 -0
  43. data/pkgs/tile-0.8.2/demos/repeater.tcl +117 -0
  44. data/pkgs/tile-0.8.2/demos/toolbutton.tcl +101 -0
  45. data/pkgs/tile-0.8.2/doc/Geometry.3 +230 -0
  46. data/pkgs/tile-0.8.2/doc/INDEX.MAP +153 -0
  47. data/pkgs/tile-0.8.2/doc/Makefile +36 -0
  48. data/pkgs/tile-0.8.2/doc/TILE.XML +45 -0
  49. data/pkgs/tile-0.8.2/doc/Theme.3 +34 -0
  50. data/pkgs/tile-0.8.2/doc/button.n +75 -0
  51. data/pkgs/tile-0.8.2/doc/checkbutton.n +61 -0
  52. data/pkgs/tile-0.8.2/doc/combobox.n +98 -0
  53. data/pkgs/tile-0.8.2/doc/converting.txt +97 -0
  54. data/pkgs/tile-0.8.2/doc/dialog.n +122 -0
  55. data/pkgs/tile-0.8.2/doc/entry.n +438 -0
  56. data/pkgs/tile-0.8.2/doc/frame.n +43 -0
  57. data/pkgs/tile-0.8.2/doc/html/Geometry.html +304 -0
  58. data/pkgs/tile-0.8.2/doc/html/Theme.html +48 -0
  59. data/pkgs/tile-0.8.2/doc/html/button.html +120 -0
  60. data/pkgs/tile-0.8.2/doc/html/category-index.html +18 -0
  61. data/pkgs/tile-0.8.2/doc/html/checkbutton.html +94 -0
  62. data/pkgs/tile-0.8.2/doc/html/combobox.html +164 -0
  63. data/pkgs/tile-0.8.2/doc/html/converting.txt +97 -0
  64. data/pkgs/tile-0.8.2/doc/html/dialog.html +159 -0
  65. data/pkgs/tile-0.8.2/doc/html/entry.html +613 -0
  66. data/pkgs/tile-0.8.2/doc/html/frame.html +76 -0
  67. data/pkgs/tile-0.8.2/doc/html/image.html +100 -0
  68. data/pkgs/tile-0.8.2/doc/html/index.html +25 -0
  69. data/pkgs/tile-0.8.2/doc/html/keyword-index.html +228 -0
  70. data/pkgs/tile-0.8.2/doc/html/label.html +133 -0
  71. data/pkgs/tile-0.8.2/doc/html/labelframe.html +91 -0
  72. data/pkgs/tile-0.8.2/doc/html/manpage.css +212 -0
  73. data/pkgs/tile-0.8.2/doc/html/menubutton.html +63 -0
  74. data/pkgs/tile-0.8.2/doc/html/notebook.html +280 -0
  75. data/pkgs/tile-0.8.2/doc/html/paned.html +149 -0
  76. data/pkgs/tile-0.8.2/doc/html/progressbar.html +138 -0
  77. data/pkgs/tile-0.8.2/doc/html/radiobutton.html +89 -0
  78. data/pkgs/tile-0.8.2/doc/html/scrollbar.html +221 -0
  79. data/pkgs/tile-0.8.2/doc/html/separator.html +48 -0
  80. data/pkgs/tile-0.8.2/doc/html/sizegrip.html +62 -0
  81. data/pkgs/tile-0.8.2/doc/html/style.html +172 -0
  82. data/pkgs/tile-0.8.2/doc/html/tile-intro.html +164 -0
  83. data/pkgs/tile-0.8.2/doc/html/treeview.html +634 -0
  84. data/pkgs/tile-0.8.2/doc/html/widget.html +342 -0
  85. data/pkgs/tile-0.8.2/doc/image.n +81 -0
  86. data/pkgs/tile-0.8.2/doc/internals.txt +409 -0
  87. data/pkgs/tile-0.8.2/doc/label.n +75 -0
  88. data/pkgs/tile-0.8.2/doc/labelframe.n +64 -0
  89. data/pkgs/tile-0.8.2/doc/man.macros +239 -0
  90. data/pkgs/tile-0.8.2/doc/menubutton.n +41 -0
  91. data/pkgs/tile-0.8.2/doc/notebook.n +188 -0
  92. data/pkgs/tile-0.8.2/doc/paned.n +95 -0
  93. data/pkgs/tile-0.8.2/doc/progressbar.n +79 -0
  94. data/pkgs/tile-0.8.2/doc/radiobutton.n +57 -0
  95. data/pkgs/tile-0.8.2/doc/scrollbar.n +160 -0
  96. data/pkgs/tile-0.8.2/doc/separator.n +30 -0
  97. data/pkgs/tile-0.8.2/doc/sizegrip.n +53 -0
  98. data/pkgs/tile-0.8.2/doc/style.n +119 -0
  99. data/pkgs/tile-0.8.2/doc/tile-intro.n +165 -0
  100. data/pkgs/tile-0.8.2/doc/tmml.options +4 -0
  101. data/pkgs/tile-0.8.2/doc/treeview.n +415 -0
  102. data/pkgs/tile-0.8.2/doc/widget.n +227 -0
  103. data/pkgs/tile-0.8.2/doc/xml/Geometry.tmml +379 -0
  104. data/pkgs/tile-0.8.2/doc/xml/INDEX.MAP +153 -0
  105. data/pkgs/tile-0.8.2/doc/xml/Theme.tmml +63 -0
  106. data/pkgs/tile-0.8.2/doc/xml/button.tmml +134 -0
  107. data/pkgs/tile-0.8.2/doc/xml/checkbutton.tmml +119 -0
  108. data/pkgs/tile-0.8.2/doc/xml/combobox.tmml +184 -0
  109. data/pkgs/tile-0.8.2/doc/xml/dialog.tmml +195 -0
  110. data/pkgs/tile-0.8.2/doc/xml/entry.tmml +630 -0
  111. data/pkgs/tile-0.8.2/doc/xml/frame.tmml +98 -0
  112. data/pkgs/tile-0.8.2/doc/xml/image.tmml +101 -0
  113. data/pkgs/tile-0.8.2/doc/xml/label.tmml +154 -0
  114. data/pkgs/tile-0.8.2/doc/xml/labelframe.tmml +116 -0
  115. data/pkgs/tile-0.8.2/doc/xml/menubutton.tmml +80 -0
  116. data/pkgs/tile-0.8.2/doc/xml/notebook.tmml +306 -0
  117. data/pkgs/tile-0.8.2/doc/xml/paned.tmml +154 -0
  118. data/pkgs/tile-0.8.2/doc/xml/progressbar.tmml +151 -0
  119. data/pkgs/tile-0.8.2/doc/xml/radiobutton.tmml +109 -0
  120. data/pkgs/tile-0.8.2/doc/xml/scrollbar.tmml +233 -0
  121. data/pkgs/tile-0.8.2/doc/xml/separator.tmml +59 -0
  122. data/pkgs/tile-0.8.2/doc/xml/sizegrip.tmml +82 -0
  123. data/pkgs/tile-0.8.2/doc/xml/style.tmml +171 -0
  124. data/pkgs/tile-0.8.2/doc/xml/tile-intro.tmml +192 -0
  125. data/pkgs/tile-0.8.2/doc/xml/treeview.tmml +604 -0
  126. data/pkgs/tile-0.8.2/doc/xml/widget.tmml +372 -0
  127. data/pkgs/tile-0.8.2/entry.o +0 -0
  128. data/pkgs/tile-0.8.2/frame.o +0 -0
  129. data/pkgs/tile-0.8.2/generic/Makefile.in +221 -0
  130. data/pkgs/tile-0.8.2/generic/TODO +493 -0
  131. data/pkgs/tile-0.8.2/generic/altTheme.c +1172 -0
  132. data/pkgs/tile-0.8.2/generic/blink.c +168 -0
  133. data/pkgs/tile-0.8.2/generic/button.c +858 -0
  134. data/pkgs/tile-0.8.2/generic/cache.c +354 -0
  135. data/pkgs/tile-0.8.2/generic/clamTheme.c +974 -0
  136. data/pkgs/tile-0.8.2/generic/classicTheme.c +518 -0
  137. data/pkgs/tile-0.8.2/generic/configure +10334 -0
  138. data/pkgs/tile-0.8.2/generic/configure.in +100 -0
  139. data/pkgs/tile-0.8.2/generic/entry.c +1922 -0
  140. data/pkgs/tile-0.8.2/generic/frame.c +648 -0
  141. data/pkgs/tile-0.8.2/generic/gunk.h +44 -0
  142. data/pkgs/tile-0.8.2/generic/image.c +416 -0
  143. data/pkgs/tile-0.8.2/generic/label.c +663 -0
  144. data/pkgs/tile-0.8.2/generic/layout.c +1215 -0
  145. data/pkgs/tile-0.8.2/generic/manager.c +554 -0
  146. data/pkgs/tile-0.8.2/generic/manager.h +91 -0
  147. data/pkgs/tile-0.8.2/generic/notebook.c +1380 -0
  148. data/pkgs/tile-0.8.2/generic/paned.c +958 -0
  149. data/pkgs/tile-0.8.2/generic/pkgIndex.tcl.in +7 -0
  150. data/pkgs/tile-0.8.2/generic/progress.c +549 -0
  151. data/pkgs/tile-0.8.2/generic/scale.c +526 -0
  152. data/pkgs/tile-0.8.2/generic/scroll.c +253 -0
  153. data/pkgs/tile-0.8.2/generic/scrollbar.c +346 -0
  154. data/pkgs/tile-0.8.2/generic/separator.c +132 -0
  155. data/pkgs/tile-0.8.2/generic/square.c +306 -0
  156. data/pkgs/tile-0.8.2/generic/tagset.c +147 -0
  157. data/pkgs/tile-0.8.2/generic/tile.c +296 -0
  158. data/pkgs/tile-0.8.2/generic/tkElements.c +1280 -0
  159. data/pkgs/tile-0.8.2/generic/tkTheme.c +1708 -0
  160. data/pkgs/tile-0.8.2/generic/tkTheme.h +419 -0
  161. data/pkgs/tile-0.8.2/generic/tkThemeInt.h +45 -0
  162. data/pkgs/tile-0.8.2/generic/tkstate.c +268 -0
  163. data/pkgs/tile-0.8.2/generic/trace.c +145 -0
  164. data/pkgs/tile-0.8.2/generic/track.c +174 -0
  165. data/pkgs/tile-0.8.2/generic/treeview.c +3211 -0
  166. data/pkgs/tile-0.8.2/generic/ttk.decls +154 -0
  167. data/pkgs/tile-0.8.2/generic/ttkDecls.h +340 -0
  168. data/pkgs/tile-0.8.2/generic/ttkStubInit.c +61 -0
  169. data/pkgs/tile-0.8.2/generic/ttkStubLib.c +70 -0
  170. data/pkgs/tile-0.8.2/generic/widget.c +785 -0
  171. data/pkgs/tile-0.8.2/generic/widget.h +263 -0
  172. data/pkgs/tile-0.8.2/image.o +0 -0
  173. data/pkgs/tile-0.8.2/label.o +0 -0
  174. data/pkgs/tile-0.8.2/layout.o +0 -0
  175. data/pkgs/tile-0.8.2/library/altTheme.tcl +101 -0
  176. data/pkgs/tile-0.8.2/library/aquaTheme.tcl +62 -0
  177. data/pkgs/tile-0.8.2/library/button.tcl +85 -0
  178. data/pkgs/tile-0.8.2/library/clamTheme.tcl +139 -0
  179. data/pkgs/tile-0.8.2/library/classicTheme.tcl +108 -0
  180. data/pkgs/tile-0.8.2/library/combobox.tcl +439 -0
  181. data/pkgs/tile-0.8.2/library/cursors.tcl +36 -0
  182. data/pkgs/tile-0.8.2/library/defaults.tcl +118 -0
  183. data/pkgs/tile-0.8.2/library/dialog.tcl +274 -0
  184. data/pkgs/tile-0.8.2/library/entry.tcl +580 -0
  185. data/pkgs/tile-0.8.2/library/fonts.tcl +153 -0
  186. data/pkgs/tile-0.8.2/library/icons.tcl +105 -0
  187. data/pkgs/tile-0.8.2/library/keynav.tcl +192 -0
  188. data/pkgs/tile-0.8.2/library/menubutton.tcl +171 -0
  189. data/pkgs/tile-0.8.2/library/notebook.tcl +193 -0
  190. data/pkgs/tile-0.8.2/library/paned.tcl +87 -0
  191. data/pkgs/tile-0.8.2/library/progress.tcl +51 -0
  192. data/pkgs/tile-0.8.2/library/scale.tcl +54 -0
  193. data/pkgs/tile-0.8.2/library/scrollbar.tcl +125 -0
  194. data/pkgs/tile-0.8.2/library/sizegrip.tcl +77 -0
  195. data/pkgs/tile-0.8.2/library/tile.tcl +211 -0
  196. data/pkgs/tile-0.8.2/library/treeview.tcl +382 -0
  197. data/pkgs/tile-0.8.2/library/utils.tcl +254 -0
  198. data/pkgs/tile-0.8.2/library/winTheme.tcl +77 -0
  199. data/pkgs/tile-0.8.2/library/xpTheme.tcl +63 -0
  200. data/pkgs/tile-0.8.2/libtile0.8.2.so +0 -0
  201. data/pkgs/tile-0.8.2/libttkstub.a +0 -0
  202. data/pkgs/tile-0.8.2/license.terms +24 -0
  203. data/pkgs/tile-0.8.2/macosx/aquaTheme.c +1076 -0
  204. data/pkgs/tile-0.8.2/manager.o +0 -0
  205. data/pkgs/tile-0.8.2/notebook.o +0 -0
  206. data/pkgs/tile-0.8.2/paned.o +0 -0
  207. data/pkgs/tile-0.8.2/pkgIndex.tcl +3 -0
  208. data/pkgs/tile-0.8.2/progress.o +0 -0
  209. data/pkgs/tile-0.8.2/scale.o +0 -0
  210. data/pkgs/tile-0.8.2/scroll.o +0 -0
  211. data/pkgs/tile-0.8.2/scrollbar.o +0 -0
  212. data/pkgs/tile-0.8.2/separator.o +0 -0
  213. data/pkgs/tile-0.8.2/tagset.o +0 -0
  214. data/pkgs/tile-0.8.2/tclconfig/install-sh +119 -0
  215. data/pkgs/tile-0.8.2/tclconfig/tcl.m4 +4069 -0
  216. data/pkgs/tile-0.8.2/tclconfig/teax.m4 +109 -0
  217. data/pkgs/tile-0.8.2/tests/all.tcl +18 -0
  218. data/pkgs/tile-0.8.2/tests/bwidget.test +103 -0
  219. data/pkgs/tile-0.8.2/tests/cbtest.tcl +125 -0
  220. data/pkgs/tile-0.8.2/tests/combobox.test +51 -0
  221. data/pkgs/tile-0.8.2/tests/compound.tcl +92 -0
  222. data/pkgs/tile-0.8.2/tests/entry.test +285 -0
  223. data/pkgs/tile-0.8.2/tests/entrytest.tcl +78 -0
  224. data/pkgs/tile-0.8.2/tests/image.test +94 -0
  225. data/pkgs/tile-0.8.2/tests/labelframe.tcl +41 -0
  226. data/pkgs/tile-0.8.2/tests/labelframe.test +137 -0
  227. data/pkgs/tile-0.8.2/tests/layout.test +33 -0
  228. data/pkgs/tile-0.8.2/tests/misc.test +35 -0
  229. data/pkgs/tile-0.8.2/tests/nbtest.tcl +66 -0
  230. data/pkgs/tile-0.8.2/tests/notebook.test +500 -0
  231. data/pkgs/tile-0.8.2/tests/paned.test +298 -0
  232. data/pkgs/tile-0.8.2/tests/progress.test +92 -0
  233. data/pkgs/tile-0.8.2/tests/pwtest.tcl +90 -0
  234. data/pkgs/tile-0.8.2/tests/sbtest.tcl +79 -0
  235. data/pkgs/tile-0.8.2/tests/scrollbar.test +77 -0
  236. data/pkgs/tile-0.8.2/tests/sgtest.tcl +52 -0
  237. data/pkgs/tile-0.8.2/tests/testutils.tcl +20 -0
  238. data/pkgs/tile-0.8.2/tests/tile.test +674 -0
  239. data/pkgs/tile-0.8.2/tests/treetags.test +78 -0
  240. data/pkgs/tile-0.8.2/tests/treeview.test +563 -0
  241. data/pkgs/tile-0.8.2/tests/tvtest.tcl +332 -0
  242. data/pkgs/tile-0.8.2/tests/validate.test +278 -0
  243. data/pkgs/tile-0.8.2/tile.o +0 -0
  244. data/pkgs/tile-0.8.2/tkElements.o +0 -0
  245. data/pkgs/tile-0.8.2/tkTheme.o +0 -0
  246. data/pkgs/tile-0.8.2/tkstate.o +0 -0
  247. data/pkgs/tile-0.8.2/tools/genStubs.tcl +861 -0
  248. data/pkgs/tile-0.8.2/trace.o +0 -0
  249. data/pkgs/tile-0.8.2/track.o +0 -0
  250. data/pkgs/tile-0.8.2/treeview.o +0 -0
  251. data/pkgs/tile-0.8.2/ttkStubInit.o +0 -0
  252. data/pkgs/tile-0.8.2/ttkStubLib.o +0 -0
  253. data/pkgs/tile-0.8.2/widget.o +0 -0
  254. data/pkgs/tile-0.8.2/win/Tile.dsp +261 -0
  255. data/pkgs/tile-0.8.2/win/makefile.vc +527 -0
  256. data/pkgs/tile-0.8.2/win/monitor.c +164 -0
  257. data/pkgs/tile-0.8.2/win/nmakehlp.c +483 -0
  258. data/pkgs/tile-0.8.2/win/rules.vc +512 -0
  259. data/pkgs/tile-0.8.2/win/tile.rc +40 -0
  260. data/pkgs/tile-0.8.2/win/winTheme.c +734 -0
  261. data/pkgs/tile-0.8.2/win/xpTheme.c +1029 -0
  262. data/spec/app_spec.rb +48 -0
  263. data/spec/customer_spec.rb +31 -0
  264. data/spec/fixtures/graph.expectation +18 -0
  265. data/spec/payment_spec.rb +19 -0
  266. data/spec/pratt_spec.rb +148 -0
  267. data/spec/project_spec.rb +163 -0
  268. data/spec/rcov.opts +0 -0
  269. data/spec/spec.opts +1 -0
  270. data/spec/spec_helper.rb +21 -0
  271. data/spec/whence_spec.rb +54 -0
  272. data/tasks/pratt.rb +84 -0
  273. data/templates/model.eruby +12 -0
  274. data/templates/spec.eruby +8 -0
  275. data/views/env.rb +22 -0
  276. data/views/graph.eruby +20 -0
  277. data/views/invoice.eruby +148 -0
  278. data/views/main.rb +92 -0
  279. data/views/pid.eruby +3 -0
  280. data/views/pop.rb +94 -0
  281. data/views/pop2.rb +75 -0
  282. data/views/raw.eruby +11 -0
  283. metadata +390 -0
Binary file
Binary file
Binary file
@@ -0,0 +1,261 @@
1
+ # Microsoft Developer Studio Project File - Name="Tile" - Package Owner=<4>
2
+ # Microsoft Developer Studio Generated Build File, Format Version 6.00
3
+ # ** DO NOT EDIT **
4
+
5
+ # TARGTYPE "Win32 (x86) External Target" 0x0106
6
+
7
+ CFG=Tile - Win32 Debug
8
+ !MESSAGE This is not a valid makefile. To build this project using NMAKE,
9
+ !MESSAGE use the Export Makefile command and run
10
+ !MESSAGE
11
+ !MESSAGE NMAKE /f "Tile.mak".
12
+ !MESSAGE
13
+ !MESSAGE You can specify a configuration when running NMAKE
14
+ !MESSAGE by defining the macro CFG on the command line. For example:
15
+ !MESSAGE
16
+ !MESSAGE NMAKE /f "Tile.mak" CFG="Tile - Win32 Debug"
17
+ !MESSAGE
18
+ !MESSAGE Possible choices for configuration are:
19
+ !MESSAGE
20
+ !MESSAGE "Tile - Win32 Release" (based on "Win32 (x86) External Target")
21
+ !MESSAGE "Tile - Win32 Debug" (based on "Win32 (x86) External Target")
22
+ !MESSAGE
23
+
24
+ # Begin Project
25
+ # PROP AllowPerConfigDependencies 0
26
+ # PROP Scc_ProjName "Tile"
27
+ # PROP Scc_LocalPath ".."
28
+
29
+ !IF "$(CFG)" == "Tile - Win32 Release"
30
+
31
+ # PROP BASE Use_MFC 0
32
+ # PROP BASE Use_Debug_Libraries 0
33
+ # PROP BASE Output_Dir "Tile___Win32_Release"
34
+ # PROP BASE Intermediate_Dir "Tile___Win32_Release"
35
+ # PROP BASE Cmd_Line "NMAKE /f Tile.mak"
36
+ # PROP BASE Rebuild_Opt "/a"
37
+ # PROP BASE Target_File "Tile.exe"
38
+ # PROP BASE Bsc_Name "Tile.bsc"
39
+ # PROP BASE Target_Dir ""
40
+ # PROP Use_MFC 0
41
+ # PROP Use_Debug_Libraries 0
42
+ # PROP Output_Dir "Tile___Win32_Release"
43
+ # PROP Intermediate_Dir "Tile___Win32_Release"
44
+ # PROP Cmd_Line "nmake -f Makefile.vc INSTALLDIR=c:\opt\tcl TCLDIR=..\..\tcl84 TKDIR=..\..\tk84 OPTS=none all"
45
+ # PROP Rebuild_Opt "/a"
46
+ # PROP Target_File "Release/tile01.dll"
47
+ # PROP Bsc_Name ""
48
+ # PROP Target_Dir ""
49
+
50
+ !ELSEIF "$(CFG)" == "Tile - Win32 Debug"
51
+
52
+ # PROP BASE Use_MFC 0
53
+ # PROP BASE Use_Debug_Libraries 1
54
+ # PROP BASE Output_Dir "Tile___Win32_Debug"
55
+ # PROP BASE Intermediate_Dir "Tile___Win32_Debug"
56
+ # PROP BASE Cmd_Line "NMAKE /f Tile.mak"
57
+ # PROP BASE Rebuild_Opt "/a"
58
+ # PROP BASE Target_File "Tile.exe"
59
+ # PROP BASE Bsc_Name "Tile.bsc"
60
+ # PROP BASE Target_Dir ""
61
+ # PROP Use_MFC 0
62
+ # PROP Use_Debug_Libraries 1
63
+ # PROP Output_Dir "Tile___Win32_Debug"
64
+ # PROP Intermediate_Dir "Tile___Win32_Debug"
65
+ # PROP Cmd_Line "nmake -f Makefile.vc INSTALLDIR=c:\opt\tcl TCLDIR=..\..\tcl TKDIR=..\..\tk OPTS=symbols all"
66
+ # PROP Rebuild_Opt "/a"
67
+ # PROP Target_File "Debug/tile01g.dll"
68
+ # PROP Bsc_Name ""
69
+ # PROP Target_Dir ""
70
+
71
+ !ENDIF
72
+
73
+ # Begin Target
74
+
75
+ # Name "Tile - Win32 Release"
76
+ # Name "Tile - Win32 Debug"
77
+
78
+ !IF "$(CFG)" == "Tile - Win32 Release"
79
+
80
+ !ELSEIF "$(CFG)" == "Tile - Win32 Debug"
81
+
82
+ !ENDIF
83
+
84
+ # Begin Group "Source Files"
85
+
86
+ # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
87
+ # Begin Source File
88
+
89
+ SOURCE=..\generic\altTheme.c
90
+ # End Source File
91
+ # Begin Source File
92
+
93
+ SOURCE=..\generic\button.c
94
+ # End Source File
95
+ # Begin Source File
96
+
97
+ SOURCE=..\generic\cache.c
98
+ # End Source File
99
+ # Begin Source File
100
+
101
+ SOURCE=..\generic\frame.c
102
+ # End Source File
103
+ # Begin Source File
104
+
105
+ SOURCE=..\generic\layout.c
106
+ # End Source File
107
+ # Begin Source File
108
+
109
+ SOURCE=.\monitor.c
110
+ # End Source File
111
+ # Begin Source File
112
+
113
+ SOURCE=..\generic\notebook.c
114
+ # End Source File
115
+ # Begin Source File
116
+
117
+ SOURCE=..\generic\pixmapTheme.c
118
+ # End Source File
119
+ # Begin Source File
120
+
121
+ SOURCE=..\generic\scale.c
122
+ # End Source File
123
+ # Begin Source File
124
+
125
+ SOURCE=..\generic\scrollbar.c
126
+ # End Source File
127
+ # Begin Source File
128
+
129
+ SOURCE=..\generic\stepTheme.c
130
+ # End Source File
131
+ # Begin Source File
132
+
133
+ SOURCE=..\generic\tile.c
134
+ # End Source File
135
+ # Begin Source File
136
+
137
+ SOURCE=..\generic\tkElements.c
138
+ # End Source File
139
+ # Begin Source File
140
+
141
+ SOURCE=..\generic\tkstate.c
142
+ # End Source File
143
+ # Begin Source File
144
+
145
+ SOURCE=..\generic\tkTheme.c
146
+ # End Source File
147
+ # Begin Source File
148
+
149
+ SOURCE=..\generic\trace.c
150
+ # End Source File
151
+ # Begin Source File
152
+
153
+ SOURCE=..\generic\track.c
154
+ # End Source File
155
+ # Begin Source File
156
+
157
+ SOURCE=..\generic\widget.c
158
+ # End Source File
159
+ # Begin Source File
160
+
161
+ SOURCE=.\winTheme.c
162
+ # End Source File
163
+ # Begin Source File
164
+
165
+ SOURCE=.\xpTheme.c
166
+ # End Source File
167
+ # End Group
168
+ # Begin Group "Header Files"
169
+
170
+ # PROP Default_Filter "h;hpp;hxx;hm;inl"
171
+ # Begin Source File
172
+
173
+ SOURCE=..\generic\compat.h
174
+ # End Source File
175
+ # Begin Source File
176
+
177
+ SOURCE=..\generic\gunk.h
178
+ # End Source File
179
+ # Begin Source File
180
+
181
+ SOURCE=..\generic\tkTheme.h
182
+ # End Source File
183
+ # Begin Source File
184
+
185
+ SOURCE=..\generic\widget.h
186
+ # End Source File
187
+ # End Group
188
+ # Begin Group "Resource Files"
189
+
190
+ # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
191
+ # End Group
192
+ # Begin Group "library"
193
+
194
+ # PROP Default_Filter ".tcl"
195
+ # Begin Source File
196
+
197
+ SOURCE=..\library\altTheme.tcl
198
+ # End Source File
199
+ # Begin Source File
200
+
201
+ SOURCE=..\library\button.tcl
202
+ # End Source File
203
+ # Begin Source File
204
+
205
+ SOURCE=..\library\defaults.tcl
206
+ # End Source File
207
+ # Begin Source File
208
+
209
+ SOURCE=..\library\keynav.tcl
210
+ # End Source File
211
+ # Begin Source File
212
+
213
+ SOURCE=..\library\menubutton.tcl
214
+ # End Source File
215
+ # Begin Source File
216
+
217
+ SOURCE=..\library\notebook.tcl
218
+ # End Source File
219
+ # Begin Source File
220
+
221
+ SOURCE=..\library\scale.tcl
222
+ # End Source File
223
+ # Begin Source File
224
+
225
+ SOURCE=..\library\scrollbar.tcl
226
+ # End Source File
227
+ # Begin Source File
228
+
229
+ SOURCE=..\library\stepTheme.tcl
230
+ # End Source File
231
+ # Begin Source File
232
+
233
+ SOURCE=..\library\tile.tcl
234
+ # End Source File
235
+ # Begin Source File
236
+
237
+ SOURCE=..\library\winTheme.tcl
238
+ # End Source File
239
+ # Begin Source File
240
+
241
+ SOURCE=..\library\xpTheme.tcl
242
+ # End Source File
243
+ # End Group
244
+ # Begin Group "demos"
245
+
246
+ # PROP Default_Filter "*.tcl"
247
+ # Begin Source File
248
+
249
+ SOURCE=..\demos\demo.tcl
250
+ # End Source File
251
+ # End Group
252
+ # Begin Source File
253
+
254
+ SOURCE=.\makefile.vc
255
+ # End Source File
256
+ # Begin Source File
257
+
258
+ SOURCE=..\generic\TODO
259
+ # End Source File
260
+ # End Target
261
+ # End Project
@@ -0,0 +1,527 @@
1
+ # makefile.vc -- -*- Makefile -*-
2
+ #
3
+ # Microsoft Visual C++ makefile for use with nmake.exe v1.62+ (VC++ 5.0+)
4
+ #
5
+ # This makefile is based upon the Tcl 8.4 Makefile.vc and modified to
6
+ # make it suitable as a general package makefile. Look for the word EDIT
7
+ # which marks sections that may need modification. As a minumum you will
8
+ # need to change the PROJECT, DOTVERSION and DLLOBJS variables to values
9
+ # relevant to your package.
10
+ #
11
+ # See the file "license.terms" for information on usage and redistribution
12
+ # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13
+ #
14
+ # Copyright (c) 1995-1996 Sun Microsystems, Inc.
15
+ # Copyright (c) 1998-2000 Ajuba Solutions.
16
+ # Copyright (c) 2001 ActiveState Corporation.
17
+ # Copyright (c) 2001-2002 David Gravereaux.
18
+ # Copyright (c) 2003-2006 Pat Thoyts
19
+ #
20
+ #-------------------------------------------------------------------------
21
+ # RCS: @(#)makefile.vc,v 1.61 2007/12/16 18:20:55 jenglish Exp
22
+ #-------------------------------------------------------------------------
23
+
24
+ !if !defined(MSDEVDIR) && !defined(MSVCDIR) && !defined(VCToolkitInstallDir)
25
+ MSG = ^
26
+ You will need to run vcvars32.bat from Developer Studio, first, to setup^
27
+ the environment. Jump to this line to read the new instructions.
28
+ !error $(MSG)
29
+ !endif
30
+
31
+ #------------------------------------------------------------------------------
32
+ # HOW TO USE this makefile:
33
+ #
34
+ # 1) It is now necessary to have %MSVCDir% set in the environment. This is
35
+ # used as a check to see if vcvars32.bat had been run prior to running
36
+ # nmake or during the installation of Microsoft Visual C++, MSVCDir had
37
+ # been set globally and the PATH adjusted. Either way is valid.
38
+ #
39
+ # You'll need to run vcvars32.bat contained in the MsDev's vc(98)/bin
40
+ # directory to setup the proper environment, if needed, for your current
41
+ # setup. This is a needed bootstrap requirement and allows the swapping of
42
+ # different environments to be easier.
43
+ #
44
+ # 2) To use the Platform SDK (not expressly needed), run setenv.bat after
45
+ # vcvars32.bat according to the instructions for it. This can also turn on
46
+ # the 64-bit compiler, if your SDK has it.
47
+ #
48
+ # 3) Targets are:
49
+ # all -- Builds everything.
50
+ # <project> -- Builds the project (eg: nmake sample)
51
+ # test -- Builds and runs the test suite.
52
+ # install -- Installs the built binaries and libraries to $(INSTALLDIR)
53
+ # in an appropriate subdirectory.
54
+ # clean/realclean/distclean -- varying levels of cleaning.
55
+ #
56
+ # 4) Macros usable on the commandline:
57
+ #
58
+ # INSTALLDIR=<path>
59
+ # Sets where to install Tcl from the built binaries.
60
+ # C:\Progra~1\Tcl is assumed when not specified.
61
+ #
62
+ # OPTS=static,msvcrt,staticpkg,threads,symbols,profile,loimpact,none
63
+ # Sets special options for the core. The default is for none.
64
+ # Any combination of the above may be used (comma separated).
65
+ # 'none' will over-ride everything to nothing.
66
+ #
67
+ # static = Builds a static library of the core instead of a
68
+ # dll. The shell will be static (and large), as well.
69
+ # msvcrt = Effects the static option only to switch it from
70
+ # using libcmt(d) as the C runtime [by default] to
71
+ # msvcrt(d). This is useful for static embedding
72
+ # support.
73
+ # staticpkg = Effects the static option only to switch
74
+ # tclshXX.exe to have the dde and reg extension linked
75
+ # inside it.
76
+ # nothreads = Turns off multithreading support (not recommended)
77
+ # thrdalloc = Use the thread allocator (shared global free pool).
78
+ # symbols = Adds symbols for step debugging.
79
+ # profile = Adds profiling hooks. Map file is assumed.
80
+ # loimpact = Adds a flag for how NT treats the heap to keep memory
81
+ # in use, low. This is said to impact alloc performance.
82
+ #
83
+ # Package specific options:
84
+ # nouxtheme = Do not compile in support for WinXP themeing.
85
+ # nostubs = Link with the Tk library. This is required if building
86
+ # against Tk < 8.4.6 which doesn't support all the methods
87
+ # in the stubs table that we need.
88
+ # square = Include the sample 'square' widget.
89
+ #
90
+ # STATS=memdbg,compdbg,none
91
+ # Sets optional memory and bytecode compiler debugging code added
92
+ # to the core. The default is for none. Any combination of the
93
+ # above may be used (comma separated). 'none' will over-ride
94
+ # everything to nothing.
95
+ #
96
+ # memdbg = Enables the debugging memory allocator.
97
+ # compdbg = Enables byte compilation logging.
98
+ #
99
+ # MACHINE=(IX86|IA64|ALPHA)
100
+ # Set the machine type used for the compiler, linker, and
101
+ # resource compiler. This hook is needed to tell the tools
102
+ # when alternate platforms are requested. IX86 is the default
103
+ # when not specified.
104
+ #
105
+ # TMP_DIR=<path>
106
+ # OUT_DIR=<path>
107
+ # Hooks to allow the intermediate and output directories to be
108
+ # changed. $(OUT_DIR) is assumed to be
109
+ # $(BINROOT)\(Release|Debug) based on if symbols are requested.
110
+ # $(TMP_DIR) will de $(OUT_DIR)\<buildtype> by default.
111
+ #
112
+ # TESTPAT=<file>
113
+ # Reads the tests requested to be run from this file.
114
+ #
115
+ # CFG_ENCODING=encoding
116
+ # name of encoding for configuration information. Defaults
117
+ # to cp1252
118
+ #
119
+ # 5) Examples:
120
+ #
121
+ # Basic syntax of calling nmake looks like this:
122
+ # nmake [-nologo] -f makefile.vc [target|macrodef [target|macrodef] [...]]
123
+ #
124
+ # Standard (no frills)
125
+ # c:\tcl_src\win\>c:\progra~1\micros~1\vc98\bin\vcvars32.bat
126
+ # Setting environment for using Microsoft Visual C++ tools.
127
+ # c:\tcl_src\win\>nmake -f makefile.vc all
128
+ # c:\tcl_src\win\>nmake -f makefile.vc install INSTALLDIR=c:\progra~1\tcl
129
+ #
130
+ # Building for Win64
131
+ # c:\tcl_src\win\>c:\progra~1\micros~1\vc98\bin\vcvars32.bat
132
+ # Setting environment for using Microsoft Visual C++ tools.
133
+ # c:\tcl_src\win\>c:\progra~1\platfo~1\setenv.bat /pre64 /RETAIL
134
+ # Targeting Windows pre64 RETAIL
135
+ # c:\tcl_src\win\>nmake -f makefile.vc MACHINE=IA64
136
+ #
137
+ #------------------------------------------------------------------------------
138
+ #==============================================================================
139
+ ###############################################################################
140
+ #------------------------------------------------------------------------------
141
+
142
+ !if !exist("makefile.vc")
143
+ MSG = ^
144
+ You must run this makefile only from the directory it is in.^
145
+ Please `cd` to its location first.
146
+ !error $(MSG)
147
+ !endif
148
+
149
+ #-------------------------------------------------------------------------
150
+ # Project specific information (EDIT)
151
+ #
152
+ # You should edit this with the name and version of your project. This
153
+ # information is used to generate the name of the package library and
154
+ # it's install location.
155
+ #
156
+ # For example, the sample extension is going to build sample04.dll and
157
+ # would install it into $(INSTALLDIR)\lib\sample04
158
+ #
159
+ # You need to specify the object files that need to be linked into your
160
+ # binary here.
161
+ #
162
+ #-------------------------------------------------------------------------
163
+
164
+ PROJECT = tile
165
+ !include "rules.vc"
166
+
167
+ DOTVERSION = 0.8.2
168
+ VERSION = $(DOTVERSION:.=)
169
+ STUBPREFIX = ttkstub
170
+
171
+ DLLOBJS = \
172
+ $(TMP_DIR)\tile.obj \
173
+ $(TMP_DIR)\ttkStubInit.obj \
174
+ $(TMP_DIR)\tkElements.obj \
175
+ $(TMP_DIR)\label.obj \
176
+ $(TMP_DIR)\layout.obj \
177
+ $(TMP_DIR)\separator.obj \
178
+ $(TMP_DIR)\frame.obj \
179
+ $(TMP_DIR)\button.obj \
180
+ $(TMP_DIR)\scrollbar.obj \
181
+ $(TMP_DIR)\progress.obj \
182
+ $(TMP_DIR)\scale.obj \
183
+ $(TMP_DIR)\notebook.obj \
184
+ $(TMP_DIR)\paned.obj \
185
+ $(TMP_DIR)\entry.obj \
186
+ $(TMP_DIR)\treeview.obj \
187
+ $(TMP_DIR)\widget.obj \
188
+ $(TMP_DIR)\trace.obj \
189
+ $(TMP_DIR)\track.obj \
190
+ $(TMP_DIR)\blink.obj \
191
+ $(TMP_DIR)\scroll.obj \
192
+ $(TMP_DIR)\manager.obj \
193
+ $(TMP_DIR)\tagset.obj \
194
+ $(TMP_DIR)\tkstate.obj \
195
+ $(TMP_DIR)\altTheme.obj \
196
+ $(TMP_DIR)\classicTheme.obj \
197
+ $(TMP_DIR)\tkTheme.obj \
198
+ $(TMP_DIR)\cache.obj \
199
+ $(TMP_DIR)\clamTheme.obj \
200
+ $(TMP_DIR)\image.obj \
201
+ $(TMP_DIR)\winTheme.obj \
202
+ $(TMP_DIR)\xpTheme.obj \
203
+ $(TMP_DIR)\monitor.obj \
204
+ $(TMP_DIR)\tile.res
205
+
206
+ PRJSTUBOBJS = $(TMP_DIR)\ttkStubLib.obj
207
+
208
+ # Special make options.
209
+ !if [nmakehlp -f $(OPTS) "nostubs"]
210
+ NOSTUBS = 1
211
+ !endif
212
+
213
+ #-------------------------------------------------------------------------
214
+ # Target names and paths ( shouldn't need changing )
215
+ #-------------------------------------------------------------------------
216
+
217
+ BINROOT = .
218
+ ROOT = ..
219
+
220
+ !ifdef NOSTUBS
221
+ NS =ns
222
+ TMP_DIR =$(TMP_DIR)_NoStubs
223
+ OUT_DIR =$(OUT_DIR)_NoStubs
224
+ !else
225
+ NS =
226
+ !endif
227
+
228
+ PRJIMPLIB = $(OUT_DIR)\$(PROJECT)$(VERSION)$(SUFX).lib
229
+ PRJLIBNAME = $(PROJECT)$(VERSION)$(NS)$(SUFX).$(EXT)
230
+ PRJLIB = $(OUT_DIR)\$(PRJLIBNAME)
231
+
232
+ PRJSTUBLIBNAME = $(STUBPREFIX).lib
233
+ PRJSTUBLIB = $(OUT_DIR)\$(PRJSTUBLIBNAME)
234
+ PRJHEADERS = $(GENERICDIR)\tkTheme.h
235
+
236
+ ### Make sure we use backslash only.
237
+ PRJ_INSTALL_DIR = $(_INSTALLDIR)\$(PROJECT)$(DOTVERSION)
238
+ LIB_INSTALL_DIR = $(PRJ_INSTALL_DIR)
239
+ BIN_INSTALL_DIR = $(PRJ_INSTALL_DIR)
240
+ DOC_INSTALL_DIR = $(PRJ_INSTALL_DIR)
241
+ SCRIPT_INSTALL_DIR = $(PRJ_INSTALL_DIR)
242
+ DEMO_INSTALL_DIR = $(PRJ_INSTALL_DIR)
243
+ INCLUDE_INSTALL_DIR = $(_TCLDIR)\include
244
+
245
+ ### The following paths CANNOT have spaces in them.
246
+ GENERICDIR = $(ROOT)\generic
247
+ WINDIR = $(ROOT)\win
248
+ LIBDIR = $(ROOT)\library
249
+ DOCDIR = $(ROOT)\doc
250
+ TOOLSDIR = $(ROOT)\tools
251
+ COMPATDIR = $(ROOT)\compat
252
+
253
+ #---------------------------------------------------------------------
254
+ # Compile flags
255
+ #---------------------------------------------------------------------
256
+
257
+ !if !$(DEBUG)
258
+ !if $(OPTIMIZING)
259
+ ### This cranks the optimization level to maximize speed
260
+ cdebug = $(OPTIMIZATIONS)
261
+ !else
262
+ cdebug =
263
+ !endif
264
+ !else if "$(MACHINE)" == "IA64"
265
+ ### Warnings are too many, can't support warnings into errors.
266
+ cdebug = -Z7 -Od -GZ
267
+ !else
268
+ cdebug = -Z7 -WX -Od -GZ
269
+ !endif
270
+
271
+ ### Declarations common to all compiler options
272
+ cflags = -nologo -c -YX -Fp$(TMP_DIR)^\
273
+
274
+ # Warning level
275
+ !if $(FULLWARNINGS)
276
+ cflags = $(cflags) -W4
277
+ !else
278
+ cflags = $(cflags) -W3
279
+ !endif
280
+
281
+ !if $(PENT_0F_ERRATA)
282
+ cflags = $(cflags) -QI0f
283
+ !endif
284
+
285
+ !if $(ITAN_B_ERRATA)
286
+ cflags = $(cflags) -QIA64_Bx
287
+ !endif
288
+
289
+ !if $(MSVCRT)
290
+ !if $(DEBUG) && !$(UNCHECKED)
291
+ crt = -MDd
292
+ !else
293
+ crt = -MD
294
+ !endif
295
+ !else
296
+ !if $(DEBUG) && !$(UNCHECKED)
297
+ crt = -MTd
298
+ !else
299
+ crt = -MT
300
+ !endif
301
+ !endif
302
+
303
+ INCLUDES = $(TCL_INCLUDES) $(TK_INCLUDES) \
304
+ -I"$(WINDIR)" -I"$(GENERICDIR)"
305
+ BASE_CFLAGS = $(cflags) $(cdebug) $(crt) $(INCLUDES)
306
+ CON_CFLAGS = $(cflags) $(cdebug) $(crt) -DCONSOLE
307
+ TCL_CFLAGS = -DUSE_TCL_STUBS \
308
+ -DVERSION="\"$(DOTVERSION)\"" $(BASE_CFLAGS) $(OPTDEFINES)
309
+
310
+ !ifndef NOSTUBS
311
+ TCL_CFLAGS = $(TCL_CFLAGS) -DUSE_TK_STUBS
312
+ !endif
313
+
314
+ !if ![nmakehlp -f $(OPTS) "nouxtheme"]
315
+ TCL_CFLAGS = $(TCL_CFLAGS) -DHAVE_UXTHEME_H
316
+ !endif
317
+
318
+ !if [nmakehlp -f $(OPTS) "square"]
319
+ DLLOBJS = $(DLLOBJS) $(TMP_DIR)\square.obj
320
+ TCL_CFLAGS = $(TCL_CFLAGS) -DTTK_SQUARE_WIDGET
321
+ !endif
322
+
323
+
324
+ #---------------------------------------------------------------------
325
+ # Link flags
326
+ #---------------------------------------------------------------------
327
+
328
+ !if $(DEBUG)
329
+ ldebug = -debug:full -debugtype:cv
330
+ !else
331
+ ldebug = -release -opt:ref -opt:icf,3
332
+ !endif
333
+
334
+ ### Declarations common to all linker options
335
+ lflags = -nologo -machine:$(MACHINE) $(ldebug)
336
+
337
+ !if $(PROFILE)
338
+ lflags = $(lflags) -profile
339
+ !endif
340
+
341
+ !if $(ALIGN98_HACK) && !$(STATIC_BUILD)
342
+ ### Align sections for PE size savings.
343
+ lflags = $(lflags) -opt:nowin98
344
+ !else if !$(ALIGN98_HACK) && $(STATIC_BUILD)
345
+ ### Align sections for speed in loading by choosing the virtual page size.
346
+ lflags = $(lflags) -align:4096
347
+ !endif
348
+
349
+ !if $(LOIMPACT)
350
+ lflags = $(lflags) -ws:aggressive
351
+ !endif
352
+
353
+ dlllflags = $(lflags) -dll
354
+ conlflags = $(lflags) -subsystem:console
355
+ guilflags = $(lflags) -subsystem:windows
356
+
357
+ !ifdef NOSTUBS
358
+ baselibs = $(TCLSTUBLIB) $(TKIMPLIB) user32.lib gdi32.lib
359
+ !else
360
+ baselibs = $(TCLSTUBLIB) $(TKSTUBLIB) user32.lib gdi32.lib
361
+ !endif
362
+
363
+ #---------------------------------------------------------------------
364
+ # TclTest flags
365
+ #---------------------------------------------------------------------
366
+
367
+ !IF "$(TESTPAT)" != ""
368
+ TESTFLAGS = -file $(TESTPAT)
369
+ !ENDIF
370
+
371
+ #---------------------------------------------------------------------
372
+ # Project specific targets (EDIT)
373
+ #---------------------------------------------------------------------
374
+
375
+ all: setup $(PROJECT)
376
+ $(PROJECT): setup $(PRJLIB) $(PRJSTUBLIB)
377
+
378
+ install: install-binaries install-libraries install-docs install-demos
379
+
380
+
381
+ test: setup $(PROJECT)
382
+ set TILE_LIBRARY=$(ROOT)/library
383
+ !if "$(OS)" == "Windows_NT" || "$(MSVCDIR)" == "IDE"
384
+ $(TCLSH) <<
385
+ package require Tk
386
+ set env(TILE_LIBRARY) [file normalize [file join $(ROOT) library]]
387
+ load [file join [file normalize {$(OUT_DIR)}] $(PRJLIBNAME)] Tile
388
+ set argv $(TESTFLAGS)
389
+ source [file normalize [file join $(ROOT) tests all.tcl]]
390
+ <<
391
+ !else
392
+ @echo Please wait while the tests are collected...
393
+ $(TCLSH) "$(ROOT)/tests/all.tcl" $(TESTFLAGS) > tests.log
394
+ type tests.log | more
395
+ !endif
396
+
397
+ demo: setup $(PROJECT)
398
+ $(WISH) <<
399
+ set env(TILE_LIBRARY) [file normalize [file join $(ROOT) library]]
400
+ load [file join [file normalize {$(OUT_DIR)}] $(PRJLIBNAME)] Tile
401
+ source [file join [file normalize {$(ROOT)}] demos demo.tcl]
402
+ <<
403
+
404
+
405
+ shell: setup $(PROJECT)
406
+ $(WISH) <<
407
+ set env(TILE_LIBRARY) [file normalize [file join $(ROOT) library]]
408
+ load [file join [file normalize {$(OUT_DIR)}] $(PRJLIBNAME)] Tile
409
+ console show
410
+ <<
411
+
412
+ setup:
413
+ @if not exist $(OUT_DIR)\nul mkdir $(OUT_DIR)
414
+ @if not exist $(TMP_DIR)\nul mkdir $(TMP_DIR)
415
+
416
+ $(PRJLIB): $(DLLOBJS)
417
+ $(link32) $(dlllflags) -out:$@ $(baselibs) @<<
418
+ $**
419
+ <<
420
+ -@del $*.exp
421
+
422
+ $(PRJSTUBLIB): $(PRJSTUBOBJS)
423
+ $(lib32) -nologo -out:$@ $(PRJSTUBOBJS)
424
+
425
+ #---------------------------------------------------------------------
426
+ # Implicit rules
427
+ #---------------------------------------------------------------------
428
+
429
+ {$(WINDIR)}.c{$(TMP_DIR)}.obj::
430
+ $(cc32) $(TCL_CFLAGS) -DBUILD_$(PROJECT) -Fo$(TMP_DIR)\ @<<
431
+ $<
432
+ <<
433
+
434
+ {$(GENERICDIR)}.c{$(TMP_DIR)}.obj::
435
+ $(cc32) $(TCL_CFLAGS) -DBUILD_$(PROJECT) -Fo$(TMP_DIR)\ @<<
436
+ $<
437
+ <<
438
+
439
+ {$(COMPATDIR)}.c{$(TMP_DIR)}.obj::
440
+ $(cc32) $(TCL_CFLAGS) -DBUILD_$(PROJECT) -Fo$(TMP_DIR)\ @<<
441
+ $<
442
+ <<
443
+
444
+ {$(WINDIR)}.rc{$(TMP_DIR)}.res:
445
+ $(rc32) -fo $@ -r -i "$(GENERICDIR)" -D__WIN32__ \
446
+ -DCOMMAVERSION=$(DOTVERSION:.=,),0 \
447
+ -DDOTVERSION=\"$(DOTVERSION)\" \
448
+ -DVERSION=\"$(VERSION)$(SUFX)\" \
449
+ !if $(DEBUG)
450
+ -d DEBUG \
451
+ !endif
452
+ !if $(TCL_THREADS)
453
+ -d TCL_THREADS \
454
+ !endif
455
+ !if $(STATIC_BUILD)
456
+ -d STATIC_BUILD \
457
+ !endif
458
+ $<
459
+
460
+ .SUFFIXES:
461
+ .SUFFIXES:.c .rc
462
+
463
+ #---------------------------------------------------------------------
464
+ # Installation. (EDIT)
465
+ #
466
+ # You may need to modify this section to reflect the final distribution
467
+ # of your files and possibly to generate documentation.
468
+ #
469
+ #---------------------------------------------------------------------
470
+
471
+ install-binaries:
472
+ @echo Installing binaries to '$(SCRIPT_INSTALL_DIR)'
473
+ @if not exist "$(SCRIPT_INSTALL_DIR)\" mkdir "$(SCRIPT_INSTALL_DIR)" #"
474
+ @$(CPY) $(PRJLIB) "$(SCRIPT_INSTALL_DIR)" > NUL
475
+ @$(CPY) $(PRJSTUBLIB) "$(SCRIPT_INSTALL_DIR)" > NUL
476
+ @$(CPY) $(PRJHEADERS) "$(SCRIPT_INSTALL_DIR)" > NUL
477
+
478
+ install-libraries:
479
+ @echo Installing libraries to '$(SCRIPT_INSTALL_DIR)'
480
+ @if exist $(LIBDIR)\nul $(CPY) $(LIBDIR)\*.tcl "$(SCRIPT_INSTALL_DIR)" >NUL
481
+ @echo Installing package index in '$(SCRIPT_INSTALL_DIR)'
482
+ @type << >"$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
483
+ # This package is built with Tk stubs for 8.4.6+ but we also provide a version
484
+ # for that is linked to tk84.dll for Tk 8.4.0-8.4.5.
485
+ # The package cannot be used with Tk < 8.4
486
+ #
487
+ if {![package vsatisfies [package provide Tcl] 8.4]} {return}
488
+ if {[package vsatisfies [package provide Tcl] 8.5]
489
+ || [package vsatisfies [info patchlevel] 8.4.6]} {
490
+ package ifneeded $(PROJECT) $(DOTVERSION) \
491
+ "namespace eval tile { variable library [list $$dir] };\
492
+ load \[file join [list $$dir] $(PROJECT)$(VERSION).$(EXT)\]"
493
+ } else {
494
+ package ifneeded $(PROJECT) $(DOTVERSION) \
495
+ "namespace eval tile { variable library [list $$dir] };\
496
+ load \[file join [list $$dir] $(PROJECT)$(VERSION)ns.$(EXT)\]"
497
+ }
498
+ <<
499
+
500
+ install-docs:
501
+ @echo Installing documentation files to '$(DOC_INSTALL_DIR)'
502
+ @if exist $(ROOT)\README.txt $(CPY) "$(ROOT)\README.txt" "$(SCRIPT_INSTALL_DIR)" >NUL
503
+ @if exist $(ROOT)\license.terms $(CPY) "$(ROOT)\license.terms" "$(SCRIPT_INSTALL_DIR)" >NUL
504
+
505
+ install-demos:
506
+ @echo Installing sample applications in '$(DEMO_INSTALL_DIR)\demos'
507
+ @if not exist "$(DEMO_INSTALL_DIR)\demos" mkdir "$(DEMO_INSTALL_DIR)\demos"
508
+ @$(CPY) "$(ROOT)\demos" "$(DEMO_INSTALL_DIR)\demos" >NUL
509
+ @if not exist "$(DEMO_INSTALL_DIR)\demos\themes" mkdir "$(DEMO_INSTALL_DIR)\demos\themes"
510
+ @$(CPY) "$(ROOT)\demos\themes" "$(DEMO_INSTALL_DIR)\demos\themes" >NUL
511
+ @if not exist "$(DEMO_INSTALL_DIR)\demos\themes\blue" mkdir "$(DEMO_INSTALL_DIR)\demos\themes\blue"
512
+ @$(CPY) "$(ROOT)\demos\themes\blue" "$(DEMO_INSTALL_DIR)\demos\themes\blue" >NUL
513
+
514
+ #---------------------------------------------------------------------
515
+ # Clean up
516
+ #---------------------------------------------------------------------
517
+
518
+ clean:
519
+ @if exist $(TMP_DIR)\nul $(RMDIR) $(TMP_DIR)
520
+ @if exist $(WINDIR)\version.vc del $(WINDIR)\version.vc
521
+
522
+ realclean: clean
523
+ @if exist $(OUT_DIR)\nul $(RMDIR) $(OUT_DIR)
524
+
525
+ distclean: realclean
526
+ @if exist $(WINDIR)\nmakehlp.exe del $(WINDIR)\nmakehlp.exe
527
+ @if exist $(WINDIR)\nmakehlp.obj del $(WINDIR)\nmakehlp.obj