# Makefile for cspect
#
# (Note : this is a very poor makefile!)
#

# OS = BSD
OS = SYSV
CC= cc
# CFLAGS= -c -g -D$(OS)
CFLAGS= -c -O -float -g0 -D$(OS) -Olimit 1400
LDFLAGS= -lXm_s -lXt_s -lX11_s -lc_s -lfm_s -lgl_s -g0 -laudio -laudiofile -laudioutil -lm -o
.SUFFIXES: .o .c

TARGETS = cspect
all: $(TARGETS)

.c.o:
	$(CC) $(CFLAGS) $<

cspect: main.o power.o
	$(CC) main.o power.o $(LDFLAGS) cspect
	strip cspect

power.o:     fft.h

veryclean:
	/bin/rm -f *.o core $(TARGETS) *.uue

clean:
	/bin/rm -f *.o core 
