Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.X11 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # $Id: Makefile.X11,v 1.16 2000/12/24 22:53:54 pesco Exp $
  2. # Mesa 3-D graphics library
  3. # Version: 3.5
  4. # Copyright (C) 1995-2000 Brian Paul
  5. # Makefile for GLUT-based demo programs for Unix/X11
  6. ##### MACROS #####
  7. INCDIR = ../include
  8. LIBDIR = ../lib
  9. GL_LIBS = -L$(LIBDIR) -lglut -lGLU -lGL $(APP_LIB_DEPS)
  10. OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
  11. LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
  12. PROGS = bounce \
  13. clearspd \
  14. cubemap \
  15. drawpix \
  16. fire \
  17. gamma \
  18. gears \
  19. geartrain \
  20. glinfo \
  21. gloss \
  22. gltestperf \
  23. glutfx \
  24. isosurf \
  25. ipers \
  26. lodbias \
  27. morph3d \
  28. multiarb \
  29. occlude \
  30. osdemo \
  31. paltex \
  32. pixeltex \
  33. pointblast \
  34. ray \
  35. readpix \
  36. reflect \
  37. renormal \
  38. spectex \
  39. stex3d \
  40. teapot \
  41. terrain \
  42. tessdemo \
  43. texcyl \
  44. texdown \
  45. texenv \
  46. texobj \
  47. trispd \
  48. tunnel \
  49. tunnel2 \
  50. winpos
  51. ##### RULES #####
  52. .SUFFIXES:
  53. .SUFFIXES: .c
  54. # make executable from .c file:
  55. .c: $(LIB_DEP)
  56. $(CC) -I$(INCDIR) -I../util $(CFLAGS) $< $(GL_LIBS) -o $@
  57. # special case: need the -lOSMesa library:
  58. osdemo: osdemo.c
  59. $(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
  60. ##### TARGETS #####
  61. default:
  62. @echo "Specify a target configuration"
  63. clean:
  64. -rm *.o *~
  65. realclean:
  66. -rm $(PROGS)
  67. -rm *.o *~
  68. targets: $(PROGS)
  69. # execute all programs
  70. exec: $(PROGS)
  71. @for prog in $(PROGS) ; \
  72. do \
  73. echo -n "Running $$prog ..." ; \
  74. $$prog ; \
  75. echo ; \
  76. done
  77. include ../Make-config