]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/ogl/studio/makefile.unx
wxMutexGuiEnter/Leave didn't work because this file is compiled with wxUSE_GUI=0
[wxWidgets.git] / contrib / samples / ogl / studio / makefile.unx
index 5fca57a097e45433f4f78de287cf0938b31a8932..51a15a4d4fd1e91889e07a5bfe9bb036121af41e 100644 (file)
@@ -1,39 +1,56 @@
 #
-# File:                makefile.unx
+# File:                Makefile
 # Author:      Julian Smart
-# Created:     1998
+# Created:     1999
 # Updated:     
-# Copyright:   (c) 1998 Julian Smart
+# Copyright:   (c) 2000 Julian Smart
 #
-# "%W% %G%"
+# Makefile for OGL demo (GTK version)
 #
-# Makefile for OGL Studio (UNIX).
+# This makefile requires wxWindows/GTK to be 
+# installed (possibly using "make install")
+# on your system.
+#
+
+CXX = $(shell wx-config --cxx)
+WXCONFIG=../../../../wx-config
+WXINCLUDE=-I../../../../include -I../../../include
+WXLIB=-L../../../../lib -L../../../src/ogl
+
+OBJECTS=studio.o cspalette.o csprint.o dialogs.o doc.o mainfrm.o project.o shapes.o symbols.o view.o
 
-PROGRAM=studio
+studio: $(OBJECTS)
+       $(CXX) -o studio $(OBJECTS) `$(WXCONFIG) --libs` $(WXLIB) -logl
 
-OBJECTS=$(PROGRAM).o doc.o shapes.o symbols.o view.o cspalette.o\
-  mainfrm.o project.o dialogs.o csprint.o
+studio.o: studio.cpp
+       $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c studio.cpp
 
-EXTRACPPFLAGS=-I$(WXDIR)/utils/ogl/src -I./bitmaps
-EXTRALDLIBS=-logl$(GUISUFFIX)
+cspalette.o: cspalette.cpp
+       $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c cspalette.cpp
 
-#WXDIR=/home/jacs/wx2
+doc.o: doc.cpp
+       $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c doc.cpp
 
-include $(WXDIR)/src/makeprog.env
+view.o: view.cpp
+       $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c view.cpp
 
-cleanogl:
-       cd $(WXDIR)/utils/ogl/src; make -f makefile.unx cleanmotif
+dialogs.o: dialogs.cpp
+       $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c dialogs.cpp
 
-ogl:
-       cd $(WXDIR)/utils/ogl/src; make -f makefile.unx motif
+mainfrm.o: mainfrm.cpp
+       $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c mainfrm.cpp
 
-wx:
-       cd $(WXDIR)/src/motif; make -f makefile.unx motif
+project.o: project.cpp
+       $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c project.cpp
 
-cleanwx:
-       cd $(WXDIR)/src/motif; make -f makefile.unx cleanmotif
+shapes.o: shapes.cpp
+       $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c shapes.cpp
 
-cleanall: cleanmotif cleanogl cleanwx
+symbols.o: symbols.cpp
+       $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c symbols.cpp
 
-makeall: wx ogl motif
+csprint.o: csprint.cpp
+       $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c csprint.cpp
 
+clean: 
+       rm -f *.o studio