home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 2000 April & May / AMIGA_2000_04.iso / patches / mesa3.1 / samples / makefile.am < prev    next >
Makefile  |  2000-01-01  |  1KB  |  46 lines

  1. ## Process this file with automake to produce Makefile.in
  2.  
  3. #AUTOMAKE_OPTIONS = no-dependencies
  4.  
  5. INCLUDES = -I$(top_srcdir)/include $(GLUT_CFLAGS)
  6.  
  7. check_PROGRAMS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth \
  8.     eval fog font line logo nurb oglinfo olympic overlay point prim \
  9.     quad select shape sphere star stencil stretch texture tri wave
  10.  
  11.  
  12. EXTRA_PROGRAMS = rgbtoppm
  13.  
  14. EXTRA_DIST = tkmap.c loadppm.c
  15.  
  16. LDADD = $(GLUT_LIBS) $(top_builddir)/src-glu/libGLU.la \
  17.     $(top_builddir)/src/libGL.la -lm
  18.  
  19. # default image
  20. IMAGE = girl
  21.  
  22. # use double buffering if possible
  23. BUFFER = -db
  24.  
  25. CLEANFILES = rgbtoppm $(IMAGE).ppm
  26.  
  27. # execute all programs
  28. exec: $(check_PROGRAMS) $(IMAGE).ppm
  29.     @for prog in $(check_PROGRAMS);    \
  30.     do                \
  31.      echo -n "Running $$prog ..." ;    \
  32.      case "$$prog" in        \
  33.      copy) \
  34.         ./$$prog -f $(IMAGE).ppm ;;    \
  35.      quad | sphere | stretch | texture) \
  36.         ./$$prog $(BUFFER) -f $(IMAGE).ppm ;; \
  37.      bitmap* | blend* | font | select | shape | stencil) \
  38.         ./$$prog ;;         \
  39.      *) ./$$prog $(BUFFER) ;;    \
  40.      esac ;                \
  41.      echo ;                \
  42.     done
  43.  
  44. $(IMAGE).ppm: rgbtoppm
  45.     ./rgbtoppm $(top_srcdir)/images/$(IMAGE).rgb > $(IMAGE).ppm
  46.