wxWidgets/samples/opengl/penguin/makefile.unx
Vadim Zeitlin a6f762a646 replaced "CC = gcc" and even stranger "CPP = gcc -g" (huh?) with
"CXX = $(shell wx-config --cxx)" in all makefile.unx


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-28 18:10:15 +00:00

34 lines
679 B
Plaintext

#
# File: makefile.unx
# Author: Julian Smart
# Created: 1998
# Updated:
# Copyright: (c) 1998 Julian Smart
#
# Makefile for penguin example (UNIX).
OPENGL_LIBS=-lGL -lGLU
#if you have old Mesa, try this:
#OPENGL_LIBS=-lMesaGL -lMesaGLU
CPP = g++
CXX = $(shell wx-config --cxx)
Penguin: penguin.o trackball.o lw.o
$(CPP) -o Penguin \
penguin.o trackball.o lw.o \
`wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
penguin.o: penguin.cpp
$(CPP) `wx-config --cxxflags` -I../../gtk -c penguin.cpp
lw.o: lw.cpp
$(CPP) `wx-config --cxxflags` -I../../gtk -c lw.cpp
trackball.o: trackball.c
$(CXX) `wx-config --cxxflags` -I../../gtk -c trackball.c
clean:
rm -f *.o Penguin