--- JLib/Makefile.orig 2006-03-26 23:38:39.000000000 -0500 +++ JLib/Makefile 2006-03-27 01:16:36.000000000 -0500 @@ -19,7 +19,7 @@ endif # Define -D_JLIB_DEBUG to debug JLib. Compile the app to debug also with this flag -CFLAGS=-I. -O3 -ffast-math -fPIC -Wall -Wshadow `$(SDL_CONFIG) --cflags` +CXXFLAGS=-I. $(CPU_OPTS) `$(SDL_CONFIG) --cflags` # Sample LDFLAGS for applications # LDFLAGS=-L. -ffast-math -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs` @@ -28,15 +28,14 @@ # JLib libJLib: $(JLIB_OBJS) - g++ -shared -fPIC -o $@.so $? \ - && ar rvus $@.a $? \ + ar rvus $@.a $? $(GRAPHICS)/%.o: $(GRAPHICS)/%.cpp - g++ $(CFLAGS) -c -o $@ $< + $(CXX) $(CXXFLAGS) -c -o $@ $< $(UTIL)/%.o: $(UTIL)/%.cpp - g++ $(CFLAGS) -c -o $@ $< + $(CXX) $(CXXFLAGS) -c -o $@ $< $(MATH)/%.o: $(MATH)/%.cpp - g++ $(CFLAGS) -c -o $@ $< + $(CXX) $(CXXFLAGS) -c -o $@ $< .PHONY: install install: --- src/Makefile.orig 2006-03-27 01:26:18.000000000 -0500 +++ src/Makefile 2006-03-27 01:27:31.000000000 -0500 @@ -30,7 +30,7 @@ DEFINES = -DHC_DATA_DIR=\"$(HC_DATA)\" -DHCED_DATA_DIR=\"$(HCED_DATA)\" -all: JLib HC HCed +all: HC HCed HC_OBJ_MAIN=HolotzCastle.o HC_OBJS=HCUtil.o HCTimer.o HCLoadSaveSlot.o HCPlaylist.o HCPreferences.o HCTheme.o HCText.o \ @@ -42,8 +42,8 @@ # Definir -D_JLIB_DEBUG para debug con JLib. Ponerlo tambiƩn en el Makefile de JLib. # Define -D_JLIB_DEBUG for JLib debug mode. Put it also in JLib's Makefile. -CFLAGS=-I. -I../JLib -O3 -Wall -Werror -Wshadow $(CPU_OPTS) -ffast-math -c `$(SDL_CONFIG) --cflags` -LDFLAGS=-L. -ffast-math -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs` +CFLAGS=-I. -I../JLib $(CPU_OPTS) -c `$(SDL_CONFIG) --cflags` +LDFLAGS=-L. -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs` JLib: