
SOUND = -DSOUND_MIKMOD
SOUND_LIBS = -lmikmod

# recommended
FLAGS = -DREALTIME

# fxmp support requires -lpthread
# it's experimental, and not tested with the last version
# SOUND = -DSOUND_FXMP
# SOUND_LIBS = fxmp/fxmp.a

# CC = gcc -pg
CC = gcc -s -O3 -funroll-loops -fomit-frame-pointer -mpentium
LIBS = -lggi -lggimisc -lm

OBJS = intro.o fx.o pic.o pre.o video.o

all: bounce_it

bounce_it: $(OBJS)
	$(CC) -o bounce_it $(OBJS) $(LIBS) $(SOUND_LIBS)

%.o: %.c
	$(CC) $(FLAGS) $(SOUND) -c $<

fxmp/fxmp.a:
	make -C fxmp

clean:
	rm -f *.o bounce_it
