#	Copyright (c) 1988 Carrick Sean Casey. All rights reserved.
#	For copying and distribution information, see the file "copyright.h."
#
#	Makefile for lmurgil.a
#
#	Note: If you are generating this library as part of forumnet,
#	you do NOT need to edit this makefile!
#
#	If generating standalone, you need to rename this file to Makefile
#	and change the options below as needed.

#CFLAGS		=
#PMAKE		= &
#LIBDIR		= /usr/local/lib
LIBDIR		= ..
#MAKEDEPEND	= makedepend
#DEPENDFLAGS	=


SRC = \
	clientserve.c \
	contoport.c \
	discuser.c \
	getaddr.c \
	getrname.c \
	globals.c \
	ignore.c \
	makeport.c \
	newconnect.c \
	packetsend.c \
	readpacket.c \
	sendpacket.c \
	serverserve.c \
	setdelay.c 

OBJ = \
	clientserve.o \
	contoport.o \
	discuser.o \
	getaddr.o \
	getrname.o \
	globals.o \
	ignore.o \
	makeport.o \
	newconnect.o \
	packetsend.o \
	readpacket.o \
	sendpacket.o \
	serverserve.o \
	setdelay.o 

default: $(LIBDIR)/lmurgil.a

$(LIBDIR)/lmurgil.a: $(PMAKE) $(OBJ)
	rm -f $(LIBDIR)/lmurgil.a
	ar q $(LIBDIR)/lmurgil.a $(OBJ)
	-if [ -f /usr/bin/ranlib -o -f /bin/ranlib ]; then ranlib $(LIBDIR)/lmurgil.a; fi

install: $(LIBDIR)/lmurgil.a

lint:
	lint $(LFLAGS) $(SRC)

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

dstrip:
	cp Make Make.bak
	perl ../tools/dstrip.pl < Make > Make.o
	mv Make.o Make

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

saber_src:
	#load *.c

depend:
	$(MAKEDEPEND) $(DEPENDFLAGS) *.c

# DO NOT DELETE THIS LINE -- make depend depends on it.

clientserve.o: select.h
clientserve.o: ipcf.h
clientserve.o: externs.h
contoport.o: select.h 
contoport.o: ipcf.h
contoport.o: externs.h
discuser.o: select.h 
discuser.o: ipcf.h
discuser.o: externs.h
globals.o: ipcf.h 
ignore.o: select.h
ignore.o: ipcf.h externs.h
makeport.o: config.h 
makeport.o: select.h 
makeport.o: ipcf.h externs.h
newconnect.o: config.h 
newconnect.o: select.h
newconnect.o: ipcf.h externs.h
readpacket.o: select.h
readpacket.o: ipcf.h externs.h
serverserve.o: select.h
serverserve.o: ipcf.h
serverserve.o: externs.h
setdelay.o: select.h
setdelay.o: ipcf.h
setdelay.o: externs.h
