home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / samples / opengl / penguin / makefile.unx < prev    next >
Makefile  |  2001-11-30  |  712b  |  34 lines

  1. #
  2. # File:        makefile.unx
  3. # Author:    Julian Smart
  4. # Created:    1998
  5. # Updated:    
  6. # Copyright:    (c) 1998 Julian Smart
  7. #
  8. # Makefile for penguin example (UNIX).
  9.  
  10. OPENGL_LIBS=-lGL -lGLU
  11. #if you have old Mesa, try this:
  12. #OPENGL_LIBS=-lMesaGL -lMesaGLU
  13.  
  14. CPP = g++
  15. CXX = $(shell wx-config --cxx)
  16.  
  17. Penguin: penguin.o trackball.o lw.o
  18.     $(CPP) -o Penguin \
  19.     penguin.o trackball.o lw.o \
  20.     `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
  21.  
  22. penguin.o: penguin.cpp
  23.     $(CPP) `wx-config --cxxflags` -I../../gtk -c penguin.cpp
  24.  
  25. lw.o: lw.cpp
  26.     $(CPP) `wx-config --cxxflags` -I../../gtk -c lw.cpp
  27.  
  28. trackball.o: trackball.c
  29.     $(CXX) `wx-config --cxxflags` -I../../gtk -c trackball.c
  30.  
  31. clean: 
  32.     rm -f *.o Penguin
  33.  
  34.