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
This commit is contained in:
@@ -15,7 +15,7 @@ OPENGL_LIBS=-lGL -lGLU
|
||||
|
||||
PROGRAM=cube
|
||||
|
||||
CC = gcc
|
||||
CXX = $(shell wx-config --cxx)
|
||||
|
||||
OBJECTS = $(PROGRAM).o
|
||||
|
||||
@@ -24,12 +24,12 @@ OBJECTS = $(PROGRAM).o
|
||||
.SUFFIXES: .o .cpp
|
||||
|
||||
.cpp.o :
|
||||
$(CC) -c `wx-config --cxxflags` -o $@ $<
|
||||
$(CXX) -c `wx-config --cxxflags` -o $@ $<
|
||||
|
||||
all: $(PROGRAM)
|
||||
|
||||
$(PROGRAM): $(OBJECTS)
|
||||
$(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
|
||||
$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *.o $(PROGRAM)
|
||||
|
@@ -15,7 +15,7 @@ OPENGL_LIBS=-lGL -lGLU
|
||||
|
||||
PROGRAM=isosurf
|
||||
|
||||
CC = gcc
|
||||
CXX = $(shell wx-config --cxx)
|
||||
|
||||
OBJECTS = $(PROGRAM).o
|
||||
|
||||
@@ -24,12 +24,12 @@ OBJECTS = $(PROGRAM).o
|
||||
.SUFFIXES: .o .cpp
|
||||
|
||||
.cpp.o :
|
||||
$(CC) -c `wx-config --cxxflags` -o $@ $<
|
||||
$(CXX) -c `wx-config --cxxflags` -o $@ $<
|
||||
|
||||
all: $(PROGRAM) isosurf.dat
|
||||
|
||||
$(PROGRAM): $(OBJECTS)
|
||||
$(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
|
||||
$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *.o $(PROGRAM)
|
||||
|
@@ -12,7 +12,7 @@ OPENGL_LIBS=-lGL -lGLU
|
||||
#OPENGL_LIBS=-lMesaGL -lMesaGLU
|
||||
|
||||
CPP = g++
|
||||
CC = gcc
|
||||
CXX = $(shell wx-config --cxx)
|
||||
|
||||
Penguin: penguin.o trackball.o lw.o
|
||||
$(CPP) -o Penguin \
|
||||
@@ -26,7 +26,7 @@ lw.o: lw.cpp
|
||||
$(CPP) `wx-config --cxxflags` -I../../gtk -c lw.cpp
|
||||
|
||||
trackball.o: trackball.c
|
||||
$(CC) `wx-config --cxxflags` -I../../gtk -c trackball.c
|
||||
$(CXX) `wx-config --cxxflags` -I../../gtk -c trackball.c
|
||||
|
||||
clean:
|
||||
rm -f *.o Penguin
|
||||
|
Reference in New Issue
Block a user