CPPFLAGS += -DWFRT
CFLAGS = -g -Wall -O6 -mpentiumpro -fomit-frame-pointer -funroll-loops -ffast-math -I./include
# -finline-functions
# adjust for retrace or not
# -DWFRT adds wait for retrace.
# remove to disable	   

CC = gcc
LDFLAGS = -lm -lvga -L./libs -lmikmod

BIN = 23s

OBJ = source/main.o \
source/init.o \
source/music.o \
source/modex.o \
source/gfx_func.o \
source/rotoscale.o \
source/sprite.o \
source/load.o	\
source/image.o \
source/texture.o \
source/pcx.o	\
source/fade.o \
source/fastmath.o \
source/fadein.o \
source/setpalcol.o \
source/blur.o \
source/blur-opt.o \
source/camera.o \
source/pentapyr.o \
source/light.o \
source/loadasc.o \
source/matrix.o \
source/objects.o \
source/polygon.o \
source/scene.o \
source/vector.o \
source/radial_blur.o \
source/rdscene.o \
source/scale.o \
source/osiris.o \
source/colfade.o \
source/water.o \
source/greets.o \
source/endscene.o \
source/wormhole.o \
source/creds.o \
source/golden.o

#source/rotoscale.o \

all: $(BIN)

$(BIN): $(OBJ)
	$(CC) $(OBJ) -o $(BIN) $(LDFLAGS)

clean : 
	rm -f $(OBJ) $(BIN) core *.core *~ DEADJOE

