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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. # Top-level Mesa makefile
  2. TOP = .
  3. SUBDIRS = src
  4. # The git command below generates an empty string when we're not
  5. # building in a GIT tree (i.e., building from a release tarball).
  6. default: $(TOP)/configs/current
  7. @$(TOP)/bin/extract_git_sha1
  8. @for dir in $(SUBDIRS) ; do \
  9. if [ -d $$dir ] ; then \
  10. (cd $$dir && $(MAKE)) || exit 1 ; \
  11. fi \
  12. done
  13. all: default
  14. doxygen:
  15. cd doxygen && $(MAKE)
  16. clean:
  17. -@touch $(TOP)/configs/current
  18. -@for dir in $(SUBDIRS) ; do \
  19. if [ -d $$dir ] ; then \
  20. (cd $$dir && $(MAKE) clean) ; \
  21. fi \
  22. done
  23. -@test -s $(TOP)/configs/current || rm -f $(TOP)/configs/current
  24. realclean: clean
  25. -rm -rf lib*
  26. -rm -f $(TOP)/configs/current
  27. -rm -f $(TOP)/configs/autoconf
  28. -rm -rf autom4te.cache
  29. -find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \
  30. -name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
  31. distclean: realclean
  32. install:
  33. @for dir in $(SUBDIRS) ; do \
  34. if [ -d $$dir ] ; then \
  35. (cd $$dir && $(MAKE) install) || exit 1 ; \
  36. fi \
  37. done
  38. .PHONY: default doxygen clean realclean distclean install
  39. # If there's no current configuration file
  40. $(TOP)/configs/current:
  41. @echo
  42. @echo
  43. @echo "Please choose a configuration from the following list:"
  44. @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS\|autoconf.*"
  45. @echo
  46. @echo "Then type 'make <config>' (ex: 'make linux-x86')"
  47. @echo
  48. @echo "Or, run './configure' then 'make'"
  49. @echo "See './configure --help' for details"
  50. @echo
  51. @echo "(ignore the following error message)"
  52. @exit 1
  53. # Rules to set/install a specific build configuration
  54. aix \
  55. aix-64 \
  56. aix-64-static \
  57. aix-gcc \
  58. aix-static \
  59. autoconf \
  60. bluegene-osmesa \
  61. bluegene-xlc-osmesa \
  62. beos \
  63. catamount-osmesa-pgi \
  64. darwin \
  65. darwin-fat-32bit \
  66. darwin-fat-all \
  67. freebsd \
  68. freebsd-dri \
  69. freebsd-dri-amd64 \
  70. freebsd-dri-x86 \
  71. hpux10 \
  72. hpux10-gcc \
  73. hpux10-static \
  74. hpux11-32 \
  75. hpux11-32-static \
  76. hpux11-32-static-nothreads \
  77. hpux11-64 \
  78. hpux11-64-static \
  79. hpux11-ia64 \
  80. hpux11-ia64-static \
  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-i965 \
  91. linux-alpha \
  92. linux-alpha-static \
  93. linux-cell \
  94. linux-cell-debug \
  95. linux-debug \
  96. linux-dri \
  97. linux-dri-debug \
  98. linux-dri-x86 \
  99. linux-dri-x86-64 \
  100. linux-dri-ppc \
  101. linux-dri-xcb \
  102. linux-egl \
  103. linux-indirect \
  104. linux-fbdev \
  105. linux-ia64-icc \
  106. linux-ia64-icc-static \
  107. linux-icc \
  108. linux-icc-static \
  109. linux-llvm \
  110. linux-llvm-debug \
  111. linux-opengl-es \
  112. linux-osmesa \
  113. linux-osmesa-static \
  114. linux-osmesa16 \
  115. linux-osmesa16-static \
  116. linux-osmesa32 \
  117. linux-ppc \
  118. linux-ppc-static \
  119. linux-profile \
  120. linux-sparc \
  121. linux-sparc5 \
  122. linux-static \
  123. linux-ultrasparc \
  124. linux-tcc \
  125. linux-x86 \
  126. linux-x86-debug \
  127. linux-x86-32 \
  128. linux-x86-64 \
  129. linux-x86-64-debug \
  130. linux-x86-64-profile \
  131. linux-x86-64-static \
  132. linux-x86-profile \
  133. linux-x86-static \
  134. netbsd \
  135. openbsd \
  136. osf1 \
  137. osf1-static \
  138. solaris-x86 \
  139. solaris-x86-gcc \
  140. solaris-x86-gcc-static \
  141. sunos4 \
  142. sunos4-gcc \
  143. sunos4-static \
  144. sunos5 \
  145. sunos5-gcc \
  146. sunos5-64-gcc \
  147. sunos5-smp \
  148. sunos5-v8 \
  149. sunos5-v8-static \
  150. sunos5-v9 \
  151. sunos5-v9-static \
  152. sunos5-v9-cc-g++ \
  153. ultrix-gcc:
  154. @ if test -f configs/current -o -L configs/current; then \
  155. if ! cmp configs/$@ configs/current > /dev/null; then \
  156. echo "Please run 'make realclean' before changing configs" ; \
  157. exit 1 ; \
  158. fi ; \
  159. else \
  160. cd configs && rm -f current && ln -s $@ current ; \
  161. fi
  162. $(MAKE) default
  163. # Rules for making release tarballs
  164. VERSION=7.11-devel
  165. DIRECTORY = Mesa-$(VERSION)
  166. LIB_NAME = MesaLib-$(VERSION)
  167. GLUT_NAME = MesaGLUT-$(VERSION)
  168. # This is part of MAIN_FILES
  169. MAIN_ES_FILES = \
  170. $(DIRECTORY)/src/mesa/main/*.xml \
  171. $(DIRECTORY)/src/mesa/main/*.py \
  172. $(DIRECTORY)/src/mesa/main/*.dtd
  173. MAIN_FILES = \
  174. $(DIRECTORY)/Makefile* \
  175. $(DIRECTORY)/configure \
  176. $(DIRECTORY)/configure.ac \
  177. $(DIRECTORY)/acinclude.m4 \
  178. $(DIRECTORY)/aclocal.m4 \
  179. $(DIRECTORY)/SConstruct \
  180. $(DIRECTORY)/common.py \
  181. $(DIRECTORY)/scons/*py \
  182. $(DIRECTORY)/bin/config.guess \
  183. $(DIRECTORY)/bin/config.sub \
  184. $(DIRECTORY)/bin/extract_git_sha1 \
  185. $(DIRECTORY)/bin/install-sh \
  186. $(DIRECTORY)/bin/mklib \
  187. $(DIRECTORY)/bin/minstall \
  188. $(DIRECTORY)/bin/version.mk \
  189. $(DIRECTORY)/configs/[a-z]* \
  190. $(DIRECTORY)/docs/*.html \
  191. $(DIRECTORY)/docs/COPYING \
  192. $(DIRECTORY)/docs/README.* \
  193. $(DIRECTORY)/docs/RELNOTES* \
  194. $(DIRECTORY)/docs/*.spec \
  195. $(DIRECTORY)/include/GL/gl.h \
  196. $(DIRECTORY)/include/GL/glext.h \
  197. $(DIRECTORY)/include/GL/gl_mangle.h \
  198. $(DIRECTORY)/include/GL/glu.h \
  199. $(DIRECTORY)/include/GL/glu_mangle.h \
  200. $(DIRECTORY)/include/GL/glx.h \
  201. $(DIRECTORY)/include/GL/glxext.h \
  202. $(DIRECTORY)/include/GL/glx_mangle.h \
  203. $(DIRECTORY)/include/GL/glfbdev.h \
  204. $(DIRECTORY)/include/GL/mesa_wgl.h \
  205. $(DIRECTORY)/include/GL/osmesa.h \
  206. $(DIRECTORY)/include/GL/vms_x_fix.h \
  207. $(DIRECTORY)/include/GL/wglext.h \
  208. $(DIRECTORY)/include/GL/wmesa.h \
  209. $(DIRECTORY)/src/getopt/SConscript \
  210. $(DIRECTORY)/src/getopt/getopt*.[ch] \
  211. $(DIRECTORY)/src/glsl/Makefile \
  212. $(DIRECTORY)/src/glsl/Makefile.template \
  213. $(DIRECTORY)/src/glsl/SConscript \
  214. $(DIRECTORY)/src/glsl/*.[ch] \
  215. $(DIRECTORY)/src/glsl/*.ll \
  216. $(DIRECTORY)/src/glsl/*.yy \
  217. $(DIRECTORY)/src/glsl/*.[cly]pp \
  218. $(DIRECTORY)/src/glsl/README \
  219. $(DIRECTORY)/src/glsl/glcpp/*.[chly] \
  220. $(DIRECTORY)/src/glsl/glcpp/README \
  221. $(DIRECTORY)/src/glsl/builtins \
  222. $(DIRECTORY)/src/Makefile \
  223. $(DIRECTORY)/src/SConscript \
  224. $(DIRECTORY)/src/mesa/Makefile* \
  225. $(DIRECTORY)/src/mesa/SConscript \
  226. $(DIRECTORY)/src/mesa/sources.mak \
  227. $(DIRECTORY)/src/mesa/descrip.mms \
  228. $(DIRECTORY)/src/mesa/gl.pc.in \
  229. $(DIRECTORY)/src/mesa/osmesa.pc.in \
  230. $(DIRECTORY)/src/mesa/depend \
  231. $(MAIN_ES_FILES) \
  232. $(DIRECTORY)/src/mesa/main/*.[chS] \
  233. $(DIRECTORY)/src/mesa/main/*.cpp \
  234. $(DIRECTORY)/src/mesa/main/descrip.mms \
  235. $(DIRECTORY)/src/mesa/math/*.[ch] \
  236. $(DIRECTORY)/src/mesa/math/descrip.mms \
  237. $(DIRECTORY)/src/mesa/program/*.[chly] \
  238. $(DIRECTORY)/src/mesa/program/*.cpp \
  239. $(DIRECTORY)/src/mesa/program/descrip.mms \
  240. $(DIRECTORY)/src/mesa/swrast/*.[ch] \
  241. $(DIRECTORY)/src/mesa/swrast/descrip.mms \
  242. $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
  243. $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
  244. $(DIRECTORY)/src/mesa/vbo/*.[chS] \
  245. $(DIRECTORY)/src/mesa/vbo/descrip.mms \
  246. $(DIRECTORY)/src/mesa/tnl/*.[chS] \
  247. $(DIRECTORY)/src/mesa/tnl/descrip.mms \
  248. $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
  249. $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
  250. $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
  251. $(DIRECTORY)/src/mesa/drivers/Makefile \
  252. $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
  253. $(DIRECTORY)/src/mesa/drivers/beos/Makefile \
  254. $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
  255. $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
  256. $(DIRECTORY)/src/mesa/drivers/fbdev/Makefile \
  257. $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
  258. $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile \
  259. $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
  260. $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
  261. $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
  262. $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
  263. $(DIRECTORY)/src/mesa/drivers/dri/r300/compiler/*.[ch] \
  264. $(DIRECTORY)/src/mesa/drivers/dri/r300/compiler/Makefile \
  265. $(DIRECTORY)/src/mesa/drivers/dri/r300/compiler/SConscript \
  266. $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
  267. $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
  268. $(DIRECTORY)/src/mesa/drivers/x11/Makefile \
  269. $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
  270. $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
  271. $(DIRECTORY)/src/mesa/ppc/*.[ch] \
  272. $(DIRECTORY)/src/mesa/sparc/*.[chS] \
  273. $(DIRECTORY)/src/mesa/x86/Makefile \
  274. $(DIRECTORY)/src/mesa/x86/*.[ch] \
  275. $(DIRECTORY)/src/mesa/x86/*.S \
  276. $(DIRECTORY)/src/mesa/x86/rtasm/*.[ch] \
  277. $(DIRECTORY)/src/mesa/x86-64/*.[chS] \
  278. $(DIRECTORY)/src/mesa/x86-64/Makefile
  279. MAPI_FILES = \
  280. $(DIRECTORY)/include/GLES/*.h \
  281. $(DIRECTORY)/include/GLES2/*.h \
  282. $(DIRECTORY)/include/VG/*.h \
  283. $(DIRECTORY)/src/mapi/es?api/Makefile \
  284. $(DIRECTORY)/src/mapi/es?api/*.pc.in \
  285. $(DIRECTORY)/src/mapi/glapi/gen/Makefile \
  286. $(DIRECTORY)/src/mapi/glapi/gen/*.xml \
  287. $(DIRECTORY)/src/mapi/glapi/gen/*.py \
  288. $(DIRECTORY)/src/mapi/glapi/gen/*.dtd \
  289. $(DIRECTORY)/src/mapi/glapi/gen-es/Makefile \
  290. $(DIRECTORY)/src/mapi/glapi/gen-es/*.xml \
  291. $(DIRECTORY)/src/mapi/glapi/gen-es/*.py \
  292. $(DIRECTORY)/src/mapi/glapi/Makefile \
  293. $(DIRECTORY)/src/mapi/glapi/SConscript \
  294. $(DIRECTORY)/src/mapi/glapi/sources.mak \
  295. $(DIRECTORY)/src/mapi/glapi/*.[chS] \
  296. $(DIRECTORY)/src/mapi/mapi/mapi_abi.py \
  297. $(DIRECTORY)/src/mapi/mapi/sources.mak \
  298. $(DIRECTORY)/src/mapi/mapi/*.[ch] \
  299. $(DIRECTORY)/src/mapi/shared-glapi/SConscript \
  300. $(DIRECTORY)/src/mapi/shared-glapi/Makefile \
  301. $(DIRECTORY)/src/mapi/vgapi/Makefile \
  302. $(DIRECTORY)/src/mapi/vgapi/SConscript \
  303. $(DIRECTORY)/src/mapi/vgapi/vgapi.csv \
  304. $(DIRECTORY)/src/mapi/vgapi/vg.pc.in
  305. EGL_FILES = \
  306. $(DIRECTORY)/include/KHR/*.h \
  307. $(DIRECTORY)/include/EGL/*.h \
  308. $(DIRECTORY)/src/egl/Makefile \
  309. $(DIRECTORY)/src/egl/*/Makefile \
  310. $(DIRECTORY)/src/egl/*/Makefile.template \
  311. $(DIRECTORY)/src/egl/*/*.[ch] \
  312. $(DIRECTORY)/src/egl/*/*/Makefile \
  313. $(DIRECTORY)/src/egl/*/*/*.[ch] \
  314. $(DIRECTORY)/src/egl/main/SConscript \
  315. $(DIRECTORY)/src/egl/main/*.pc.in \
  316. $(DIRECTORY)/src/egl/main/*.def
  317. GALLIUM_FILES = \
  318. $(DIRECTORY)/src/mesa/state_tracker/*[ch] \
  319. $(DIRECTORY)/src/gallium/Makefile \
  320. $(DIRECTORY)/src/gallium/Makefile.template \
  321. $(DIRECTORY)/src/gallium/SConscript \
  322. $(DIRECTORY)/src/gallium/targets/Makefile.dri \
  323. $(DIRECTORY)/src/gallium/targets/Makefile.xorg \
  324. $(DIRECTORY)/src/gallium/targets/SConscript.dri \
  325. $(DIRECTORY)/src/gallium/*/Makefile \
  326. $(DIRECTORY)/src/gallium/*/SConscript \
  327. $(DIRECTORY)/src/gallium/*/*/Makefile \
  328. $(DIRECTORY)/src/gallium/*/*/SConscript \
  329. $(DIRECTORY)/src/gallium/*/*/*.[ch] \
  330. $(DIRECTORY)/src/gallium/auxiliary/gallivm/*.cpp \
  331. $(DIRECTORY)/src/gallium/*/*/*.py \
  332. $(DIRECTORY)/src/gallium/*/*/*.csv \
  333. $(DIRECTORY)/src/gallium/*/*/*/Makefile \
  334. $(DIRECTORY)/src/gallium/*/*/*/SConscript \
  335. $(DIRECTORY)/src/gallium/*/*/*/*.[ch] \
  336. $(DIRECTORY)/src/gallium/*/*/*/*.py
  337. DRI_FILES = \
  338. $(DIRECTORY)/include/GL/internal/dri_interface.h \
  339. $(DIRECTORY)/include/GL/internal/sarea.h \
  340. $(DIRECTORY)/src/glx/Makefile \
  341. $(DIRECTORY)/src/glx/*.[ch] \
  342. $(DIRECTORY)/src/mesa/drivers/dri/Makefile \
  343. $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
  344. $(DIRECTORY)/src/mesa/drivers/dri/dri.pc.in \
  345. $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
  346. $(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
  347. $(DIRECTORY)/src/mesa/drivers/dri/*/*.cpp \
  348. $(DIRECTORY)/src/mesa/drivers/dri/*/*/*.[chS] \
  349. $(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
  350. $(DIRECTORY)/src/mesa/drivers/dri/*/*/Makefile \
  351. $(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile
  352. SGI_GLU_FILES = \
  353. $(DIRECTORY)/src/glu/Makefile \
  354. $(DIRECTORY)/src/glu/glu.pc.in \
  355. $(DIRECTORY)/src/glu/sgi/Makefile \
  356. $(DIRECTORY)/src/glu/sgi/Makefile.mgw \
  357. $(DIRECTORY)/src/glu/sgi/Makefile.win \
  358. $(DIRECTORY)/src/glu/sgi/glu.def \
  359. $(DIRECTORY)/src/glu/sgi/dummy.cc \
  360. $(DIRECTORY)/src/glu/sgi/glu.exports \
  361. $(DIRECTORY)/src/glu/sgi/glu.exports.darwin \
  362. $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
  363. $(DIRECTORY)/src/glu/sgi/include/gluos.h \
  364. $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
  365. $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
  366. $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
  367. $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
  368. $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
  369. $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
  370. $(DIRECTORY)/src/glu/sgi/libtess/README \
  371. $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
  372. $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
  373. $(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
  374. GLW_FILES = \
  375. $(DIRECTORY)/src/glw/*.[ch] \
  376. $(DIRECTORY)/src/glw/Makefile* \
  377. $(DIRECTORY)/src/glw/README \
  378. $(DIRECTORY)/src/glw/glw.pc.in \
  379. $(DIRECTORY)/src/glw/depend
  380. GLUT_FILES = \
  381. $(DIRECTORY)/include/GL/glut.h \
  382. $(DIRECTORY)/include/GL/glutf90.h \
  383. $(DIRECTORY)/src/glut/glx/Makefile* \
  384. $(DIRECTORY)/src/glut/glx/SConscript \
  385. $(DIRECTORY)/src/glut/glx/depend \
  386. $(DIRECTORY)/src/glut/glx/glut.pc.in \
  387. $(DIRECTORY)/src/glut/glx/*def \
  388. $(DIRECTORY)/src/glut/glx/*.[ch] \
  389. $(DIRECTORY)/src/glut/beos/*.[ch] \
  390. $(DIRECTORY)/src/glut/beos/*.cpp \
  391. $(DIRECTORY)/src/glut/beos/Makefile
  392. DEPEND_FILES = \
  393. $(TOP)/src/mesa/depend \
  394. $(TOP)/src/glx/depend \
  395. $(TOP)/src/glw/depend \
  396. $(TOP)/src/glut/glx/depend \
  397. $(TOP)/src/glu/sgi/depend
  398. LIB_FILES = \
  399. $(MAIN_FILES) \
  400. $(MAPI_FILES) \
  401. $(ES_FILES) \
  402. $(EGL_FILES) \
  403. $(GALLIUM_FILES) \
  404. $(DRI_FILES) \
  405. $(SGI_GLU_FILES) \
  406. $(GLW_FILES)
  407. parsers: configure
  408. -@touch $(TOP)/configs/current
  409. $(MAKE) -C src/glsl glsl_parser.cpp glsl_parser.h glsl_lexer.cpp
  410. $(MAKE) -C src/glsl/glcpp glcpp-lex.c glcpp-parse.c glcpp-parse.h
  411. $(MAKE) -C src/mesa/program lex.yy.c program_parse.tab.c program_parse.tab.h
  412. # Everything for new a Mesa release:
  413. ARCHIVES = $(LIB_NAME).tar.gz \
  414. $(LIB_NAME).tar.bz2 \
  415. $(LIB_NAME).zip \
  416. $(GLUT_NAME).tar.gz \
  417. $(GLUT_NAME).tar.bz2 \
  418. $(GLUT_NAME).zip
  419. tarballs: md5
  420. rm -f ../$(LIB_NAME).tar
  421. # Helper for autoconf builds
  422. ACLOCAL = aclocal
  423. ACLOCAL_FLAGS =
  424. AUTOCONF = autoconf
  425. AC_FLAGS =
  426. aclocal.m4: configure.ac acinclude.m4
  427. $(ACLOCAL) $(ACLOCAL_FLAGS)
  428. configure: rm_depend configure.ac aclocal.m4 acinclude.m4
  429. $(AUTOCONF) $(AC_FLAGS)
  430. rm_depend:
  431. @for dep in $(DEPEND_FILES) ; do \
  432. rm -f $$dep ; \
  433. touch $$dep ; \
  434. done
  435. rm_config: parsers
  436. rm -f configs/current
  437. rm -f configs/autoconf
  438. $(LIB_NAME).tar: rm_config
  439. cd .. ; tar -cf $(DIRECTORY)/$(LIB_NAME).tar $(LIB_FILES)
  440. $(LIB_NAME).tar.gz: $(LIB_NAME).tar
  441. gzip --stdout --best $(LIB_NAME).tar > $(LIB_NAME).tar.gz
  442. $(GLUT_NAME).tar: rm_depend
  443. cd .. ; tar -cf $(DIRECTORY)/$(GLUT_NAME).tar $(GLUT_FILES)
  444. $(GLUT_NAME).tar.gz: $(GLUT_NAME).tar
  445. gzip --stdout --best $(GLUT_NAME).tar > $(GLUT_NAME).tar.gz
  446. $(LIB_NAME).tar.bz2: $(LIB_NAME).tar
  447. bzip2 --stdout --best $(LIB_NAME).tar > $(LIB_NAME).tar.bz2
  448. $(GLUT_NAME).tar.bz2: $(GLUT_NAME).tar
  449. bzip2 --stdout --best $(GLUT_NAME).tar > $(GLUT_NAME).tar.bz2
  450. $(LIB_NAME).zip: rm_config
  451. rm -f $(LIB_NAME).zip ; \
  452. cd .. ; \
  453. zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
  454. mv $(LIB_NAME).zip $(DIRECTORY)
  455. $(GLUT_NAME).zip:
  456. rm -f $(GLUT_NAME).zip ; \
  457. cd .. ; \
  458. zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \
  459. mv $(GLUT_NAME).zip $(DIRECTORY)
  460. md5: $(ARCHIVES)
  461. @-md5sum $(LIB_NAME).tar.gz
  462. @-md5sum $(LIB_NAME).tar.bz2
  463. @-md5sum $(LIB_NAME).zip
  464. @-md5sum $(GLUT_NAME).tar.gz
  465. @-md5sum $(GLUT_NAME).tar.bz2
  466. @-md5sum $(GLUT_NAME).zip
  467. .PHONY: tarballs rm_depend rm_config md5