home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / System / Mesa-3.1 / Mesa-aux / book.aux / Makefile.AmigaOS < prev    next >
Makefile  |  1999-07-12  |  3KB  |  93 lines

  1. # $Id: Makefile,v 3.3 1998/06/10 02:52:20 brianp Exp $
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  3.0
  5. # Copyright (C) 1995-1998  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. # Makefile for GLUT-based demo programs for Unix/X11
  22.  
  23. # $Log: Makefile,v $
  24. # Revision 3.3  1998/06/10 02:52:20  brianp
  25. # added multiext example
  26. #
  27. # Revision 3.2  1998/04/21 23:58:41  brianp
  28. # added LIBDIR variable
  29. #
  30. # Revision 3.1  1998/02/21 01:31:56  brianp
  31. # added multitex and renormal demos
  32. #
  33. # Revision 3.0  1998/02/14 18:30:39  brianp
  34. # initial rev
  35. #
  36.  
  37. ROOT = ..
  38.  
  39. ##### MACROS #####
  40.  
  41. ## include-directory (replace by ${srcdir}/include later)
  42. INC_DIR = $(ROOT)/include
  43.  
  44. ## lib-directory (replace by ${srcdir}/lib later)
  45. LIB_DIR = $(ROOT)/lib
  46.  
  47. ## library dependencies
  48. LIB_DEP = $(LIB_DIR)/$(AUX_LIB).static    \
  49.     $(LIB_DIR)/$(TK_LIB).static    \
  50.     $(LIB_DIR)/$(GLU_LIB).static    \
  51.     $(LIB_DIR)/$(GL_LIB).static
  52.  
  53. ## no libraries to build
  54. LIBS = 
  55.  
  56. ## no dirs to recurse
  57. DIRS = 
  58.  
  59. ## sources to process
  60. SRCS = accanti.c accanti2.c accnot.c accpersp.c accum.c aim.c alpha.c alpha3D.c anti.c        \
  61.     antiindex.c antipindex.c antipoint.c antipoly.c bezcurve.c bezmesh.c bezsurf.c        \
  62.     checker.c checker2.c chess.c clip.c colormat.c cone.c cube.c curve.c depthcue.c disk.c    \
  63.     dof.c dofnot.c double.c drawf.c feedback.c fog.c fogindex.c font.c light.c linelist.c lines.c    \
  64.     list.c list2.c maplight.c material.c mipmap.c model.c movelight.c nurbs.c pickdepth.c    \
  65.     pickline.c picksquare.c plane.c planet.c planetup.c polys.c robot.c sccolorlight.c    \
  66.     scene.c scenebamb.c sceneflat.c select.c simple.c smooth.c sphere.c stencil.c stroke.c    \
  67.     surface.c tea.c teaambient.c teapots.c texgen.c texturesurf.c trim.c
  68. # xfont.c is X11
  69.  
  70. ## programs to create
  71. PRGS = accanti accanti2 accnot accpersp accum aim alpha alpha3D anti        \
  72.     antiindex antipindex antipoint antipoly bezcurve bezmesh bezsurf    \
  73.     checker checker2 chess clip colormat cone cube curve depthcue disk    \
  74.     dof dofnot double drawf feedback fog fogindex font light linelist lines    \
  75.     list list2 maplight material mipmap model movelight nurbs pickdepth    \
  76.     pickline picksquare plane planet planetup polys robot sccolorlight    \
  77.     scene scenebamb sceneflat select simple smooth sphere stencil stroke    \
  78.     surface tea teaambient teapots texgen texturesurf trim
  79. # xfont is X11
  80.  
  81. # MASTER-CONFIG #
  82.  
  83. include $(ROOT)/Make-config.AmigaOS
  84.  
  85. ##### RULES #####
  86.  
  87. ## implicit rule to make object-files
  88. %$(O): %.c
  89.     $(CC) -I$(INC_DIR) $(CFLAGS) $< -s -c -o $@
  90.  
  91. %: %$(O) $(PRG_DEP)
  92.     $(CC) -I. -I$(INC_DIR) $(CFLAGS) $< $(LIB_LINK) -s -o $@
  93.