home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / System / Mesa-3.1 / Mesa-aux / src-aux.aos / Makefile.AmigaOS < prev    next >
Makefile  |  1999-07-04  |  2KB  |  80 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.  
  50. ## no libraries to build
  51. LIBS = $(LIB_DIR)/$(AUX_LIB).static
  52.  
  53. ## no dirs to recurse
  54. DIRS =
  55.  
  56. ## sources to process
  57.  
  58. SRCS = glaux.c font.c image.c shapes.c teapot.c vect3d.c xxform.c
  59.  
  60. ## programs to create
  61. PRGS = 
  62.  
  63. # MASTER-CONFIG #
  64.  
  65. include $(ROOT)/Make-config.AmigaOS
  66.  
  67. ##### RULES #####
  68.  
  69. ## implicit rule to make object-files
  70. %.o: %.c
  71.     $(CC) -c -I. -I.. -I$(INC_DIR) $(CFLAGS) -resident32 -malways-restore-a4 $< -o $@
  72. %_p.o: %.c
  73.     $(CC) -c -I. -I.. -I$(INC_DIR) $(CFLAGS) $< -o $@
  74. %_f.o: %.c
  75.     $(CC) -c -I. -I$(INC_DIR) $(CFLAGS) -resident32 -mrestore-a4 $< -o $@ -DNDEBUG -DNODEBUG
  76.  
  77. # Make the library
  78. $(LIB_DIR)/$(AUX_LIB).static: $(OBJS)
  79.     $(MAKELIB) $(AUX_LIB) $(MAJOR) $(MINOR) $^
  80.