# Makefile for ftnfreq
# Copyright (c) 1998-99 by  Andrey G. Kobrin

include ../CONFIG

DEFINES =	-DDESCDIR=\"${DESCDIR}\" \
	        -DDESCMASKA=\"${DESCMASKA}\" \
		-DARCDIR=\"${ARCDIR}\" \
		-DUNZIP=\"${UNZIP}\" \
		-DUNARJ=\"${UNARJ}\" \
		-DUNZOO=\"${UNZOO}\" \
		-DUNRAR=\"${UNRAR}\" \
		-DAREAMASKA=\"${AREAMASKA}\" \
		-DDECODER=\"${DECODER}\"



#CFLAGS = -g3 -d3

OBJS = ftnfreq.o _searchaddress.o _screen.o _show.o _analys.o _generatefreq.o \
       _selectarea.o _find.o _listselect.o _selectfilelist.o

SRCS = ftnfreq.c _searchaddress.c _screen.c _show.c _analys.c _generatefreq.c \
       _selectarea.c _find.c _listselect.c _selectfilelist.c


CPP=c++

.c.o:
	${CPP} ${CFLAGS} ${DEFINES} -c $<

UTLIB = ../ifpollLib/ftnlib.a
ALL = ftnfreq
all: ${ALL}


###################################################################

ftnfreq: ${OBJS}  ${UTLIB}
	${CPP} ${OBJS} -o ftnfreq ${UTLIB} -lcurses

install: all
	install -s -o ${OWNER} -g ${GROUP} -m ${MODE} -m ${SMODE} ftnfreq ${BINDIR}/ftnfreq

clean:
	rm -f *.o core ${ALL} 
