make g++ compile with -O3

This commit is contained in:
Elias Naur 2002-11-22 09:34:10 +00:00
parent e6eaaa96ae
commit 1019ebb695
1 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ LIBCOBJS=$(LIBCSRC:.c=.o)
LIBOBJS=$(LIBCOBJS) $(LIBCPPOBJS)
#DEBUG_FLAGS=-D_DEBUG
LINKOPTS=-L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lGL -lGLU -lopenal
BUILDOPTS=-O3 -Wall
all: liblwjgl.so
@ -65,7 +66,7 @@ liblwjgl.so: $(LIBOBJS)
.SUFFIXES: .cpp .so .o .java .h .class .c
%.o : %.cpp
$(G++) $(DEBUG_FLAGS) -Wall -I$(JAVAHOME)/include -I../common -I$(JAVAHOME)/include/linux -c -o $@ $<
$(G++) $(DEBUG_FLAGS) $(BUILDOPTS) -I$(JAVAHOME)/include -I../common -I$(JAVAHOME)/include/linux -c -o $@ $<
%.o : %.c
$(GCC) $(DEBUG_FLAGS) -Wall -I$(JAVAHOME)/include -I../common -I$(JAVAHOME)/include/linux -c -o $@ $<