CC = gcc
# you can add to CFLAGS:
#	-DLinux if you compile on Linux
#	-DFreeBSD if you compile on FreeBSD
CFLAGS = -DLinux -g -O2 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
OBJS = kissd.o connection.o

kissd: $(OBJS) kissd.h
	$(CC) -o $@ $(OBJS)

all: kissd

# warning: on FreeBSD the root's group is wheel, edit the lines
# below accordingly
install:
	install -o root -g root -m 755 kissd $(DESTDIR)/usr/sbin/kissd
	install -o root -g root -m 644 kissd.conf $(DESTDIR)/etc/kissd.conf
	install -o root -g root -m 644 kissd.1 $(DESTDIR)/usr/share/man/man1/kissd.1

clean:
	rm -rf kissd $(OBJS)

