--- Makefile.orig 2010-10-05 16:47:06.968648948 +0000 +++ Makefile 2010-10-05 16:48:42.770653951 +0000 @@ -27,10 +27,10 @@ OpenJazz: $(objects) - cc -Wall -o OpenJazz -lSDL -lstdc++ -lz $(objects) + ${CXX} ${LDFLAGS} -Wall -o OpenJazz $(objects) -lz -lm %.o: %.cpp - cc -Wall -DUSE_SOCKETS -DSCALE -Isrc -O2 -c $< -o $@ + ${CXX} ${CPPFLAGS} ${CFLAGS} -Wall -DUSE_SOCKETS -DSCALE -Isrc -c $< -o $@ clean: rm -f OpenJazz $(objects)