Updated linux Makefile

This commit is contained in:
Elias Naur 2002-11-19 14:58:34 +00:00
parent f2b0cf2e6a
commit 762df9ca12
1 changed files with 6 additions and 2 deletions

View File

@ -39,7 +39,8 @@
# version $Revision$
#
GCC = g++
GCC = gcc
G++ = g++
LINK = g++
JAVAHOME=/usr/java/j2sdk1.4.1_01
LIBCSRC=../common/extgl.c
@ -61,9 +62,12 @@ liblwjgl.so: $(LIBOBJS)
$(LINK) -shared -o $@ $^ $(LINKOPTS)
cp $@ ../../../bin/
.SUFFIXES: .cpp .so .o .java .h .class
.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 $@ $<
%.o : %.c
$(GCC) $(DEBUG_FLAGS) -Wall -I$(JAVAHOME)/include -I../common -I$(JAVAHOME)/include/linux -c -o $@ $<
testprog : main.o