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 / contrib / samples / ogl / ogledit / makefile.unx < prev    next >
Makefile  |  2001-11-30  |  977b  |  39 lines

  1. #
  2. # File:        Makefile
  3. # Author:    Julian Smart
  4. # Created:    1999
  5. # Updated:    
  6. # Copyright:    (c) 2000 Julian Smart
  7. #
  8. # Makefile for OGL demo (GTK version)
  9. #
  10. # This makefile requires wxWindows/GTK to be 
  11. # installed (possibly using "make install")
  12. # on your system.
  13. #
  14.  
  15. CXX = $(shell wx-config --cxx)
  16. WXCONFIG=../../../../wx-config
  17. WXINCLUDE=-I../../../../include -I../../../include
  18. WXLIB=-L../../../../lib -L../../../src/ogl
  19.  
  20. OBJECTS=ogledit.o palette.o doc.o view.o
  21.  
  22. ogledit: $(OBJECTS)
  23.     $(CXX) -o ogledit $(OBJECTS) `$(WXCONFIG) --libs` $(WXLIB) -logl
  24.  
  25. ogledit.o: ogledit.cpp
  26.     $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c ogledit.cpp
  27.  
  28. palette.o: palette.cpp
  29.     $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c palette.cpp
  30.  
  31. doc.o: doc.cpp
  32.     $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c doc.cpp
  33.  
  34. view.o: view.cpp
  35.     $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c view.cpp
  36.  
  37. clean: 
  38.     rm -f *.o ogledit
  39.