CC= gcc
INCLUDES= -Idriver

# 
#CFLAGS= -DSPEED -Wall -O6 -mcpu=pentiumpro  -fomit-frame-pointer -finline-functions -fcaller-saves -ffast-math -fno-strength-reduce -fthread-jumps -funroll-loops

# 
CFLAGS= -Wall -O3 -m486 -fomit-frame-pointer -finline-functions -fcaller-saves -ffast-math -fno-strength-reduce -fthread-jumps


all:  marvin

marvin: marvin.o nagra.o v4l.o config.o tryperm.o correl.o putline.o 
	gcc marvin.o nagra.o v4l.o config.o tryperm.o correl.o putline.o -o marvin -L/usr/X11R6/lib -lXext -lX11 -lXxf86dga -lXxf86vm 

	chmod +s marvin 

clean:
	rm -f *~ *.o  marvin

.c.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $*.c

.s.o:
	./nasm -f elf  $<	

