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

ARCHDEFINE=-DSOLARIS

#
# You shouldn't need to change anything below here.
#
HEADERS=fm.h struct.h const.h proto.h global.h
OBJS=fm.o lex.o comm.o util.o potp.o
SRCS=$(OBJS:%.o=%.c)
CC=gcc
CFLAGS=$(ARCHDEFINE) -Wall

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

$(OBJS): $(HEADERS)

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

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