Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 1 | # Top-level Mesa makefile |
| 2 | |
| 3 | TOP = . |
| 4 | |
| 5 | SUBDIRS = src progs |
| 6 | |
| 7 | |
| 8 | default: $(TOP)/configs/current |
| 9 | @for dir in $(SUBDIRS) ; do \ |
Eric Anholt | 2fb5d15 | 2004-06-01 00:06:14 +0000 | [diff] [blame] | 10 | (cd $$dir ; $(MAKE)) || exit 1 ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 11 | done |
| 12 | |
| 13 | |
Brian Paul | 6d50d91 | 2004-07-01 15:32:51 +0000 | [diff] [blame] | 14 | doxygen: |
| 15 | (cd doxygen ; make) ; \ |
| 16 | |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 17 | clean: |
| 18 | @for dir in $(SUBDIRS) ; do \ |
Eric Anholt | 2fb5d15 | 2004-06-01 00:06:14 +0000 | [diff] [blame] | 19 | (cd $$dir ; $(MAKE) clean) ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 20 | done |
| 21 | |
| 22 | |
Brian Paul | 46727c7 | 2004-03-26 20:31:05 +0000 | [diff] [blame] | 23 | realclean: |
| 24 | touch $(TOP)/configs/current |
Eric Anholt | 2fb5d15 | 2004-06-01 00:06:14 +0000 | [diff] [blame] | 25 | $(MAKE) clean |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 26 | -rm -rf lib* |
| 27 | -rm -f $(TOP)/configs/current |
Keith Whitwell | ae68c32 | 2004-12-15 11:03:41 +0000 | [diff] [blame] | 28 | -rm -f `find . -name \*.o` |
| 29 | -rm -f `find . -name \*.a` |
| 30 | -rm -f `find . -name \*.so` |
Keith Whitwell | 7e8e4c5 | 2005-06-10 10:43:02 +0000 | [diff] [blame] | 31 | -rm -f `find . -name depend` |
Keith Whitwell | ae68c32 | 2004-12-15 11:03:41 +0000 | [diff] [blame] | 32 | |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 33 | |
| 34 | |
| 35 | install: |
Brian Paul | 0e794a1 | 2006-06-22 22:50:48 +0000 | [diff] [blame] | 36 | @for dir in $(SUBDIRS) ; do \ |
| 37 | (cd $$dir ; $(MAKE) install) || exit 1 ; \ |
| 38 | done |
Brian Paul | 81ca616 | 2005-01-03 15:35:00 +0000 | [diff] [blame] | 39 | |
| 40 | # DirectFBGL module installation |
| 41 | linux-directfb-install: |
| 42 | cd src/mesa/drivers/directfb && $(MAKE) install |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 43 | |
| 44 | # If there's no current configuration file |
| 45 | $(TOP)/configs/current: |
| 46 | @echo |
| 47 | @echo |
| 48 | @echo "Please choose a configuration from the following list:" |
Brian Paul | 22388c1 | 2004-03-26 15:31:44 +0000 | [diff] [blame] | 49 | @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS" |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 50 | @echo |
| 51 | @echo "Then type 'make <config>' (ex: 'make linux-x86')" |
| 52 | @echo "(ignore the following error message)" |
| 53 | @exit 1 |
| 54 | |
| 55 | |
| 56 | # Rules to set/install a specific build configuration |
| 57 | aix \ |
Karl Schultz | a16bdb5 | 2004-10-01 13:33:26 +0000 | [diff] [blame] | 58 | aix-64 \ |
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 59 | aix-64-static \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 60 | aix-gcc \ |
Brian Paul | 6d50d91 | 2004-07-01 15:32:51 +0000 | [diff] [blame] | 61 | aix-static \ |
Philippe Houdoin | 92ec997 | 2004-08-14 10:10:42 +0000 | [diff] [blame] | 62 | beos \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 63 | darwin \ |
| 64 | darwin-static \ |
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 65 | darwin-static-x86ppc \ |
| 66 | darwin-x86ppc \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 67 | freebsd \ |
Eric Anholt | cc18221 | 2004-10-28 00:19:21 +0000 | [diff] [blame] | 68 | freebsd-dri \ |
Eric Anholt | f054fa8 | 2005-05-28 20:17:06 +0000 | [diff] [blame] | 69 | freebsd-dri-amd64 \ |
Eric Anholt | cc18221 | 2004-10-28 00:19:21 +0000 | [diff] [blame] | 70 | freebsd-dri-x86 \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 71 | hpux10 \ |
| 72 | hpux10-gcc \ |
Brian Paul | ff7d3bb | 2004-03-30 14:56:47 +0000 | [diff] [blame] | 73 | hpux10-static \ |
Karl Schultz | 786eef2 | 2004-10-01 20:19:16 +0000 | [diff] [blame] | 74 | hpux11-32 \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 75 | hpux11-32-static \ |
| 76 | hpux11-32-static-nothreads \ |
Karl Schultz | 786eef2 | 2004-10-01 20:19:16 +0000 | [diff] [blame] | 77 | hpux11-64 \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 78 | hpux11-64-static \ |
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 79 | hpux11-ia64 \ |
| 80 | hpux11-ia64-static \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 81 | hpux9 \ |
| 82 | hpux9-gcc \ |
| 83 | irix6-64 \ |
| 84 | irix6-64-static \ |
| 85 | irix6-n32 \ |
| 86 | irix6-n32-static \ |
| 87 | irix6-o32 \ |
| 88 | irix6-o32-static \ |
| 89 | linux \ |
| 90 | linux-alpha \ |
| 91 | linux-alpha-static \ |
| 92 | linux-debug \ |
Brian Paul | 81ca616 | 2005-01-03 15:35:00 +0000 | [diff] [blame] | 93 | linux-directfb \ |
Keith Whitwell | e61df58 | 2004-04-14 12:44:07 +0000 | [diff] [blame] | 94 | linux-dri \ |
Dave Airlie | 898c03a | 2004-05-03 11:30:37 +0000 | [diff] [blame] | 95 | linux-dri-x86 \ |
Keith Whitwell | 69ab4fe | 2004-04-30 08:29:04 +0000 | [diff] [blame] | 96 | linux-dri-x86-64 \ |
Ian Romanick | 447cdd5 | 2004-10-13 19:56:15 +0000 | [diff] [blame] | 97 | linux-dri-ppc \ |
Jeremy Kolb | 97a3023 | 2006-02-19 22:30:46 +0000 | [diff] [blame] | 98 | linux-dri-xcb \ |
Ian Romanick | dc6e2c7 | 2005-07-29 17:25:50 +0000 | [diff] [blame] | 99 | linux-indirect \ |
Keith Whitwell | a5cb1aa | 2005-04-29 17:31:10 +0000 | [diff] [blame] | 100 | linux-fbdev \ |
Daniel Borca | d3746ca | 2004-04-07 06:37:50 +0000 | [diff] [blame] | 101 | linux-glide \ |
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 102 | linux-ia64-icc \ |
| 103 | linux-ia64-icc-static \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 104 | linux-icc \ |
| 105 | linux-icc-static \ |
Brian Paul | 525eb0b | 2006-07-04 16:49:58 +0000 | [diff] [blame] | 106 | linux-osmesa \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 107 | linux-osmesa16 \ |
| 108 | linux-osmesa16-static \ |
| 109 | linux-osmesa32 \ |
| 110 | linux-ppc \ |
| 111 | linux-ppc-static \ |
| 112 | linux-solo \ |
Dave Airlie | e520b72 | 2004-09-07 00:41:40 +0000 | [diff] [blame] | 113 | linux-solo-x86 \ |
Brian Paul | adcb228 | 2004-04-19 22:23:10 +0000 | [diff] [blame] | 114 | linux-solo-ia64 \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 115 | linux-sparc \ |
| 116 | linux-sparc5 \ |
| 117 | linux-static \ |
| 118 | linux-ultrasparc \ |
Keith Whitwell | 6fb2356 | 2004-04-14 21:19:34 +0000 | [diff] [blame] | 119 | linux-tcc \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 120 | linux-x86 \ |
Keith Whitwell | e61df58 | 2004-04-14 12:44:07 +0000 | [diff] [blame] | 121 | linux-x86-debug \ |
Brian Paul | 7644bfb | 2005-03-03 01:44:42 +0000 | [diff] [blame] | 122 | linux-x86-32 \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 123 | linux-x86-64 \ |
Brian Paul | 42fa812 | 2005-05-07 16:59:58 +0000 | [diff] [blame] | 124 | linux-x86-64-debug \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 125 | linux-x86-64-static \ |
Daniel Borca | d3746ca | 2004-04-07 06:37:50 +0000 | [diff] [blame] | 126 | linux-x86-glide \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 127 | linux-x86-static \ |
| 128 | netbsd \ |
| 129 | openbsd \ |
| 130 | osf1 \ |
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 131 | osf1-static \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 132 | solaris-x86 \ |
| 133 | solaris-x86-gcc \ |
Brian Paul | c717ffa | 2006-05-17 22:51:44 +0000 | [diff] [blame] | 134 | solaris-x86-gcc-static \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 135 | sunos4 \ |
| 136 | sunos4-gcc \ |
| 137 | sunos4-static \ |
| 138 | sunos5 \ |
| 139 | sunos5-gcc \ |
Brian Paul | 9073c40 | 2006-04-07 15:16:46 +0000 | [diff] [blame] | 140 | sunos5-64-gcc \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 141 | sunos5-smp \ |
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 142 | sunos5-v8 \ |
| 143 | sunos5-v8-static \ |
| 144 | sunos5-v9 \ |
| 145 | sunos5-v9-static \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 146 | ultrix-gcc: |
Brian Paul | 3163542 | 2006-08-03 16:58:06 +0000 | [diff] [blame] | 147 | @ if [ -e configs/current ] ; then \ |
| 148 | echo "Please run 'make realclean' before changing configs" ; \ |
| 149 | exit 1 ; \ |
| 150 | fi |
Keith Whitwell | e61df58 | 2004-04-14 12:44:07 +0000 | [diff] [blame] | 151 | (cd configs && rm -f current && ln -s $@ current) |
Eric Anholt | 2fb5d15 | 2004-06-01 00:06:14 +0000 | [diff] [blame] | 152 | $(MAKE) default |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 153 | |
| 154 | |
| 155 | # Rules for making release tarballs |
| 156 | |
Brian Paul | 9f3bcd8 | 2006-04-07 14:29:52 +0000 | [diff] [blame] | 157 | DIRECTORY = Mesa-6.5.1 |
| 158 | LIB_NAME = MesaLib-6.5.1 |
| 159 | DEMO_NAME = MesaDemos-6.5.1 |
| 160 | GLUT_NAME = MesaGLUT-6.5.1 |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 161 | |
Brian Paul | dff11bb | 2005-07-21 18:44:52 +0000 | [diff] [blame] | 162 | MAIN_FILES = \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 163 | $(DIRECTORY)/Makefile* \ |
| 164 | $(DIRECTORY)/descrip.mms \ |
| 165 | $(DIRECTORY)/mms-config. \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 166 | $(DIRECTORY)/bin/mklib \ |
| 167 | $(DIRECTORY)/configs/[a-z]* \ |
| 168 | $(DIRECTORY)/docs/*.html \ |
| 169 | $(DIRECTORY)/docs/COPYING \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 170 | $(DIRECTORY)/docs/README.* \ |
| 171 | $(DIRECTORY)/docs/RELNOTES* \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 172 | $(DIRECTORY)/docs/*.spec \ |
| 173 | $(DIRECTORY)/include/GL/internal/glcore.h \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 174 | $(DIRECTORY)/include/GL/amesa.h \ |
Brian Paul | 63dffa4 | 2005-08-08 21:30:12 +0000 | [diff] [blame] | 175 | $(DIRECTORY)/include/GL/dmesa.h \ |
| 176 | $(DIRECTORY)/include/GL/directfbgl.h \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 177 | $(DIRECTORY)/include/GL/fxmesa.h \ |
| 178 | $(DIRECTORY)/include/GL/ggimesa.h \ |
| 179 | $(DIRECTORY)/include/GL/gl.h \ |
| 180 | $(DIRECTORY)/include/GL/glext.h \ |
| 181 | $(DIRECTORY)/include/GL/gl_mangle.h \ |
| 182 | $(DIRECTORY)/include/GL/glu.h \ |
| 183 | $(DIRECTORY)/include/GL/glu_mangle.h \ |
| 184 | $(DIRECTORY)/include/GL/glx.h \ |
| 185 | $(DIRECTORY)/include/GL/glxext.h \ |
| 186 | $(DIRECTORY)/include/GL/glx_mangle.h \ |
Brian Paul | 159ca32 | 2006-03-30 14:27:25 +0000 | [diff] [blame] | 187 | $(DIRECTORY)/include/GL/glfbdev.h \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 188 | $(DIRECTORY)/include/GL/mesa_wgl.h \ |
| 189 | $(DIRECTORY)/include/GL/mglmesa.h \ |
| 190 | $(DIRECTORY)/include/GL/osmesa.h \ |
| 191 | $(DIRECTORY)/include/GL/svgamesa.h \ |
| 192 | $(DIRECTORY)/include/GL/ugl*.h \ |
| 193 | $(DIRECTORY)/include/GL/vms_x_fix.h \ |
| 194 | $(DIRECTORY)/include/GL/wmesa.h \ |
| 195 | $(DIRECTORY)/include/GL/xmesa.h \ |
| 196 | $(DIRECTORY)/include/GL/xmesa_x.h \ |
| 197 | $(DIRECTORY)/include/GL/xmesa_xf86.h \ |
Philippe Houdoin | 3e36986 | 2005-07-27 19:56:33 +0000 | [diff] [blame] | 198 | $(DIRECTORY)/include/GLView.h \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 199 | $(DIRECTORY)/src/Makefile \ |
| 200 | $(DIRECTORY)/src/descrip.mms \ |
| 201 | $(DIRECTORY)/src/mesa/Makefile* \ |
| 202 | $(DIRECTORY)/src/mesa/sources \ |
| 203 | $(DIRECTORY)/src/mesa/descrip.mms \ |
| 204 | $(DIRECTORY)/src/mesa/depend \ |
| 205 | $(DIRECTORY)/src/mesa/main/*.[chS] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 206 | $(DIRECTORY)/src/mesa/main/descrip.mms \ |
| 207 | $(DIRECTORY)/src/mesa/glapi/*.[chS] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 208 | $(DIRECTORY)/src/mesa/glapi/descrip.mms \ |
| 209 | $(DIRECTORY)/src/mesa/array_cache/*.[ch] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 210 | $(DIRECTORY)/src/mesa/array_cache/descrip.mms \ |
| 211 | $(DIRECTORY)/src/mesa/math/*.[ch] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 212 | $(DIRECTORY)/src/mesa/math/descrip.mms \ |
Brian Paul | 02ca8fe | 2004-08-13 20:58:59 +0000 | [diff] [blame] | 213 | $(DIRECTORY)/src/mesa/shader/*.[ch] \ |
Karl Schultz | d48ef3e | 2004-08-14 21:42:50 +0000 | [diff] [blame] | 214 | $(DIRECTORY)/src/mesa/shader/descrip.mms \ |
Karl Schultz | 5b10d71 | 2005-06-03 15:24:55 +0000 | [diff] [blame] | 215 | $(DIRECTORY)/src/mesa/shader/grammar/*.[ch] \ |
| 216 | $(DIRECTORY)/src/mesa/shader/grammar/descrip.mms \ |
| 217 | $(DIRECTORY)/src/mesa/shader/slang/*.[ch] \ |
| 218 | $(DIRECTORY)/src/mesa/shader/slang/descrip.mms \ |
| 219 | $(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 220 | $(DIRECTORY)/src/mesa/swrast/*.[ch] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 221 | $(DIRECTORY)/src/mesa/swrast/descrip.mms \ |
| 222 | $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 223 | $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \ |
Brian Paul | 02ca8fe | 2004-08-13 20:58:59 +0000 | [diff] [blame] | 224 | $(DIRECTORY)/src/mesa/tnl/*.[chS] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 225 | $(DIRECTORY)/src/mesa/tnl/descrip.mms \ |
| 226 | $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \ |
| 227 | $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \ |
| 228 | $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \ |
| 229 | $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \ |
Brian Paul | 244af16 | 2004-08-14 21:12:37 +0000 | [diff] [blame] | 230 | $(DIRECTORY)/src/mesa/drivers/beos/Makefile \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 231 | $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \ |
| 232 | $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \ |
Karl Schultz | 5b10d71 | 2005-06-03 15:24:55 +0000 | [diff] [blame] | 233 | $(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \ |
| 234 | $(DIRECTORY)/src/mesa/drivers/directfb/Makefile \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 235 | $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 236 | $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \ |
| 237 | $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 238 | $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \ |
| 239 | $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \ |
| 240 | $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \ |
| 241 | $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \ |
| 242 | $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \ |
| 243 | $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \ |
| 244 | $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \ |
| 245 | $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \ |
| 246 | $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \ |
| 247 | $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 248 | $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \ |
| 249 | $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \ |
| 250 | $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \ |
| 251 | $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 252 | $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \ |
| 253 | $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \ |
Brian Paul | 03f52fe | 2005-07-01 01:55:30 +0000 | [diff] [blame] | 254 | $(DIRECTORY)/src/mesa/ppc/*.[ch] \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 255 | $(DIRECTORY)/src/mesa/sparc/*.[chS] \ |
| 256 | $(DIRECTORY)/src/mesa/x86/Makefile \ |
| 257 | $(DIRECTORY)/src/mesa/x86/*.[ch] \ |
| 258 | $(DIRECTORY)/src/mesa/x86/*.S \ |
Brian Paul | 03f52fe | 2005-07-01 01:55:30 +0000 | [diff] [blame] | 259 | $(DIRECTORY)/src/mesa/x86/rtasm/*.[ch] \ |
| 260 | $(DIRECTORY)/src/mesa/x86-64/*.[chS] \ |
| 261 | $(DIRECTORY)/src/mesa/x86-64/Makefile \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 262 | $(DIRECTORY)/progs/Makefile \ |
| 263 | $(DIRECTORY)/progs/util/README \ |
| 264 | $(DIRECTORY)/progs/util/*.[ch] \ |
| 265 | $(DIRECTORY)/progs/util/sampleMakefile \ |
| 266 | $(DIRECTORY)/vms/analyze_map.com \ |
| 267 | $(DIRECTORY)/vms/xlib.opt \ |
Karl Schultz | 5b10d71 | 2005-06-03 15:24:55 +0000 | [diff] [blame] | 268 | $(DIRECTORY)/vms/xlib_share.opt \ |
Karl Schultz | c136b41 | 2005-07-01 20:31:41 +0000 | [diff] [blame] | 269 | $(DIRECTORY)/windows/VC6/mesa/gdi/gdi.dsp \ |
| 270 | $(DIRECTORY)/windows/VC6/mesa/glu/*.txt \ |
| 271 | $(DIRECTORY)/windows/VC6/mesa/glu/glu.dsp \ |
| 272 | $(DIRECTORY)/windows/VC6/mesa/mesa.dsw \ |
| 273 | $(DIRECTORY)/windows/VC6/mesa/mesa/mesa.dsp \ |
| 274 | $(DIRECTORY)/windows/VC6/mesa/osmesa/osmesa.dsp \ |
| 275 | $(DIRECTORY)/windows/VC7/mesa/gdi/gdi.vcproj \ |
| 276 | $(DIRECTORY)/windows/VC7/mesa/glu/glu.vcproj \ |
| 277 | $(DIRECTORY)/windows/VC7/mesa/mesa.sln \ |
| 278 | $(DIRECTORY)/windows/VC7/mesa/mesa/mesa.vcproj \ |
| 279 | $(DIRECTORY)/windows/VC7/mesa/osmesa/osmesa.vcproj |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 280 | |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 281 | DRI_FILES = \ |
Brian Paul | 7302003 | 2005-10-17 22:38:44 +0000 | [diff] [blame] | 282 | $(DIRECTORY)/include/GL/internal/dri_interface.h \ |
| 283 | $(DIRECTORY)/include/GL/internal/sarea.h \ |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 284 | $(DIRECTORY)/src/glx/Makefile \ |
| 285 | $(DIRECTORY)/src/glx/x11/Makefile \ |
| 286 | $(DIRECTORY)/src/glx/x11/*.[ch] \ |
| 287 | $(DIRECTORY)/src/mesa/drivers/dri/Makefile \ |
| 288 | $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \ |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 289 | $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \ |
| 290 | $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \ |
Brian Paul | 1e71d6a | 2005-08-22 14:27:13 +0000 | [diff] [blame] | 291 | $(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \ |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 292 | $(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \ |
| 293 | $(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \ |
| 294 | $(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch] |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 295 | |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 296 | SGI_GLU_FILES = \ |
| 297 | $(DIRECTORY)/src/glu/Makefile \ |
| 298 | $(DIRECTORY)/src/glu/descrip.mms \ |
| 299 | $(DIRECTORY)/src/glu/sgi/Makefile \ |
| 300 | $(DIRECTORY)/src/glu/sgi/Makefile.win \ |
| 301 | $(DIRECTORY)/src/glu/sgi/Makefile.DJ \ |
| 302 | $(DIRECTORY)/src/glu/sgi/glu.def \ |
| 303 | $(DIRECTORY)/src/glu/sgi/dummy.cc \ |
| 304 | $(DIRECTORY)/src/glu/sgi/descrip.mms \ |
| 305 | $(DIRECTORY)/src/glu/sgi/mesaglu.opt \ |
| 306 | $(DIRECTORY)/src/glu/sgi/include/gluos.h \ |
| 307 | $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \ |
| 308 | $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \ |
| 309 | $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \ |
| 310 | $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \ |
| 311 | $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \ |
| 312 | $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \ |
| 313 | $(DIRECTORY)/src/glu/sgi/libtess/README \ |
| 314 | $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \ |
| 315 | $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \ |
| 316 | $(DIRECTORY)/src/glu/sgi/libutil/*.[ch] |
Brian Paul | 8e73b14 | 2005-01-03 15:36:27 +0000 | [diff] [blame] | 317 | |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 318 | MESA_GLU_FILES = \ |
| 319 | $(DIRECTORY)/src/glu/mesa/README[12] \ |
| 320 | $(DIRECTORY)/src/glu/mesa/Makefile* \ |
| 321 | $(DIRECTORY)/src/glu/mesa/descrip.mms \ |
| 322 | $(DIRECTORY)/src/glu/mesa/mms_depend \ |
| 323 | $(DIRECTORY)/src/glu/mesa/*.def \ |
| 324 | $(DIRECTORY)/src/glu/mesa/depend \ |
| 325 | $(DIRECTORY)/src/glu/mesa/*.[ch] |
Brian Paul | 8e73b14 | 2005-01-03 15:36:27 +0000 | [diff] [blame] | 326 | |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 327 | GLW_FILES = \ |
| 328 | $(DIRECTORY)/src/glw/*.[ch] \ |
| 329 | $(DIRECTORY)/src/glw/Makefile* \ |
| 330 | $(DIRECTORY)/src/glw/README \ |
| 331 | $(DIRECTORY)/src/glw/depend |
| 332 | |
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 333 | DEMO_FILES = \ |
Brian Paul | 244af16 | 2004-08-14 21:12:37 +0000 | [diff] [blame] | 334 | $(DIRECTORY)/progs/beos/*.cpp \ |
| 335 | $(DIRECTORY)/progs/beos/Makefile \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 336 | $(DIRECTORY)/progs/images/*.rgb \ |
| 337 | $(DIRECTORY)/progs/images/*.rgba \ |
| 338 | $(DIRECTORY)/progs/demos/Makefile* \ |
| 339 | $(DIRECTORY)/progs/demos/descrip.mms \ |
| 340 | $(DIRECTORY)/progs/demos/*.[ch] \ |
| 341 | $(DIRECTORY)/progs/demos/*.cxx \ |
| 342 | $(DIRECTORY)/progs/demos/*.dat \ |
| 343 | $(DIRECTORY)/progs/demos/README \ |
Brian Paul | bcf4ae7 | 2005-11-02 21:01:26 +0000 | [diff] [blame] | 344 | $(DIRECTORY)/progs/osdemos/Makefile \ |
| 345 | $(DIRECTORY)/progs/osdemos/*.c \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 346 | $(DIRECTORY)/progs/xdemos/Makefile* \ |
| 347 | $(DIRECTORY)/progs/xdemos/descrip.mms \ |
| 348 | $(DIRECTORY)/progs/xdemos/*.[chf] \ |
| 349 | $(DIRECTORY)/progs/redbook/Makefile* \ |
| 350 | $(DIRECTORY)/progs/redbook/README \ |
| 351 | $(DIRECTORY)/progs/redbook/*.[ch] \ |
| 352 | $(DIRECTORY)/progs/samples/Makefile* \ |
| 353 | $(DIRECTORY)/progs/samples/README \ |
| 354 | $(DIRECTORY)/progs/samples/*.c \ |
| 355 | $(DIRECTORY)/progs/windml/Makefile.ugl \ |
| 356 | $(DIRECTORY)/progs/windml/*.c \ |
| 357 | $(DIRECTORY)/progs/windml/*.bmp \ |
Karl Schultz | 5b10d71 | 2005-06-03 15:24:55 +0000 | [diff] [blame] | 358 | $(DIRECTORY)/progs/ggi/*.c \ |
Karl Schultz | c136b41 | 2005-07-01 20:31:41 +0000 | [diff] [blame] | 359 | $(DIRECTORY)/windows/VC6/progs/demos/*.dsp \ |
Karl Schultz | c136b41 | 2005-07-01 20:31:41 +0000 | [diff] [blame] | 360 | $(DIRECTORY)/windows/VC6/progs/progs.dsw \ |
| 361 | $(DIRECTORY)/windows/VC7/progs/demos/*.vcproj \ |
Karl Schultz | c136b41 | 2005-07-01 20:31:41 +0000 | [diff] [blame] | 362 | $(DIRECTORY)/windows/VC7/progs/progs.sln |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 363 | |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 364 | GLUT_FILES = \ |
| 365 | $(DIRECTORY)/include/GL/glut.h \ |
| 366 | $(DIRECTORY)/include/GL/glutf90.h \ |
| 367 | $(DIRECTORY)/src/glut/glx/Makefile* \ |
| 368 | $(DIRECTORY)/src/glut/glx/depend \ |
| 369 | $(DIRECTORY)/src/glut/glx/*def \ |
| 370 | $(DIRECTORY)/src/glut/glx/descrip.mms \ |
| 371 | $(DIRECTORY)/src/glut/glx/mms_depend \ |
| 372 | $(DIRECTORY)/src/glut/glx/*.[ch] \ |
| 373 | $(DIRECTORY)/src/glut/beos/*.[ch] \ |
| 374 | $(DIRECTORY)/src/glut/beos/*.cpp \ |
| 375 | $(DIRECTORY)/src/glut/beos/Makefile \ |
| 376 | $(DIRECTORY)/src/glut/dos/*.[ch] \ |
| 377 | $(DIRECTORY)/src/glut/dos/Makefile.DJ \ |
| 378 | $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \ |
| 379 | $(DIRECTORY)/src/glut/ggi/*.[ch] \ |
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 380 | $(DIRECTORY)/src/glut/ggi/Makefile \ |
Brian Paul | 667dd3c | 2006-07-31 14:25:53 +0000 | [diff] [blame] | 381 | $(DIRECTORY)/src/glut/fbdev/Makefile \ |
Brian Paul | d21ccb4 | 2006-08-23 19:46:17 +0000 | [diff] [blame] | 382 | $(DIRECTORY)/src/glut/fbdev/*[ch] \ |
Brian Paul | 8330432 | 2006-08-24 17:01:35 +0000 | [diff] [blame] | 383 | $(DIRECTORY)/src/glut/mini/*[ch] \ |
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 384 | $(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \ |
| 385 | $(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 386 | |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 387 | DEPEND_FILES = \ |
| 388 | $(TOP)/src/mesa/depend \ |
Brian Paul | b10ea98 | 2006-06-28 21:58:47 +0000 | [diff] [blame] | 389 | $(TOP)/src/glx/x11/depend \ |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 390 | $(TOP)/src/glw/depend \ |
| 391 | $(TOP)/src/glut/glx/depend \ |
| 392 | $(TOP)/src/glu/sgi/depend |
Brian Paul | 281f855 | 2004-09-09 18:17:36 +0000 | [diff] [blame] | 393 | |
| 394 | |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 395 | LIB_FILES = $(MAIN_FILES) $(DRI_FILES) $(SGI_GLU_FILES) $(GLW_FILES) |
| 396 | |
Brian Paul | dff11bb | 2005-07-21 18:44:52 +0000 | [diff] [blame] | 397 | |
Brian Paul | 281f855 | 2004-09-09 18:17:36 +0000 | [diff] [blame] | 398 | # Everything for new a Mesa release: |
Brian Paul | 301c3dc | 2005-10-19 20:26:13 +0000 | [diff] [blame] | 399 | tarballs: rm_depend lib_gz demo_gz glut_gz lib_bz2 demo_bz2 glut_bz2 lib_zip demo_zip glut_zip md5 |
Brian Paul | 281f855 | 2004-09-09 18:17:36 +0000 | [diff] [blame] | 400 | |
| 401 | |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 402 | rm_depend: |
| 403 | @for dep in $(DEPEND_FILES) ; do \ |
| 404 | rm -f $$dep ; \ |
| 405 | touch $$dep ; \ |
| 406 | done |
| 407 | |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 408 | lib_gz: |
| 409 | rm -f configs/current ; \ |
| 410 | cd .. ; \ |
Brian Paul | dff11bb | 2005-07-21 18:44:52 +0000 | [diff] [blame] | 411 | tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 412 | gzip $(LIB_NAME).tar ; \ |
| 413 | mv $(LIB_NAME).tar.gz $(DIRECTORY) |
| 414 | |
| 415 | demo_gz: |
| 416 | cd .. ; \ |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 417 | tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 418 | gzip $(DEMO_NAME).tar ; \ |
| 419 | mv $(DEMO_NAME).tar.gz $(DIRECTORY) |
| 420 | |
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 421 | glut_gz: |
| 422 | cd .. ; \ |
| 423 | tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \ |
| 424 | gzip $(GLUT_NAME).tar ; \ |
| 425 | mv $(GLUT_NAME).tar.gz $(DIRECTORY) |
| 426 | |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 427 | lib_bz2: |
| 428 | rm -f configs/current ; \ |
| 429 | cd .. ; \ |
Brian Paul | dff11bb | 2005-07-21 18:44:52 +0000 | [diff] [blame] | 430 | tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 431 | bzip2 $(LIB_NAME).tar ; \ |
| 432 | mv $(LIB_NAME).tar.bz2 $(DIRECTORY) |
| 433 | |
| 434 | demo_bz2: |
| 435 | cd .. ; \ |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 436 | tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 437 | bzip2 $(DEMO_NAME).tar ; \ |
| 438 | mv $(DEMO_NAME).tar.bz2 $(DIRECTORY) |
| 439 | |
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 440 | glut_bz2: |
| 441 | cd .. ; \ |
| 442 | tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \ |
| 443 | bzip2 $(GLUT_NAME).tar ; \ |
| 444 | mv $(GLUT_NAME).tar.bz2 $(DIRECTORY) |
| 445 | |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 446 | lib_zip: |
| 447 | rm -f configs/current ; \ |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 448 | rm -f $(LIB_NAME).zip ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 449 | cd .. ; \ |
Brian Paul | dff11bb | 2005-07-21 18:44:52 +0000 | [diff] [blame] | 450 | zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 451 | mv $(LIB_NAME).zip $(DIRECTORY) |
| 452 | |
| 453 | demo_zip: |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 454 | rm -f $(DEMO_NAME).zip ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 455 | cd .. ; \ |
Brian Paul | 3e2419a | 2005-07-22 15:52:46 +0000 | [diff] [blame] | 456 | zip -qr $(DEMO_NAME).zip $(DEMO_FILES) ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 457 | mv $(DEMO_NAME).zip $(DIRECTORY) |
| 458 | |
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 459 | glut_zip: |
| 460 | rm -f $(GLUT_NAME).zip ; \ |
| 461 | cd .. ; \ |
| 462 | zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \ |
| 463 | mv $(GLUT_NAME).zip $(DIRECTORY) |
| 464 | |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 465 | md5: |
| 466 | @-md5sum $(LIB_NAME).tar.gz |
| 467 | @-md5sum $(LIB_NAME).tar.bz2 |
| 468 | @-md5sum $(LIB_NAME).zip |
| 469 | @-md5sum $(DEMO_NAME).tar.gz |
| 470 | @-md5sum $(DEMO_NAME).tar.bz2 |
| 471 | @-md5sum $(DEMO_NAME).zip |
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 472 | @-md5sum $(GLUT_NAME).tar.gz |
| 473 | @-md5sum $(GLUT_NAME).tar.bz2 |
| 474 | @-md5sum $(GLUT_NAME).zip |