makefile.wat 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. #
  2. # "$Id: makefile.wat 7563 2010-04-28 03:15:47Z greg.ercolano $"
  3. #
  4. # Library makefile for the Fast Light Tool Kit (FLTK).
  5. #
  6. # Copyright 1998-2004 by Bill Spitzak and others.
  7. #
  8. # This library is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU Library General Public
  10. # License as published by the Free Software Foundation; either
  11. # version 2 of the License, or (at your option) any later version.
  12. #
  13. # This library is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. # Library General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Library General Public
  19. # License along with this library; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  21. # USA.
  22. #
  23. # Please report all bugs and problems on the following page:
  24. #
  25. # http://www.fltk.org/str.php
  26. #
  27. CPPFILES = &
  28. Fl.obj &
  29. Fl_Adjuster.obj &
  30. Fl_Bitmap.obj &
  31. Fl_Browser.obj &
  32. Fl_Browser_.obj &
  33. Fl_Browser_load.obj &
  34. Fl_Box.obj &
  35. Fl_Button.obj &
  36. Fl_Chart.obj &
  37. Fl_Check_Browser.obj &
  38. Fl_Check_Button.obj &
  39. Fl_Choice.obj &
  40. Fl_Clock.obj &
  41. Fl_Color_Chooser.obj &
  42. Fl_Counter.obj &
  43. Fl_Dial.obj &
  44. Fl_Double_Window.obj &
  45. Fl_File_Browser.obj &
  46. Fl_File_Chooser.obj &
  47. Fl_File_Chooser2.obj &
  48. Fl_File_Icon.obj &
  49. Fl_File_Input.obj &
  50. Fl_Group.obj &
  51. Fl_Help_View.obj &
  52. Fl_Image.obj &
  53. Fl_Input.obj &
  54. Fl_Input_.obj &
  55. Fl_Light_Button.obj &
  56. Fl_Menu.obj &
  57. Fl_Menu_.obj &
  58. Fl_Menu_Bar.obj &
  59. Fl_Sys_Menu_Bar.obj &
  60. Fl_Menu_Button.obj &
  61. Fl_Menu_Window.obj &
  62. Fl_Menu_add.obj &
  63. Fl_Menu_global.obj &
  64. Fl_Multi_Label.obj &
  65. Fl_Native_File_Chooser.obj &
  66. Fl_Overlay_Window.obj &
  67. Fl_Pack.obj &
  68. Fl_Pixmap.obj &
  69. Fl_Positioner.obj &
  70. Fl_Preferences.obj &
  71. Fl_Progress.obj &
  72. Fl_Repeat_Button.obj &
  73. Fl_Return_Button.obj &
  74. Fl_Roller.obj &
  75. Fl_Round_Button.obj &
  76. Fl_Scroll.obj &
  77. Fl_Scrollbar.obj &
  78. Fl_Shared_Image.obj &
  79. Fl_Single_Window.obj &
  80. Fl_Slider.obj &
  81. Fl_Tabs.obj &
  82. Fl_Text_Buffer.obj &
  83. Fl_Text_Display.obj &
  84. Fl_Text_Editor.obj &
  85. Fl_Tile.obj &
  86. Fl_Tiled_Image.obj &
  87. Fl_Tooltip.obj &
  88. Fl_Valuator.obj &
  89. Fl_Value_Input.obj &
  90. Fl_Value_Output.obj &
  91. Fl_Value_Slider.obj &
  92. Fl_Widget.obj &
  93. Fl_Window.obj &
  94. Fl_Window_fullscreen.obj &
  95. Fl_Window_hotspot.obj &
  96. Fl_Window_iconize.obj &
  97. Fl_Wizard.obj &
  98. Fl_XBM_Image.obj &
  99. Fl_XPM_Image.obj &
  100. Fl_abort.obj &
  101. Fl_add_idle.obj &
  102. Fl_arg.obj &
  103. Fl_compose.obj &
  104. Fl_display.obj &
  105. Fl_get_key.obj &
  106. Fl_get_system_colors.obj &
  107. Fl_grab.obj &
  108. Fl_lock.obj &
  109. Fl_own_colormap.obj &
  110. Fl_visual.obj &
  111. Fl_x.obj &
  112. filename_absolute.obj &
  113. filename_expand.obj &
  114. filename_ext.obj &
  115. filename_isdir.obj &
  116. filename_list.obj &
  117. filename_match.obj &
  118. filename_setext.obj &
  119. fl_arc.obj &
  120. fl_arci.obj &
  121. fl_ask.obj &
  122. fl_boxtype.obj &
  123. fl_color.obj &
  124. fl_cursor.obj &
  125. fl_curve.obj &
  126. fl_diamond_box.obj &
  127. fl_dnd.obj &
  128. fl_draw.obj &
  129. fl_draw_image.obj &
  130. fl_draw_pixmap.obj &
  131. fl_encoding_latin1.obj &
  132. fl_encoding_mac_roman.obj &
  133. fl_engraved_label.obj &
  134. fl_file_dir.obj &
  135. fl_font.obj &
  136. fl_gtk.obj &
  137. fl_labeltype.obj &
  138. fl_line_style.obj &
  139. fl_open_uri.obj &
  140. fl_oval_box.obj &
  141. fl_overlay.obj &
  142. fl_overlay_visual.obj &
  143. fl_plastic.obj &
  144. fl_read_image.obj &
  145. fl_rect.obj &
  146. fl_round_box.obj &
  147. fl_rounded_box.obj &
  148. fl_set_font.obj &
  149. fl_set_fonts.obj &
  150. fl_scroll_area.obj &
  151. fl_shadow_box.obj &
  152. fl_shortcut.obj &
  153. fl_show_colormap.obj &
  154. fl_symbols.obj &
  155. fl_vertex.obj &
  156. screen_xywh.obj
  157. FLCPPFILES = &
  158. forms_compatability.obj &
  159. forms_bitmap.obj &
  160. forms_free.obj &
  161. forms_fselect.obj &
  162. forms_pixmap.obj &
  163. forms_timer.obj
  164. GLCPPFILES = &
  165. Fl_Gl_Choice.obj &
  166. Fl_Gl_Overlay.obj &
  167. Fl_Gl_Window.obj &
  168. freeglut_geometry.obj &
  169. freeglut_stroke_mono_roman.obj &
  170. freeglut_stroke_roman.obj &
  171. freeglut_teapot.obj &
  172. gl_draw.obj &
  173. gl_start.obj &
  174. glut_compatability.obj &
  175. glut_font.obj
  176. IMGCPPFILES = &
  177. fl_images_core.obj &
  178. Fl_BMP_Image.obj &
  179. Fl_File_Icon2.obj &
  180. Fl_GIF_Image.obj &
  181. Fl_Help_Dialog.obj &
  182. Fl_JPEG_Image.obj &
  183. Fl_PNG_Image.obj &
  184. Fl_PNM_Image.obj
  185. CFILES = fl_call_main.obj flstring.obj scandir.obj numericsort.obj vsnprintf.obj
  186. ################################################################
  187. !include ../watcom.mif
  188. OBJECTS = $(CPPFILES) $(CFILES)
  189. FLOBJECTS = $(FLCPPFILES)
  190. GLOBJECTS = $(GLCPPFILES)
  191. IMGOBJECTS = $(IMGCPPFILES)
  192. # The four basic fltk libraries are defined in ../watcom.mif, so that appliactions
  193. # can also use them.
  194. all: $(LIBNAME) &
  195. $(LIBNAMEFL) &
  196. $(LIBNAMEGL) &
  197. $(LIBNAMEIMG)
  198. # $(DSONAME) &
  199. # $(FLDSONAME) &
  200. # $(GLDSONAME) &
  201. # $(IMGDSONAME)
  202. $(LIBNAME): $(OBJECTS)
  203. $(LIB) $(LIBOPTS) $@ $<
  204. $(LIBNAMEFL): $(FLOBJECTS)
  205. $(LIB) $(LIBOPTS) $@ $<
  206. $(LIBNAMEGL): $(GLOBJECTS)
  207. $(LIB) $(LIBOPTS) $@ $<
  208. $(LIBNAMEIMG): $(IMGOBJECTS)
  209. $(LIB) $(LIBOPTS) $@ $<
  210. #
  211. # Clean all directories
  212. #
  213. clean : .SYMBOLIC
  214. @echo Cleaning up.
  215. CLEANEXTS = exe map sym obj lk1
  216. @for %a in ($(CLEANEXTS)) do -rm -f $(ODIR)\*.%a
  217. -rm -f *.err
  218. -rm -f $(LIBNAME)
  219. -rm -f $(LIBNAMEFL)
  220. -rm -f $(LIBNAMEGL)
  221. -rm -f $(LIBNAMEIMG)