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


include ../CONFIG

DEFINES =	-DACTIVEFILE=\"${ACTIVEFILE}\" \
                -DARTICLES=\"${ARTICLES}\" \
		-DCFGFILE=\"${CFGFILE}\" \
		-DAREAFILE=\"${AREAFILE}\" \
		-DTEMPFILE=\"${TEMPFILE}\" \
	        -DDEBUGFILE=\"${DEBUGFILE}\" \
		-DLOGFILE=\"${LOGFILEUUEROBOT}\" \
		-DECHOSCREEN=${ECHOSCREEN} \
		-DDECODEPROGRAMM=\"${DECODEPROGRAMM}\" \
	        -DUUESRC=\"${UUESRC}\" \
		-DUUEBAD=\"${UUEBAD}\" \
	        -DUUEOUT=\"${UUEOUT}\"

#CFLAGS = -g3 -d3

OBJS = uuerobot.o _readcfg.o _other.o _scanmsg.o _testline.o _saveheadermsg.o \
       _log.o _saveuue.o _selectgroup.o _scanareas.o _listheader.o _decode.o

SRCS = uuerobot.c _readcfg.c _other.c _scanmsg.c _testline.c _saveheadermsg.c \
       _log.c _saveuue.c _selectgroup.c _scanareas.c _listheader.c _decode.c

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

ALL = uuerobot
all: ${ALL}


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

uuerobot: ${OBJS}
	${CC} ${OBJS} -o uuerobot

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


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