CC=	gcc 
CFLAGS= -O2 -fomit-frame-pointer -ffast-math -s
#
##############################################################
# Uncomment the three following lines for X11 interface
OBJS=	rtty.o audio.o dsp.o dpll.o serial.o baudot.o \
	rtty_f.o rtty_f_cb.o rtty_f_main.o graph.o fft.o
LIBS=-L/usr/X11R6/lib -lm /usr/lib/libforms.a -lX11 -lpthread
#
##############################################################
# Uncomment the two following lines for a text-only interface
#OBJS=	rtty.o audio.o dsp.o dpll.o serial.o baudot.o
#DEFS= -DNOX11
#
##############################################################
#
dep:	
	$(CC) -MM -I/usr/include *.c >.dep
	make all

all:	rtty


rtty:	$(OBJS)
	$(CC) -o rtty $(OBJS) $(LIBS)

%.o :	%.c
	$(CC) $(CFLAGS) $(DEFS) $(INCL)  -c $<

clean:	
	rm -f *.o

include	.dep