home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / samples / opengl / cube / makefile.unx < prev    next >
Makefile  |  2001-11-28  |  601b  |  36 lines

  1. #
  2. # File:        makefile.unx
  3. # Author:    Julian Smart
  4. # Created:    1998
  5. # Updated:    
  6. # Copyright:    (c) 1998 Julian Smart
  7. #
  8. # "%W% %G%"
  9. #
  10. # Makefile for cube example (UNIX).
  11.  
  12. OPENGL_LIBS=-lGL -lGLU
  13. #if you have old Mesa, try this:
  14. #OPENGL_LIBS=-lMesaGL -lMesaGLU
  15.  
  16. PROGRAM=cube
  17.  
  18. CXX = $(shell wx-config --cxx)
  19.  
  20. OBJECTS = $(PROGRAM).o
  21.  
  22. # implementation
  23.  
  24. .SUFFIXES:    .o .cpp
  25.  
  26. .cpp.o :
  27.     $(CXX) -c `wx-config --cxxflags` -o $@ $<
  28.  
  29. all:    $(PROGRAM)
  30.  
  31. $(PROGRAM):    $(OBJECTS)
  32.     $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
  33.  
  34. clean: 
  35.     rm -f *.o $(PROGRAM)
  36.