Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.X11 29KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. # $Id: Makefile.X11,v 1.95 2003/10/20 16:48:14 kschultz Exp $
  2. # Mesa 3-D graphics library
  3. # Version: 5.1
  4. #
  5. # Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
  6. #
  7. # Permission is hereby granted, free of charge, to any person obtaining a
  8. # copy of this software and associated documentation files (the "Software"),
  9. # to deal in the Software without restriction, including without limitation
  10. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  11. # and/or sell copies of the Software, and to permit persons to whom the
  12. # Software is furnished to do so, subject to the following conditions:
  13. #
  14. # The above copyright notice and this permission notice shall be included
  15. # in all copies or substantial portions of the Software.
  16. #
  17. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  18. # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  20. # BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  21. # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23. # Top-level makefile for Mesa
  24. # To add a new configuration for your system add it to the list below
  25. # then update the Make-config file.
  26. SHELL = /bin/sh
  27. default:
  28. @echo "Type one of the following:"
  29. @echo " make aix for IBM RS/6000 with AIX"
  30. @echo " make aix-sl for IBM RS/6000, make shared libs"
  31. @echo " make beos-r4 for BeOS R4"
  32. @echo " make cygnus for Win95/NT using Cygnus-Win32"
  33. @echo " make cygnus-linux for Win95/NT using Cygnus-Win32 under Linux"
  34. @echo " make darwin for Darwin - Mac OS X"
  35. @echo " make freebsd for FreeBSD systems with GCC"
  36. @echo " make freebsd-386 for FreeBSD systems with GCC, w/ Intel assembly"
  37. @echo " make gcc-sl for a generic system with GCC for shared libs"
  38. @echo " make hpux9 for HP systems with HPUX 9.x"
  39. @echo " make hpux9-sl for HP systems with HPUX 9.x, make shared libs"
  40. @echo " make hpux9-gcc for HP systems with HPUX 9.x using GCC"
  41. @echo " make hpux9-gcc-sl for HP systems with HPUX 9.x, GCC, make shared libs"
  42. @echo " make hpux10 for HP systems with HPUX 10.x and 11.x"
  43. @echo " make hpux10-sl for HP systems with HPUX 10.x and 11.x, shared libs"
  44. @echo " make hpux10-gcc for HP systems with HPUX 10.x w/ GCC"
  45. @echo " make hpux10-gcc-sl for HP systems with HPUX 10.x w/ GCC, shared libs"
  46. @echo " make irix6-o32 for SGI systems with IRIX 6.x, make o32-bit libs"
  47. @echo " make irix6-o32-dso for SGI systems with IRIX 6.x, make o32-bit DSOs"
  48. @echo " make irix6-n32 for SGI systems with IRIX 6.x, make n32-bit libs"
  49. @echo " make irix6-n32-dso for SGI systems with IRIX 6.x, make n32-bit DSOs"
  50. @echo " make irix6-gcc-n32-sl for SGI systems with IRIX 6.x, GCC, make n32 DSOs"
  51. @echo " make irix6-64 for SGI systems with IRIX 6.x, make 64-bit libs"
  52. @echo " make irix6-64-dso for SGI systems with IRIX 6.x, make 64-bit DSOs"
  53. @echo " make linux for Linux"
  54. @echo " make linux-x86 for Linux with x86 optimizations"
  55. @echo " make linux-ggi for Linux with libggi driver"
  56. @echo " make linux-x86-ggi for Linux with libggi driver and x86 optimizations"
  57. @echo " make linux-glide for Linux with 3Dfx Glide driver"
  58. @echo " make linux-x86-glide for Linux with 3Dfx Glide driver and x86 opts"
  59. @echo " make linux-alpha for Linux with Alpha optimizations"
  60. @echo " make linux-alpha-static for Linux with Alpha opts, make static libs"
  61. @echo " make linux-ppc for Linux with PowerPC opts"
  62. @echo " make linux-ppc-static for Linux with PowerPC opts, make static libs"
  63. @echo " make linux-sparc for Linux with Sparc optimzations"
  64. @echo " make linux-sparc5 for Linux with Sparc5 optimizations"
  65. @echo " make linux-sparc-ultra for Linux with UltraSparc optimizations"
  66. @echo " make linux-osmesa16 for 16-bit/channel OSMesa"
  67. @echo " make linux-osmesa16-static for 16-bit/channel OSMesa, make static libs"
  68. @echo " make linux-osmesa32 for 32-bit/channel OSMesa"
  69. @echo " make linux-solo for Linux standalone with dri drivers"
  70. @echo " make linux-icc for Linux with the Intel C/C++ compiler"
  71. @echo " make lynxos for LynxOS systems with GCC"
  72. @echo " make mklinux for Linux on Power Macintosh"
  73. @echo " make netbsd for NetBSD 1.0 systems with GCC"
  74. @echo " make openbsd for OpenBSD systems"
  75. @echo " make openstep for OpenStep/MacOSX Server systems"
  76. @echo " make osf1 for DEC Alpha systems with OSF/1"
  77. @echo " make qnx for QNX V4 systems with Watcom compiler"
  78. @echo " make solaris-x86 for PCs with Solaris"
  79. @echo " make solaris-x86-gcc for PCs with Solaris using GCC"
  80. @echo " make sunos4 for Suns with SunOS 4.x"
  81. @echo " make sunos4-sl for Suns with SunOS 4.x, make shared libs"
  82. @echo " make sunos4-gcc for Suns with SunOS 4.x and GCC"
  83. @echo " make sunos4-gcc-sl for Suns with SunOS 4.x, GCC, make shared libs"
  84. @echo " make sunos5 for Suns with SunOS 5.x"
  85. @echo " make sunos5-smp for Suns with SunOS 5.x, SMP optimization"
  86. @echo " make sunos5-gcc for Suns with SunOS 5.x and GCC"
  87. @echo " make ultrix-gcc for DEC systems with Ultrix and GCC"
  88. @echo " make unixware for PCs running UnixWare"
  89. @echo " make unixware-shared for PCs running UnixWare, shared libs"
  90. @echo " make clean remove .o files"
  91. @echo " make realclean remove .o, library and executable files"
  92. # XXX we may have to split up this group of targets into those that
  93. # have a C++ compiler and those that don't for the SI-GLU library.
  94. aix aix-sl darwin freebsd freebsd-386 gcc-sl \
  95. hpux9 hpux9-sl hpux9-gcc hpux9-gcc-sl \
  96. hpux10 hpux10-sl hpux10-gcc hpux10-gcc-sl \
  97. linux linux-debug \
  98. linux-x86 linux-x86-sse linux-icc linux-x86-static linux-x86-debug \
  99. linux-glide linux-x86-glide linux-glide-debug \
  100. linux-alpha-static linux-alpha \
  101. linux-ppc-static linux-ppc \
  102. linux-sparc linux-sparc5 linux-sparc-ultra \
  103. mklinux netbsd osf1 openbsd qnx \
  104. solaris-x86 solaris-x86-gcc \
  105. sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl sunos4-gcc-x11r6-sl \
  106. sunos5 sunos5-smp sunos5-gcc \
  107. ultrix-gcc unixware:
  108. -mkdir lib
  109. if [ -d src/mesa ] ; then touch src/mesa/depend ; fi
  110. if [ -d src/glu/sgi ] ; then touch src/glu/sgi/depend ; fi
  111. if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
  112. if [ -d src/glw ] ; then touch src/glw/depend ; fi
  113. if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.X11 $@ ; fi
  114. if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.X11 $@ ; fi
  115. if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
  116. if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
  117. if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
  118. if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
  119. if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
  120. if [ -d src/glw ] ; then cd src/glw ; $(MAKE) -f Makefile.X11 $@ ; fi
  121. gcc-mesa-sl:
  122. if [ -d src ] ; then cd src ; $(MAKE) -f Makefile.X11 $@ ; fi
  123. irix6-o32 irix6-o32-dso irix6-n32 irix6-n32-dso irix6-gcc-n32-sl:
  124. -mkdir lib32
  125. if [ -d src/mesa ] ; then touch src/mesa/depend ; fi
  126. if [ -d src/glu/sgi ] ; then touch src/glu/sgi/depend ; fi
  127. if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
  128. if [ -d src/glw ] ; then touch src/glw/depend ; fi
  129. if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.X11 $@ ; fi
  130. if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.X11 $@ ; fi
  131. if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
  132. if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
  133. if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
  134. if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
  135. if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
  136. if [ -d src/glw ] ; then cd src/glw; $(MAKE) -f Makefile.X11 $@ ; fi
  137. irix6-64 irix6-64-dso:
  138. -mkdir lib64
  139. if [ -d src/mesa ] ; then touch src/mesa/depend ; fi
  140. if [ -d src/glu/sgi ] ; then touch src/glu/sgi/depend ; fi
  141. if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
  142. if [ -d src/glw ] ; then touch src/glw/depend ; fi
  143. if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.X11 $@ ; fi
  144. if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.X11 $@ ; fi
  145. if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
  146. if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
  147. if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
  148. if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
  149. if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
  150. if [ -d src/glw ] ; then cd src/glw; $(MAKE) -f Makefile.X11 $@ ; fi
  151. beos-r4:
  152. -mkdir lib
  153. -rm src/mesa/depend
  154. touch src/mesa/depend
  155. -rm src/glu/sgi/depend
  156. touch src/glu/sgi/depend
  157. if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
  158. if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
  159. if [ -d src/glut/beos ] ; then cd src/glut/beos ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
  160. if [ -d src/glut/beos ] ; then cp src/glut/beos/obj*/libglut.so lib ; fi
  161. if [ -d progs/beos ] ; then cd progs/beos ; $(MAKE) ; fi
  162. if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
  163. if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
  164. if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
  165. cygnus cygnus-linux:
  166. -mkdir lib
  167. touch src/depend
  168. touch src-glu/depend
  169. if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.X11 $@ ; fi
  170. if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.X11 $@ ; fi
  171. if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
  172. if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
  173. if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
  174. if [ -d src/glw ] ; then cd src/glw ; $(MAKE) -f Makefile.X11 $@ ; fi
  175. openstep:
  176. -mkdir lib
  177. cd src/mesa ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@
  178. cd src/glu/sgi ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@
  179. linux-ggi linux-x86-ggi:
  180. -mkdir lib
  181. touch src/depend
  182. touch src/glu/sgi/depend
  183. if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
  184. if [ -d src/glw ] ; then touch src/glw/depend ; fi
  185. if [ -d src/mesa ] ; then cd src ; $(MAKE) -f Makefile.X11 $@ ; fi
  186. if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.X11 $@ ; fi
  187. if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
  188. if [ -d ggi/demos ] ; then cd ggi/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
  189. if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
  190. if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
  191. if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
  192. if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
  193. if [ -d src/glw ] ; then cd src/glw; $(MAKE) -f Makefile.X11 $@ ; fi
  194. # if you change GGI_DEST please change it in ggimesa.conf, too.
  195. DESTDIR=/usr/local
  196. GGI_DEST=lib/ggi/mesa
  197. linux-ggi-install linux-x86-ggi-install:
  198. install -d $(DESTDIR)/$(GGI_DEST)/default $(DESTDIR)/$(GGI_DEST)/display $(DESTDIR)/etc/ggi
  199. install -m 0755 src/GGI/default/*.so $(DESTDIR)/$(GGI_DEST)/default
  200. install -m 0755 src/GGI/display/*.so $(DESTDIR)/$(GGI_DEST)/display
  201. install -m 0644 src/GGI/ggimesa.conf $(DESTDIR)/etc/ggi
  202. # if [ -z "`grep ggimesa $(DESTDIR)/etc/ggi/libggi.conf`" ]; then \
  203. # echo ".include $(DESTDIR)/etc/ggi/ggimesa.conf" >> $(DESTDIR)/etc/ggi/libggi.conf ; \
  204. # fi
  205. linux-osmesa16 linux-osmesa16-static linux-osmesa32:
  206. -mkdir lib
  207. if [ -d src/mesa ] ; then touch src/mesa/depend ; fi
  208. if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.OSMesa16 $@ ; fi
  209. linux-solo:
  210. -mkdir lib
  211. if [ -d src/mesa ] ; then touch src/mesa/depend ; fi
  212. if [ -d src/glx/mini ] ; then touch src/glx/mini/depend ; fi
  213. if [ -d src/glu/mini ] ; then touch src/glu/mini/depend ; fi
  214. if [ -d src/glut/mini ] ; then touch src/glut/mini/depend ; fi
  215. if [ -d src/mesa/drivers/dri/r200 ] ; then touch src/mesa/drivers/dri/r200/depend ; fi
  216. if [ -d src/mesa/drivers/dri/r128 ] ; then touch src/mesa/drivers/dri/r128/depend ; fi
  217. if [ -d src/mesa/drivers/dri/radeon ] ; then touch src/mesa/drivers/dri/radeon/depend ; fi
  218. if [ -d src/mesa/drivers/dri/mga ] ; then touch src/mesa/drivers/dri/mga/depend ; fi
  219. if [ -d src/mesa/drivers/dri/i810 ] ; then touch src/mesa/drivers/dri/i810/depend ; fi
  220. if [ -d src/mesa/drivers/dri/i830 ] ; then touch src/mesa/drivers/dri/i830/depend ; fi
  221. if [ -d src/mesa/drivers/dri/sis ] ; then touch src/mesa/drivers/dri/sis/depend ; fi
  222. if [ -d src/mesa/drivers/dri/gamma ] ; then touch src/mesa/drivers/dri/gamma/depend ; fi
  223. if [ -d src/mesa/drivers/dri/fb ] ; then touch src/mesa/drivers/dri/fb/depend ; fi
  224. if [ -d src/glut/mini ] ; then touch src/glut/mini/depend ; fi
  225. if [ -d progs/miniglx ] ; then touch progs/miniglx/depend ; fi
  226. if [ -d progs/tests ] ; then touch progs/tests/depend ; fi
  227. if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.X11 $@ ; fi
  228. if [ -d src/mesa/drivers/dri/r200 ] ; then cd src/mesa/drivers/dri/r200 ; $(MAKE) -f Makefile.X11 $@ ; fi
  229. if [ -d src/mesa/drivers/dri/r128 ] ; then cd src/mesa/drivers/dri/r128 ; $(MAKE) -f Makefile.X11 $@ ; fi
  230. if [ -d src/mesa/drivers/dri/radeon ] ; then cd src/mesa/drivers/dri/radeon ; $(MAKE) -f Makefile.X11 $@ ; fi
  231. if [ -d src/mesa/drivers/dri/mga ] ; then cd src/mesa/drivers/dri/mga ; $(MAKE) -f Makefile.X11 $@ ; fi
  232. if [ -d src/mesa/drivers/dri/i810 ] ; then cd src/mesa/drivers/dri/i810 ; $(MAKE) -f Makefile.X11 $@ ; fi
  233. if [ -d src/mesa/drivers/dri/i830 ] ; then cd src/mesa/drivers/dri/i830 ; $(MAKE) -f Makefile.X11 $@ ; fi
  234. if [ -d src/mesa/drivers/dri/sis ] ; then cd src/mesa/drivers/dri/sis ; $(MAKE) -f Makefile.X11 $@ ; fi
  235. if [ -d src/mesa/drivers/dri/gamma ] ; then cd src/mesa/drivers/dri/gamma ; $(MAKE) -f Makefile.X11 $@ ; fi
  236. if [ -d src/mesa/drivers/dri/fb ] ; then cd src/mesa/drivers/dri/fb ; $(MAKE) -f Makefile.X11 $@ ; fi
  237. if [ -d src/glx/mini ] ; then cd src/glx/mini ; $(MAKE) -f Makefile.X11 $@ ; fi
  238. if [ -d src/glu/mini ] ; then cd src/glu/mini ; $(MAKE) -f Makefile.X11 $@ ; fi
  239. if [ -d src/glut/mini ] ; then cd src/glut/mini ; $(MAKE) -f Makefile.X11 $@ ; fi
  240. if [ -d progs/miniglx ] ; then cd progs/miniglx ; $(MAKE) -f Makefile.X11 $@ ; fi
  241. if [ -d progs/tests ] ; then cd progs/tests ; $(MAKE) -f Makefile.X11 $@ ; fi
  242. if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
  243. if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
  244. if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
  245. if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
  246. # Remove .o files, emacs backup files, etc.
  247. clean:
  248. if ! [ -f src/mesa/depend ] ; then touch src/mesa/depend ; fi
  249. if ! [ -f src/mesa/drivers/dri/r200/depend ]; then touch src/mesa/drivers/dri/r200/depend; fi
  250. if ! [ -f src/mesa/drivers/dri/r128/depend ]; then touch src/mesa/drivers/dri/r128/depend; fi
  251. if ! [ -f src/mesa/drivers/dri/radeon/depend ]; then touch src/mesa/drivers/dri/radeon/depend; fi
  252. if ! [ -f src/mesa/drivers/dri/mga/depend ]; then touch src/mesa/drivers/dri/mga/depend; fi
  253. if ! [ -f src/mesa/drivers/dri/fb/depend ]; then touch src/mesa/drivers/dri/fb/depend; fi
  254. if ! [ -f src/glu/mesa/depend ] ; then touch src/glu/mesa/depend ; fi
  255. if ! [ -f src/glu/sgi/depend ] ; then touch src/glu/sgi/depend ; fi
  256. if ! [ -f src/glu/mini/depend ] ; then touch src/glu/mini/depend ; fi
  257. if ! [ -f src/glut/glx/depend ] ; then touch src/glut/glx/depend ; fi
  258. if ! [ -f src/glut/mini/depend ] ; then touch src/glut/mini/depend ; fi
  259. if ! [ -f src/glx/mini/depend ] ; then touch src/glx/mini/depend ; fi
  260. if ! [ -f progs/tests/depend ] ; then touch progs/tests/depend ; fi
  261. if ! [ -f progs/miniglx/depend ] ; then touch progs/miniglx/depend ; fi
  262. -rm -f include/GL/*~
  263. cd src/mesa && $(MAKE) -f Makefile.X11 $@ || true
  264. cd src/mesa/drivers/dri/r200 && $(MAKE) -f Makefile.X11 $@ || true
  265. cd src/mesa/drivers/dri/r128 && $(MAKE) -f Makefile.X11 $@ || true
  266. cd src/mesa/drivers/dri/radeon && $(MAKE) -f Makefile.X11 $@ || true
  267. cd src/mesa/drivers/dri/mga && $(MAKE) -f Makefile.X11 $@ || true
  268. cd src/mesa/drivers/dri/fb && $(MAKE) -f Makefile.X11 $@ || true
  269. cd src/glu/mesa && $(MAKE) -f Makefile.X11 $@ || true
  270. cd src/glu/sgi && $(MAKE) -f Makefile.X11 $@ || true
  271. cd src/glu/mini && $(MAKE) -f Makefile.X11 $@ || true
  272. cd src/glut/glx && $(MAKE) -f Makefile.X11 $@ || true
  273. cd src/glut/mini && $(MAKE) -f Makefile.X11 $@ || true
  274. cd src/glw && $(MAKE) -f Makefile.X11 $@ || true
  275. cd src/glx/mini && $(MAKE) -f Makefile.X11 $@ || true
  276. cd progs/demos && $(MAKE) -f Makefile.X11 $@ || true
  277. cd progs/redbook && $(MAKE) -f Makefile.X11 $@ || true
  278. cd progs/xdemos && $(MAKE) -f Makefile.X11 $@ || true
  279. cd progs/samples && $(MAKE) -f Makefile.X11 $@ || true
  280. cd progs/tests && $(MAKE) -f Makefile.X11 $@ || true
  281. cd progs/miniglx && $(MAKE) -f Makefile.X11 $@ || true
  282. if [ -f src/mesa/depend ] ; then rm src/mesa/depend ; fi
  283. if [ -f src/mesa/drivers/dri/r200/depend ]; then rm -f src/mesa/drivers/dri/r200/depend; fi
  284. if [ -f src/mesa/drivers/dri/r128/depend ]; then rm -f src/mesa/drivers/dri/r128/depend; fi
  285. if [ -f src/mesa/drivers/dri/radeon/depend ]; then rm -f src/mesa/drivers/dri/radeon/depend; fi
  286. if [ -f src/mesa/drivers/dri/mga/depend ]; then rm -f src/mesa/drivers/dri/mga/depend; fi
  287. if [ -f src/mesa/drivers/dri/fb/depend ]; then rm -f src/mesa/drivers/dri/fb/depend; fi
  288. if [ -f src/glu/mesa/depend ] ; then rm -f src/glu/mesa/depend ; fi
  289. if [ -f src/glu/sgi/depend ] ; then rm -f src/glu/sgi/depend ; fi
  290. if [ -f src/glu/mini/depend ] ; then rm -f src/glu/mini/depend ; fi
  291. if [ -f src/glut/glx/depend ] ; then rm -f src/glut/glx/depend ; fi
  292. if [ -f src/glut/mini/depend ] ; then rm -f src/glut/mini/depend ; fi
  293. if [ -f src/glx/mini/depend ] ; then rm -f src/glx/mini/depend ; fi
  294. if [ -f progs/tests/depend ] ; then rm -f progs/tests/depend ; fi
  295. if [ -f progs/miniglx/depend ] ; then rm -f progs/miniglx/depend ; fi
  296. # Remove everything that can be remade
  297. realclean: clean
  298. -rm -fr lib lib32 lib64
  299. cd progs/demos && $(MAKE) -f Makefile.X11 realclean || true
  300. cd progs/xdemos && $(MAKE) -f Makefile.X11 realclean || true
  301. cd progs/redbook && $(MAKE) -f Makefile.X11 realclean || true
  302. cd progs/samples && $(MAKE) -f Makefile.X11 realclean || true
  303. # Remove everything not in CVS
  304. cvsclean: realclean
  305. -rm -f acinclude.m4 aclocal.m4
  306. -rm -f conf.h conf.h.in config.guess config.log config.status
  307. -rm -f config.sub configure
  308. -rm -f install-sh libtool ltmain.sh Makefile.in
  309. -rm -f missing mkinstalldirs stamp-h stamp-h.in
  310. DIRECTORY = Mesa-5.1
  311. LIB_NAME = MesaLib-5.1
  312. DEMO_NAME = MesaDemos-5.1
  313. GLU_NAME = MesaGLU-5.1
  314. GLUT_NAME = GLUT-3.7
  315. LIB_FILES = \
  316. $(DIRECTORY)/Makefile* \
  317. $(DIRECTORY)/Make-config \
  318. $(DIRECTORY)/descrip.mms \
  319. $(DIRECTORY)/mms-config. \
  320. $(DIRECTORY)/Mesa.dsw \
  321. $(DIRECTORY)/bin/mklib* \
  322. $(DIRECTORY)/docs/*.html \
  323. $(DIRECTORY)/docs/COPYING \
  324. $(DIRECTORY)/docs/INSTALL.GNU \
  325. $(DIRECTORY)/docs/README.* \
  326. $(DIRECTORY)/docs/RELNOTES* \
  327. $(DIRECTORY)/docs/VERSIONS \
  328. $(DIRECTORY)/docs/*.spec \
  329. $(DIRECTORY)/include/GL/internal/glcore.h \
  330. $(DIRECTORY)/include/GL/dmesa.h \
  331. $(DIRECTORY)/include/GL/amesa.h \
  332. $(DIRECTORY)/include/GL/fxmesa.h \
  333. $(DIRECTORY)/include/GL/ggimesa.h \
  334. $(DIRECTORY)/include/GL/gl.h \
  335. $(DIRECTORY)/include/GL/glext.h \
  336. $(DIRECTORY)/include/GL/gl_mangle.h \
  337. $(DIRECTORY)/include/GL/glu.h \
  338. $(DIRECTORY)/include/GL/glu_mangle.h \
  339. $(DIRECTORY)/include/GL/glx.h \
  340. $(DIRECTORY)/include/GL/glxext.h \
  341. $(DIRECTORY)/include/GL/glx_mangle.h \
  342. $(DIRECTORY)/include/GL/mesa_wgl.h \
  343. $(DIRECTORY)/include/GL/mglmesa.h \
  344. $(DIRECTORY)/include/GL/osmesa.h \
  345. $(DIRECTORY)/include/GL/svgamesa.h \
  346. $(DIRECTORY)/include/GL/ugl*.h \
  347. $(DIRECTORY)/include/GL/vms_x_fix.h \
  348. $(DIRECTORY)/include/GL/wmesa.h \
  349. $(DIRECTORY)/include/GL/xmesa.h \
  350. $(DIRECTORY)/include/GL/xmesa_x.h \
  351. $(DIRECTORY)/include/GL/xmesa_xf86.h \
  352. $(DIRECTORY)/src/mesa/Makefile* \
  353. $(DIRECTORY)/src/mesa/descrip.mms \
  354. $(DIRECTORY)/src/mesa/depend \
  355. $(DIRECTORY)/src/mesa/main/*.[chS] \
  356. $(DIRECTORY)/src/mesa/main/main.dsp \
  357. $(DIRECTORY)/src/mesa/glapi/*.[chS] \
  358. $(DIRECTORY)/src/mesa/glapi/glapi.dsp \
  359. $(DIRECTORY)/src/mesa/array_cache/*.[ch] \
  360. $(DIRECTORY)/src/mesa/array_cache/array_cache.dsp \
  361. $(DIRECTORY)/src/mesa/math/*.[ch] \
  362. $(DIRECTORY)/src/mesa/math/math.dsp \
  363. $(DIRECTORY)/src/mesa/swrast/*.[ch] \
  364. $(DIRECTORY)/src/mesa/swrast/swrast.dsp \
  365. $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
  366. $(DIRECTORY)/src/mesa/swrast_setup/swrast_setup.dsp \
  367. $(DIRECTORY)/src/mesa/tnl/*.[ch] \
  368. $(DIRECTORY)/src/mesa/tnl/tnl.dsp \
  369. $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
  370. $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
  371. $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
  372. $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
  373. $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
  374. $(DIRECTORY)/src/mesa/drivers/dos/mga/*.[ch] \
  375. $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
  376. $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
  377. $(DIRECTORY)/src/mesa/drivers/glide/*.def \
  378. $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
  379. $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \
  380. $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \
  381. $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \
  382. $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
  383. $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
  384. $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
  385. $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
  386. $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
  387. $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.dsp \
  388. $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
  389. $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
  390. $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
  391. $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
  392. $(DIRECTORY)/src/mesa/drivers/windows/*/*.dsp \
  393. $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
  394. $(DIRECTORY)/src/mesa/sparc/*.[chS] \
  395. $(DIRECTORY)/src/mesa/x86/*.[ch] \
  396. $(DIRECTORY)/src/mesa/x86/*.S \
  397. $(DIRECTORY)/src/glu/sgi/Makefile.X11 \
  398. $(DIRECTORY)/src/glu/sgi/Makefile.win \
  399. $(DIRECTORY)/src/glu/sgi/Makefile.DJ \
  400. $(DIRECTORY)/src/glu/sgi/cc*.txt \
  401. $(DIRECTORY)/src/glu/sgi/glu.def \
  402. $(DIRECTORY)/src/glu/sgi/glu.dsp \
  403. $(DIRECTORY)/src/glu/sgi/dummy.cc \
  404. $(DIRECTORY)/src/glu/sgi/descrip.mms \
  405. $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
  406. $(DIRECTORY)/src/glu/sgi/include/gluos.h \
  407. $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
  408. $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
  409. $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
  410. $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
  411. $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
  412. $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
  413. $(DIRECTORY)/src/glu/sgi/libtess/README \
  414. $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
  415. $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
  416. $(DIRECTORY)/src/glu/sgi/libutil/*.[ch] \
  417. $(DIRECTORY)/src/glu/mesa/README[12] \
  418. $(DIRECTORY)/src/glu/mesa/Makefile* \
  419. $(DIRECTORY)/src/glu/mesa/descrip.mms \
  420. $(DIRECTORY)/src/glu/mesa/mms_depend \
  421. $(DIRECTORY)/src/glu/mesa/*.def \
  422. $(DIRECTORY)/src/glu/mesa/depend \
  423. $(DIRECTORY)/src/glu/mesa/*.[ch] \
  424. $(DIRECTORY)/src/glw/*.[ch] \
  425. $(DIRECTORY)/src/glw/Makefile* \
  426. $(DIRECTORY)/src/glw/README \
  427. $(DIRECTORY)/progs/util/README \
  428. $(DIRECTORY)/progs/util/*.[ch] \
  429. $(DIRECTORY)/progs/util/sampleMakefile \
  430. $(DIRECTORY)/vms/analyze_map.com \
  431. $(DIRECTORY)/vms/xlib.opt \
  432. $(DIRECTORY)/vms/xlib_share.opt
  433. DEMO_FILES = \
  434. $(DIRECTORY)/include/GL/glut.h \
  435. $(DIRECTORY)/include/GL/glutf90.h \
  436. $(DIRECTORY)/src/glut/glx/Makefile* \
  437. $(DIRECTORY)/src/glut/glx/depend \
  438. $(DIRECTORY)/src/glut/glx/*def \
  439. $(DIRECTORY)/src/glut/glx/descrip.mms \
  440. $(DIRECTORY)/src/glut/glx/mms_depend \
  441. $(DIRECTORY)/src/glut/glx/glut.dsp \
  442. $(DIRECTORY)/src/glut/glx/*.[ch] \
  443. $(DIRECTORY)/src/glut/dos/*.[ch] \
  444. $(DIRECTORY)/src/glut/dos/Makefile.DJ \
  445. $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
  446. $(DIRECTORY)/progs/images/* \
  447. $(DIRECTORY)/progs/demos/Makefile* \
  448. $(DIRECTORY)/progs/demos/descrip.mms \
  449. $(DIRECTORY)/progs/demos/*.[ch] \
  450. $(DIRECTORY)/progs/demos/*.cxx \
  451. $(DIRECTORY)/progs/demos/*.dat \
  452. $(DIRECTORY)/progs/demos/README \
  453. $(DIRECTORY)/progs/demos/Windows/* \
  454. $(DIRECTORY)/progs/xdemos/Makefile* \
  455. $(DIRECTORY)/progs/xdemos/descrip.mms \
  456. $(DIRECTORY)/progs/xdemos/*.[chf] \
  457. $(DIRECTORY)/progs/redbook/Makefile* \
  458. $(DIRECTORY)/progs/redbook/README \
  459. $(DIRECTORY)/progs/redbook/*.[ch] \
  460. $(DIRECTORY)/progs/samples/Makefile* \
  461. $(DIRECTORY)/progs/samples/README \
  462. $(DIRECTORY)/progs/samples/*.c \
  463. $(DIRECTORY)/progs/windml/Makefile.ugl \
  464. $(DIRECTORY)/progs/windml/*.c \
  465. $(DIRECTORY)/progs/windml/*.bmp \
  466. $(DIRECTORY)/progs/ggi/*.c
  467. SI_GLU_FILES = \
  468. $(DIRECTORY)/Makefile* \
  469. $(DIRECTORY)/Make-config \
  470. $(DIRECTORY)/bin/mklib* \
  471. $(DIRECTORY)/include/GL/glu.h \
  472. $(DIRECTORY)/src/glu/sgi/Makefile.X11 \
  473. $(DIRECTORY)/src/glu/sgi/include/gluos.h \
  474. $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
  475. $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
  476. $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
  477. $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
  478. $(DIRECTORY)/src/glu/sgi/libnurbs/nurbstess/*.h \
  479. $(DIRECTORY)/src/glu/sgi/libnurbs/nurbstess/*.cc \
  480. $(DIRECTORY)/src/glu/sgi/libtess/README \
  481. $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
  482. $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
  483. $(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
  484. GLU_FILES = \
  485. $(DIRECTORY)/Makefile* \
  486. $(DIRECTORY)/Make-config \
  487. $(DIRECTORY)/bin/mklib* \
  488. $(DIRECTORY)/include/GL/gl.h \
  489. $(DIRECTORY)/include/GL/gl_mangle.h \
  490. $(DIRECTORY)/include/GL/glext.h \
  491. $(DIRECTORY)/include/GL/glu.h \
  492. $(DIRECTORY)/include/GL/glu_mangle.h \
  493. $(DIRECTORY)/src/glu/mesa/README[12] \
  494. $(DIRECTORY)/src/glu/mesa/Makefile* \
  495. $(DIRECTORY)/src/glu/mesa/descrip.mms \
  496. $(DIRECTORY)/src/glu/mesa/mms_depend \
  497. $(DIRECTORY)/src/glu/mesa/*.def \
  498. $(DIRECTORY)/src/glu/mesa/depend \
  499. $(DIRECTORY)/src/glu/mesa/*.[ch]
  500. GLUT_FILES = \
  501. $(DIRECTORY)/Makefile* \
  502. $(DIRECTORY)/Make-config \
  503. $(DIRECTORY)/bin/mklib* \
  504. $(DIRECTORY)/include/GL/gl.h \
  505. $(DIRECTORY)/include/GL/gl_mangle.h \
  506. $(DIRECTORY)/include/GL/glext.h \
  507. $(DIRECTORY)/include/GL/glu.h \
  508. $(DIRECTORY)/include/GL/glu_mangle.h \
  509. $(DIRECTORY)/include/GL/glut.h \
  510. $(DIRECTORY)/include/GL/glutf90.h \
  511. $(DIRECTORY)/src/glut/glx/Makefile* \
  512. $(DIRECTORY)/src/glut/glx/depend \
  513. $(DIRECTORY)/src/glut/glx/*def \
  514. $(DIRECTORY)/src/glut/glx/descrip.mms \
  515. $(DIRECTORY)/src/glut/glx/mms_depend \
  516. $(DIRECTORY)/src/glut/glx/*.[ch]
  517. lib_gz:
  518. cp Makefile.X11 Makefile ; \
  519. cd .. ; \
  520. tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
  521. gzip $(LIB_NAME).tar ; \
  522. mv $(LIB_NAME).tar.gz $(DIRECTORY)
  523. demo_gz:
  524. cd .. ; \
  525. tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
  526. gzip $(DEMO_NAME).tar ; \
  527. mv $(DEMO_NAME).tar.gz $(DIRECTORY)
  528. lib_bz2:
  529. cp Makefile.X11 Makefile ; \
  530. cd .. ; \
  531. tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
  532. bzip2 $(LIB_NAME).tar ; \
  533. mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
  534. demo_bz2:
  535. cd .. ; \
  536. tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
  537. bzip2 $(DEMO_NAME).tar ; \
  538. mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
  539. lib_zip:
  540. -rm $(LIB_NAME).zip ; \
  541. cp Makefile.X11 Makefile ; \
  542. cd .. ; \
  543. zip -r $(LIB_NAME).zip $(LIB_FILES) ; \
  544. mv $(LIB_NAME).zip $(DIRECTORY)
  545. demo_zip:
  546. -rm $(DEMO_NAME).zip ; \
  547. cd .. ; \
  548. zip -r $(DEMO_NAME).zip $(DEMO_FILES) ; \
  549. mv $(DEMO_NAME).zip $(DIRECTORY)
  550. md5:
  551. @-md5sum $(LIB_NAME).tar.gz
  552. @-md5sum $(LIB_NAME).tar.bz2
  553. @-md5sum $(LIB_NAME).zip
  554. @-md5sum $(DEMO_NAME).tar.gz
  555. @-md5sum $(DEMO_NAME).tar.bz2
  556. @-md5sum $(DEMO_NAME).zip
  557. # Everything for new Mesa release:
  558. tarballs: lib_gz demo_gz lib_bz2 demo_bz2 lib_zip demo_zip md5
  559. # not used
  560. glu_gz:
  561. cp Makefile.X11 Makefile ; \
  562. cd .. ; \
  563. tar -cvf $(GLU_NAME).tar $(GLU_FILES) ; \
  564. gzip $(GLU_NAME).tar ; \
  565. mv $(GLU_NAME).tar.gz $(DIRECTORY)
  566. glut_gz:
  567. cp Makefile.X11 Makefile ; \
  568. cd .. ; \
  569. tar -cvf $(GLUT_NAME).tar $(GLUT_FILES) ; \
  570. gzip $(GLUT_NAME).tar ; \
  571. mv $(GLUT_NAME).tar.gz $(DIRECTORY)