home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / software / sviluppo / mesa-tk / samples.tk / makefile.amigaos < prev    next >
Makefile  |  1999-07-04  |  2KB  |  84 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)/$(TK_LIB).static    \
  49.     $(LIB_DIR)/$(GLU_LIB).static    \
  50.     $(LIB_DIR)/$(GL_LIB).static
  51.  
  52. ## no libraries to build
  53. LIBS = 
  54.  
  55. ## no dirs to recurse
  56. DIRS =
  57.  
  58. ## sources to process
  59. SRCS = accum.c bitmap1.c bitmap2.c blendeq.c blendxor.c copy.c cursor.c depth.c \
  60.     eval.c fog.c font.c line.c logo.c nurb.c olympic.c \
  61.     overlay.c point.c prim.c quad.c select.c shape.c \
  62.     speed.c sphere.c star.c stencil.c stretch.c texture.c \
  63.     tri.c wave.c
  64.  
  65. ## programs to create
  66. PRGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth \
  67.     eval fog font line logo nurb olympic \
  68.     overlay point prim quad select shape \
  69.     speed sphere star stencil stretch texture \
  70.     tri wave
  71.  
  72. # MASTER-CONFIG #
  73.  
  74. include $(ROOT)/Make-config.AmigaOS
  75.  
  76. ##### RULES #####
  77.  
  78. ## implicit rule to make object-files
  79. %$(O): %.c
  80.     $(CC) -I$(INC_DIR) $(CFLAGS) $< -s -c -o $@
  81.  
  82. %: %$(O) $(PRG_DEP)
  83.     $(CC) -I. -I$(INC_DIR) $(CFLAGS) $< $(LIB_LINK) -s -o $@
  84.