--- Makefile.orig 2010-07-10 13:45:36.000000000 +0400 +++ Makefile 2010-08-31 19:34:40.000000000 +0400 @@ -7,9 +7,9 @@ SRCDIR = . CC = c++ -LDFLAGS = -L/usr/lib -L/usr/local/lib -lm -lSDL -lSDL_ttf -lfftw3f -INCFLAGS = -I/usr/include/SDL -CFLAGS = -O3 -fomit-frame-pointer -finline-functions -Wall -Wno-unused -malign-double -funroll-all-loops -DLINUX +LDFLAGS = -L${LOCALBASE}/lib -lm `${SDL_CONFIG} --libs` -lSDL_ttf -lfftw3f +INCFLAGS = -I${LOCALBASE}/include `${SDL_CONFIG} --cflags` +CXXFLAGS += -Wall -Wno-unused -DLINUX LDSOFLAGS = -Wl OBJS = quantumminigolf.o Renderer.o ClassicSimulator.o QuantumSimulator.o SoftwareTracker.o Tracker.o TrackSelector.o @@ -18,12 +18,12 @@ # pattern rule to compile object files from C files # might not work with make programs other than GNU make %.o : %.cpp Makefile - $(CC) $(INCFLAGS) $(CFLAGS) -c $< -o $@ + $(CXX) $(INCFLAGS) $(CXXFLAGS) -c $< -o $@ all: $(EXE) $(EXE): $(OBJS) Makefile - $(CC) -o $(EXE) $(OBJS) $(LDFLAGS) $(CFLAGS) + $(CXX) -o $(EXE) $(OBJS) $(LDFLAGS) $(CXXFLAGS) .PHONY : clean clean: