"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
		
			
				
	
	
		
			36 lines
		
	
	
		
			566 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			566 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#
 | 
						|
# File:		makefile.unx
 | 
						|
# Author:	Julian Smart
 | 
						|
# Created:	1998
 | 
						|
# Updated:	
 | 
						|
# Copyright:	(c) 1998 Julian Smart
 | 
						|
#
 | 
						|
# "%W% %G%"
 | 
						|
#
 | 
						|
# Makefile for cube example (UNIX).
 | 
						|
 | 
						|
OPENGL_LIBS=-lGL -lGLU
 | 
						|
#if you have old Mesa, try this:
 | 
						|
#OPENGL_LIBS=-lMesaGL -lMesaGLU
 | 
						|
 | 
						|
PROGRAM=cube
 | 
						|
 | 
						|
CXX = $(shell wx-config --cxx)
 | 
						|
 | 
						|
OBJECTS = $(PROGRAM).o
 | 
						|
 | 
						|
# implementation
 | 
						|
 | 
						|
.SUFFIXES:	.o .cpp
 | 
						|
 | 
						|
.cpp.o :
 | 
						|
	$(CXX) -c `wx-config --cxxflags` -o $@ $<
 | 
						|
 | 
						|
all:    $(PROGRAM)
 | 
						|
 | 
						|
$(PROGRAM):	$(OBJECTS)
 | 
						|
	$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
 | 
						|
 | 
						|
clean: 
 | 
						|
	rm -f *.o $(PROGRAM)
 |