X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b089c5e8c8a2140258d150ca1ce42afd3b79e1b..3ff414ad4d9cecf9806fcc3b216f691beb72df58:/samples/opengl/cube/makefile.unx diff --git a/samples/opengl/cube/makefile.unx b/samples/opengl/cube/makefile.unx index ecf313ff33..c1becec762 100644 --- a/samples/opengl/cube/makefile.unx +++ b/samples/opengl/cube/makefile.unx @@ -1,23 +1,71 @@ -# -# File: makefile.unx -# Author: Julian Smart -# Created: 1998 -# Updated: -# Copyright: (c) 1998 Julian Smart -# -# "%W% %G%" -# -# Makefile for cube example (UNIX). +# ========================================================================= +# This makefile was generated by +# Bakefile 0.2.0 (http://bakefile.sourceforge.net) +# Do not modify, all changes will be overwritten! +# ========================================================================= -PROGRAM=cube -OPENGLHOME=/home/jacs/mesa/Mesa-2.3 -EXTRACPPFLAGS=-I$(OPENGLHOME)/include -EXTRALDFLAGS=-L$(OPENGLHOME)/lib -EXTRALDLIBS=-lMesaGL -lMesaGLU +# ------------------------------------------------------------------------- +# These are configurable options: +# ------------------------------------------------------------------------- -OBJECTS=$(PROGRAM).o +# C++ compiler +CXX = g++ -include ../../../src/makeprog.env +# Standard flags for C++ +CXXFLAGS = +# Standard preprocessor flags (common for CC and CXX) +CPPFLAGS = + +# Standard linker flags +LDFLAGS = + +# Location and arguments of wx-config script +WX_CONFIG = wx-config + +# C++ flags to use with wxWidgets code +WX_CXXFLAGS = `$(WX_CONFIG) --cxxflags` + + + +# ------------------------------------------------------------------------- +# Do not modify the rest of this file! +# ------------------------------------------------------------------------- + +### Variables: ### + +CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD +CUBE_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) +CUBE_OBJECTS = \ + cube_cube.o + +### Conditionally set variables: ### + + + +### Targets: ### + +all: cube + +install: all + +uninstall: + +clean: + rm -f ./*.o + rm -f ./*.d + rm -f cube + +cube: $(CUBE_OBJECTS) + $(CXX) -o $@ $(CUBE_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) --libs gl,core,base` + +cube_cube.o: ./cube.cpp + $(CXX) -c -o $@ $(CUBE_CXXFLAGS) $(CPPDEPS) $< + +.PHONY: all install uninstall clean + + +# Dependencies tracking: +-include ./*.d