home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / System / Mesa-3.1 / src / Makefile.AmigaOS < prev    next >
Makefile  |  2000-01-07  |  3KB  |  169 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.1
  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)/$(GL_LIB).static
  49.  
  50. ## no libraries to build
  51. LIBS = $(LIB_DIR)/$(GL_LIB).static
  52.  
  53. ## no dirs to recurse
  54. DIRS =
  55.  
  56. ## sources to process
  57. CORE_SOURCES =    accum.c \
  58.     alpha.c \
  59.     alphabuf.c \
  60.     api1.c \
  61.     api2.c \
  62.     apiext.c \
  63.     attrib.c \
  64.     bbox.c \
  65.     bitmap.c \
  66.     blend.c \
  67.     clip.c \
  68.     colortab.c \
  69.     config.c \
  70.     context.c \
  71.     copypix.c \
  72.     cva.c \
  73.     debug_xform.c \
  74.     depth.c \
  75.     dlist.c \
  76.     drawpix.c \
  77.     enable.c \
  78.     enums.c \
  79.     eval.c \
  80.     extensions.c \
  81.     feedback.c \
  82.     fog.c \
  83.     get.c \
  84.     hash.c \
  85.     image.c \
  86.     light.c \
  87.     lines.c \
  88.     logic.c \
  89.     masking.c \
  90.     matrix.c \
  91.     misc.c \
  92.     mmath.c \
  93.     mthreads.c \
  94.     pb.c \
  95.     pipeline.c \
  96.     pixel.c \
  97.     pointers.c \
  98.     points.c \
  99.     polygon.c \
  100.     quads.c \
  101.     rastpos.c \
  102.     readpix.c \
  103.     rect.c \
  104.     scissor.c \
  105.     shade.c \
  106.     span.c \
  107.     stages.c \
  108.     stencil.c \
  109.     teximage.c \
  110.     texobj.c \
  111.     texstate.c \
  112.     texture.c \
  113.     translate.c \
  114.     triangle.c \
  115.     varray.c \
  116.     vb.c \
  117.     vbcull.c \
  118.     vbfill.c \
  119.     vbindirect.c \
  120.     vbrender.c \
  121.     vbxform.c \
  122.     vector.c \
  123.     vertices.c \
  124.     winpos.c \
  125.     xform.c \
  126.     zoom.c \
  127.  
  128. # references to CC:
  129. #  api1.c
  130. #  api2.c
  131. #  apiext.c
  132. #  context.c
  133.  
  134. DRIVER_SOURCES = OSmesa/osmesa.c \
  135.     AOS/amesatools.c    \
  136.     AOS/amigamesa.c     \
  137.     AOS/cmnDisplay.c     \
  138.     AOS/natDisplay.c     \
  139.     AOS/cybDisplay.c    \
  140.     AOS/wrpDisplay.c    \
  141.     AOS/palettes.c         \
  142.     AOS/mempools.c
  143. ASM_SOURCES = 
  144. SRCS = $(CORE_SOURCES) $(DRIVER_SOURCES) $(ASM_SOURCES)
  145.  
  146. ## programs to create
  147. PRGS = 
  148.  
  149. # MASTER-CONFIG #
  150.  
  151. include $(ROOT)/Make-config.AmigaOS
  152.  
  153. ##### RULES #####
  154.  
  155. ## implicit rule to make object-files
  156. %.c: %.E
  157.     $(CC) -E -I. -I.. -I$(INC_DIR) $(CFLAGS) -x c $< -o $@ -P -C
  158. #    @-indentT $@
  159. %.o: %.c
  160.     $(CC) -c -I. -I.. -I$(INC_DIR) $(CFLAGS) -resident32 -malways-restore-a4 $< -o $@
  161. %_p.o: %.c
  162.     $(CC) -c -I. -I.. -I$(INC_DIR) $(CFLAGS) $< -o $@
  163. %_f.o: %.c
  164.     $(CC) -c -I. -I.. -I$(INC_DIR) $(CFLAGS) -resident32 -mrestore-a4 $< -o $@ -DNDEBUG -DNODEBUG
  165.  
  166. # Make the library
  167. $(LIB_DIR)/$(GL_LIB).static: $(OBJS)
  168.     $(MAKELIB) $(GL_LIB) $(MAJOR) $(MINOR) $^
  169.