home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / mesa / samples / makefile < prev    next >
Encoding:
Makefile  |  1998-01-31  |  862 b   |  56 lines

  1. # Makefile for sample programs
  2.  
  3.  
  4.  
  5. ##### MACROS #####
  6.  
  7. INCDIR = ../include
  8.  
  9. GL_LIBS = -L../lib -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)
  10.  
  11. LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
  12.  
  13. PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth \
  14.     eval fog font line logo nurb oglinfo olympic \
  15.     overlay point prim quad select shape \
  16.     speed sphere star stencil stretch texture \
  17.     tri wave
  18.  
  19.  
  20.  
  21. ##### RULES #####
  22.  
  23. .SUFFIXES:
  24. .SUFFIXES: .c
  25.  
  26. .c: $(LIB_DEP)
  27.     $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
  28.  
  29.  
  30.  
  31. ##### TARGETS #####
  32.  
  33. default:
  34.     @echo "Specify a target configuration"
  35.  
  36. clean:
  37.     -rm *.o *~
  38.  
  39. realclean:
  40.     -rm $(PROGS)
  41.     -rm *.o *~
  42.  
  43. targets: $(PROGS)
  44.  
  45. # execute all programs
  46. exec: $(PROGS)
  47.     @for prog in $(PROGS) ;            \
  48.     do                    \
  49.         echo -n "Running $$prog ..." ;    \
  50.         $$prog ;            \
  51.         echo ;                \
  52.     done
  53.  
  54.  
  55. include ../Make-config
  56.