#
# Filter Manager make file
#
# Change the following line to set the destination directory for fm.
#
INSTALLDIR=/usr/etc

# Uncomment the following two lines if you have the DES source.
#
#DESOBJS=desSmallCore.o desUtil.o
#DEFINES=-DDES
#

#
# You shouldn't need to change anything below here.
#
OBJS=nit.o fm.o lex.o comm.o util.o crypt.o $(DESOBJS)
SRCS=$(OBJS:%.o=%.c)
CC=gcc
CFLAGS=-g -O $(DEFINES)

fm: $(OBJS)
	$(CC) $(CFLAGS) -o fm $(OBJS)

install: fm
	install -o root -g daemon -m 4755 -s fm $(INSTALLDIR)

depend:
	makedepend $(SRCS)

clean:
	rm -f $(OBJS) lex.c fm
