
#this line forces low res tesselation (3D on RedHat 7 and NVidia kernel
#seems buggy with high tesselation, however it works perfect with
#SGI SuSE 6.4 and Propack 1.3)
#DEFINES=-DOPENGL -DCPU=686 -DFORCE_LOWRES

DEFINES=-DOPENGL -DCPU=686

INCLUDES=-I.

SOURCES= main.cpp flotte.cpp
OBJECTS= main.o flotte.o
HEADERS= flotte.h



#if problem should work for SuSE 6.3 (Propack 1.2)
#LIBS= -lm -lGL -lGLU -lglut -lz -lXmu -lXi -lXext -lX11

#standard : should work for SuSE 6.4+ (Propack 1.3) and RedHat 7 (NVidia kernel)
#LIBS= -lm -lGL -lGLU -lglut -lz

#BeOS
LIBS= -lGL -lz ./libglut.so


CC = g++
CFLAGS=-O3 -mpentiumpro -fomit-frame-pointer $(DEFINES) $(INCLUDES)

#for old compilers that don't support -mpentiumpro
#CFLAGS=-O3 -m486 -fomit-frame-pointer $(DEFINES) $(INCLUDES)



all: ds_aqua09


ds_aqua09: clean
	$(CC) $(CFLAGS) $(SOURCES) -o $@ $(LIBS)

clean:
	$(RM) $(OBJECTS) ds_aqua09

