X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fc25a89ac1e6c5208db24bfc0abc8666b791dc6..16aa9c84bca0619ff0a89267772ca30d80324951:/contrib/samples/ogl/studio/makefile.unx diff --git a/contrib/samples/ogl/studio/makefile.unx b/contrib/samples/ogl/studio/makefile.unx index 5fca57a097..51a15a4d4f 100644 --- a/contrib/samples/ogl/studio/makefile.unx +++ b/contrib/samples/ogl/studio/makefile.unx @@ -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