]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/ogl/ogledit/makefile.unx
added new text event macros description
[wxWidgets.git] / contrib / samples / ogl / ogledit / makefile.unx
index 31b223db53e024ac8ac6fd3a980fa8cc0f99a675..76d11a5ebbb3d9f224cb02e26c24fca380fef119 100644 (file)
@@ -1,20 +1,39 @@
 #
 #
-# File:                makefile.unx
+# File:                Makefile
 # Author:      Julian Smart
 # Author:      Julian Smart
-# Created:     1998
+# Created:     1999
 # Updated:     
 # Updated:     
-# Copyright:   (c) 1998 Julian Smart
+# Copyright:   (c) 2000 Julian Smart
 #
 #
-# "%W% %G%"
+# Makefile for OGL demo (GTK version)
 #
 #
-# Makefile for OGLEdit example (UNIX).
+# This makefile requires wxWindows/GTK to be 
+# installed (possibly using "make install")
+# on your system.
+#
+
+CPP = gcc -g
+CC = gcc
+WXCONFIG=../../../../wx-config
+WXINCLUDE=-I../../../../include -I../../../include
+WXLIB=-L../../../../lib -L../../../src/ogl
+
+OBJECTS=ogledit.o palette.o doc.o view.o
+
+ogledit: $(OBJECTS)
+       $(CPP) -o ogledit $(OBJECTS) `$(WXCONFIG) --libs` $(WXLIB) -logl
 
 
-PROGRAM=ogledit
+ogledit.o: ogledit.cpp
+       $(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c ogledit.cpp
 
 
-OBJECTS=$(PROGRAM).o doc.o view.o palette.o
+palette.o: palette.cpp
+       $(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c palette.cpp
 
 
-# EXTRACPPFLAGS=-I$(WXDIR)/contrib/include
-EXTRALDLIBS=-logl$(GUISUFFIX)
+doc.o: doc.cpp
+       $(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c doc.cpp
 
 
-include ../../../../src/makeprog.env
+view.o: view.cpp
+       $(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c view.cpp
 
 
+clean: 
+       rm -f *.o ogledit