#	Copyright (c) 1991 by John Atwood deVries II.
#	For copying and distribution information, see the file COPYING.

#	Makefile for "icb", the forumnet teleconferencing system server.

#	NOTE: This file should not be changed. Changes should be made
#	to "config" in the directory above. 

.include "../config.mk"

CFLAGS+= -I..

SRC = \
	dispatch.c \
	globals.c \
	ipcf.c \
	main.c \
	users.c \
	groups.c \
	msgs.c \
	errors.c \
	lookup.c \
	access.c \
	s_admin.c \
	s_beep.c \
	s_group.c \
	s_info.c \
	s_motd.c \
	s_news.c \
	s_person.c \
	s_user.c \
	s_version.c \
	s_shuttime.c \
	s_who.c \
	send.c \
	auto.c \
	signals.c \
	strings.c \
	strlist.c \
	namelist.c \
	discuser.c \
	getrname.c \
	makeport.c \
	newconnect.c \
	readpacket.c \
	sendpacket.c \
	serverserve.c \
	setdelay.c \
	userdb.c

OBJ = \
	dispatch.o \
	globals.o \
	ipcf.o \
	main.o \
	groups.o \
	users.o \
	msgs.o \
	errors.o \
	lookup.o \
	access.o \
	s_admin.o \
	s_beep.o \
	s_group.o \
	s_info.o \
	s_news.o \
	s_motd.o \
	s_person.o \
	s_user.o \
	s_version.o \
	s_shuttime.o \
	s_who.o \
	send.o \
	auto.o \
	signals.o \
	strings.o \
	strlist.o \
	namelist.o \
	discuser.o \
	getrname.o \
	makeport.o \
	newconnect.o \
	readpacket.o \
	sendpacket.o \
	serverserve.o \
	setdelay.o \
	userdb.o

all: icbd

icbd: $(OBJ)

icbd: $(OBJ)
	$(CC) $(LDFLAGS) -o icbd $(OBJ) $(LIBS) $(OTHERLIBS)

install: all
	${INSTALL} -c -s -m 0755 icbd $(BINDIR)/icbd
	${INSTALL} -c -m 0644 icbd.8 $(MAN8DIR)/icbd.8

lint:
	${LINT} $(LFLAGS) $(SRC)

cxref:
	cxref -c $(CFLAGS) $(SRC)

clean:
	rm -f *.o icbd Make.bak core tags

depend:
	$(MAKEDEPEND) $(DEPENDFLAGS) $(CFLAGS) $(SRC)

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
