makefile.wat 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. # =========================================================================
  2. # This makefile was generated by
  3. # Bakefile 0.2.9 (http://www.bakefile.org)
  4. # Do not modify, all changes will be overwritten!
  5. # =========================================================================
  6. !include ../../../build/msw/config.wat
  7. # -------------------------------------------------------------------------
  8. # Do not modify the rest of this file!
  9. # -------------------------------------------------------------------------
  10. # Speed up compilation a bit:
  11. !ifdef __LOADDLL__
  12. ! loaddll wcc wccd
  13. ! loaddll wccaxp wccdaxp
  14. ! loaddll wcc386 wccd386
  15. ! loaddll wpp wppdi86
  16. ! loaddll wppaxp wppdaxp
  17. ! loaddll wpp386 wppd386
  18. ! if $(__VERSION__) >= 1280
  19. ! loaddll wlink wlinkd
  20. ! else
  21. ! loaddll wlink wlink
  22. ! endif
  23. ! loaddll wlib wlibd
  24. !endif
  25. # We need these variables in some bakefile-made rules:
  26. WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
  27. ### Conditionally set variables: ###
  28. PORTNAME =
  29. !ifeq USE_GUI 0
  30. PORTNAME = base
  31. !endif
  32. !ifeq USE_GUI 1
  33. PORTNAME = msw$(TOOLKIT_VERSION)
  34. !endif
  35. COMPILER_VERSION =
  36. !ifeq OFFICIAL_BUILD 1
  37. COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
  38. !endif
  39. WXDEBUGFLAG =
  40. !ifeq BUILD debug
  41. WXDEBUGFLAG = d
  42. !endif
  43. WXUNICODEFLAG =
  44. !ifeq UNICODE 1
  45. WXUNICODEFLAG = u
  46. !endif
  47. WXUNIVNAME =
  48. !ifeq WXUNIV 1
  49. WXUNIVNAME = univ
  50. !endif
  51. WXDLLFLAG =
  52. !ifeq SHARED 1
  53. WXDLLFLAG = dll
  54. !endif
  55. LIBTYPE_SUFFIX =
  56. !ifeq SHARED 0
  57. LIBTYPE_SUFFIX = lib
  58. !endif
  59. !ifeq SHARED 1
  60. LIBTYPE_SUFFIX = dll
  61. !endif
  62. EXTRALIBS_FOR_BASE =
  63. !ifeq MONOLITHIC 0
  64. EXTRALIBS_FOR_BASE =
  65. !endif
  66. !ifeq MONOLITHIC 1
  67. EXTRALIBS_FOR_BASE =
  68. !endif
  69. __penguin___depname =
  70. !ifeq USE_OPENGL 1
  71. __penguin___depname = $(OBJS)\penguin.exe
  72. !endif
  73. __DEBUGINFO_0 =
  74. !ifeq BUILD debug
  75. !ifeq DEBUG_INFO default
  76. __DEBUGINFO_0 = -d2
  77. !endif
  78. !endif
  79. !ifeq BUILD release
  80. !ifeq DEBUG_INFO default
  81. __DEBUGINFO_0 = -d0
  82. !endif
  83. !endif
  84. !ifeq DEBUG_INFO 0
  85. __DEBUGINFO_0 = -d0
  86. !endif
  87. !ifeq DEBUG_INFO 1
  88. __DEBUGINFO_0 = -d2
  89. !endif
  90. __DEBUGINFO_1 =
  91. !ifeq BUILD debug
  92. !ifeq DEBUG_INFO default
  93. __DEBUGINFO_1 = debug all
  94. !endif
  95. !endif
  96. !ifeq BUILD release
  97. !ifeq DEBUG_INFO default
  98. __DEBUGINFO_1 =
  99. !endif
  100. !endif
  101. !ifeq DEBUG_INFO 0
  102. __DEBUGINFO_1 =
  103. !endif
  104. !ifeq DEBUG_INFO 1
  105. __DEBUGINFO_1 = debug all
  106. !endif
  107. __OPTIMIZEFLAG_2 =
  108. !ifeq BUILD debug
  109. __OPTIMIZEFLAG_2 = -od
  110. !endif
  111. !ifeq BUILD release
  112. __OPTIMIZEFLAG_2 = -ot -ox
  113. !endif
  114. __THREADSFLAG_5 =
  115. !ifeq USE_THREADS 0
  116. __THREADSFLAG_5 =
  117. !endif
  118. !ifeq USE_THREADS 1
  119. __THREADSFLAG_5 = -bm
  120. !endif
  121. __RUNTIME_LIBS_6 =
  122. !ifeq RUNTIME_LIBS dynamic
  123. __RUNTIME_LIBS_6 = -br
  124. !endif
  125. !ifeq RUNTIME_LIBS static
  126. __RUNTIME_LIBS_6 =
  127. !endif
  128. __RTTIFLAG_7 =
  129. !ifeq USE_RTTI 0
  130. __RTTIFLAG_7 =
  131. !endif
  132. !ifeq USE_RTTI 1
  133. __RTTIFLAG_7 = -xr
  134. !endif
  135. __EXCEPTIONSFLAG_8 =
  136. !ifeq USE_EXCEPTIONS 0
  137. __EXCEPTIONSFLAG_8 =
  138. !endif
  139. !ifeq USE_EXCEPTIONS 1
  140. __EXCEPTIONSFLAG_8 = -xs
  141. !endif
  142. __WXLIB_CORE_p =
  143. !ifeq MONOLITHIC 0
  144. __WXLIB_CORE_p = &
  145. wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
  146. !endif
  147. __WXLIB_BASE_p =
  148. !ifeq MONOLITHIC 0
  149. __WXLIB_BASE_p = &
  150. wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
  151. !endif
  152. __WXLIB_MONO_p =
  153. !ifeq MONOLITHIC 1
  154. __WXLIB_MONO_p = &
  155. wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
  156. !endif
  157. __LIB_SCINTILLA_IF_MONO_p =
  158. !ifeq MONOLITHIC 1
  159. !ifeq USE_STC 1
  160. __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
  161. !endif
  162. !endif
  163. __LIB_TIFF_p =
  164. !ifeq USE_GUI 1
  165. __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
  166. !endif
  167. __LIB_JPEG_p =
  168. !ifeq USE_GUI 1
  169. __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
  170. !endif
  171. __LIB_PNG_p =
  172. !ifeq USE_GUI 1
  173. __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
  174. !endif
  175. __CAIRO_LIB_p =
  176. !ifeq USE_CAIRO 1
  177. __CAIRO_LIB_p = cairo.lib
  178. !endif
  179. ____CAIRO_LIBDIR_FILENAMES_p =
  180. !ifeq USE_CAIRO 1
  181. ____CAIRO_LIBDIR_FILENAMES_p = libpath $(CAIRO_ROOT)\lib
  182. !endif
  183. __WXUNIV_DEFINE_p =
  184. !ifeq WXUNIV 1
  185. __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
  186. !endif
  187. __DEBUG_DEFINE_p =
  188. !ifeq DEBUG_FLAG 0
  189. __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
  190. !endif
  191. __NDEBUG_DEFINE_p =
  192. !ifeq BUILD release
  193. __NDEBUG_DEFINE_p = -dNDEBUG
  194. !endif
  195. __EXCEPTIONS_DEFINE_p =
  196. !ifeq USE_EXCEPTIONS 0
  197. __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
  198. !endif
  199. __RTTI_DEFINE_p =
  200. !ifeq USE_RTTI 0
  201. __RTTI_DEFINE_p = -dwxNO_RTTI
  202. !endif
  203. __THREAD_DEFINE_p =
  204. !ifeq USE_THREADS 0
  205. __THREAD_DEFINE_p = -dwxNO_THREADS
  206. !endif
  207. __UNICODE_DEFINE_p =
  208. !ifeq UNICODE 0
  209. __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
  210. !endif
  211. !ifeq UNICODE 1
  212. __UNICODE_DEFINE_p = -d_UNICODE
  213. !endif
  214. ____CAIRO_INCLUDEDIR_FILENAMES =
  215. !ifeq USE_CAIRO 1
  216. ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
  217. !endif
  218. __DLLFLAG_p =
  219. !ifeq SHARED 1
  220. __DLLFLAG_p = -dWXUSINGDLL
  221. !endif
  222. ### Variables: ###
  223. WX_RELEASE_NODOT = 30
  224. COMPILER_PREFIX = wat
  225. OBJS = &
  226. $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
  227. LIBDIRNAME = &
  228. .\..\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
  229. SETUPHDIR = &
  230. $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
  231. PENGUIN_CFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &
  232. $(__RUNTIME_LIBS_6) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
  233. $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
  234. $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
  235. -i=.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 &
  236. -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\..\samples -dNOPCH &
  237. $(CPPFLAGS) $(CFLAGS)
  238. PENGUIN_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &
  239. $(__RUNTIME_LIBS_6) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
  240. $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
  241. $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
  242. -i=.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 &
  243. -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\..\samples -dNOPCH &
  244. $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS)
  245. PENGUIN_OBJECTS = &
  246. $(OBJS)\penguin_penguin.obj &
  247. $(OBJS)\penguin_dxfrenderer.obj &
  248. $(OBJS)\penguin_trackball.obj
  249. all : $(OBJS)
  250. $(OBJS) :
  251. -if not exist $(OBJS) mkdir $(OBJS)
  252. ### Targets: ###
  253. all : .SYMBOLIC $(__penguin___depname) data
  254. clean : .SYMBOLIC
  255. -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
  256. -if exist $(OBJS)\*.res del $(OBJS)\*.res
  257. -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
  258. -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
  259. -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
  260. -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
  261. !ifeq USE_OPENGL 1
  262. $(OBJS)\penguin.exe : $(PENGUIN_OBJECTS) $(OBJS)\penguin_sample.res
  263. @%create $(OBJS)\penguin.lbc
  264. @%append $(OBJS)\penguin.lbc option quiet
  265. @%append $(OBJS)\penguin.lbc name $^@
  266. @%append $(OBJS)\penguin.lbc option caseexact
  267. @%append $(OBJS)\penguin.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS)
  268. @for %i in ($(PENGUIN_OBJECTS)) do @%append $(OBJS)\penguin.lbc file %i
  269. @for %i in ( wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gl.lib opengl32.lib glu32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib) do @%append $(OBJS)\penguin.lbc library %i
  270. @%append $(OBJS)\penguin.lbc option resource=$(OBJS)\penguin_sample.res
  271. @for %i in () do @%append $(OBJS)\penguin.lbc option stack=%i
  272. wlink @$(OBJS)\penguin.lbc
  273. !endif
  274. data : .SYMBOLIC
  275. if not exist $(OBJS) mkdir $(OBJS)
  276. for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
  277. $(OBJS)\penguin_sample.res : .AUTODEPEND .\..\..\..\samples\sample.rc
  278. wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\..\samples -dNOPCH $<
  279. $(OBJS)\penguin_penguin.obj : .AUTODEPEND .\penguin.cpp
  280. $(CXX) -bt=nt -zq -fo=$^@ $(PENGUIN_CXXFLAGS) $<
  281. $(OBJS)\penguin_dxfrenderer.obj : .AUTODEPEND .\dxfrenderer.cpp
  282. $(CXX) -bt=nt -zq -fo=$^@ $(PENGUIN_CXXFLAGS) $<
  283. $(OBJS)\penguin_trackball.obj : .AUTODEPEND .\trackball.c
  284. $(CC) -bt=nt -zq -fo=$^@ $(PENGUIN_CFLAGS) $<