######################################################################
# @(#) csp_makefile V6.2.3:cs.622.make:1:1 Mon Nov 11 16:39:36 1991 Make file for CSP
######################################################################
#
#	Connection Services Process Makefile
#
#	Makefile for CSP Interface Modules
#
#	File:		csp_makefile
#	Created:	12/01/89
#
#	Version:	V6.2.3	Mon Nov 11 16:39:36 1991
#	Last Modified:	cs.622.make	08/06/91
#	
#	Make file for CSP
#	
#	Modification History:
#
#	*** Updated to SMT 6.2 ***
#
######################################################################
#
#	This makefile assumes that there exists a parent directory with the
#	following subdirectory structure:
#
#			PARENT
#			 |
#		 +-------+-------+----------+----------+
#		 |	 |	 |	    |          |
#		csp	fbm	mib	INTERFACE    headers
#				 	    |
#				+-------+-------+------+
#				|       |       |      |
#			       csp     fbm     mib   headers
#
#
#	Fill in the following macro definitions or pass them
#	in through the command line:
#
#	PARENT directory:
PARENT=..

#	CSP interface file directory:
INTERFACE=dp83200if

#	Run-time file name (only if used):
CSPIFOUT=corecsp

#	Local SMT header files directory:
LCLDIR=

#	Make file variables:
CSPDIR=$(PARENT)/csp
HDRDIR=$(PARENT)/headers
CSPIFDIR=$(PARENT)/$(INTERFACE)/csp
HDRIFDIR=$(PARENT)/$(INTERFACE)/headers
IDIR3=$(HDRDIR)
IDIR4=$(HDRIFDIR)
#
#	Compiler selection and command line flags:
#
CC=
CCFLAGS=-c -I$(HDRDIR) -I$(HDRIFDIR) $(LCLDIR)

#
#	Loader selection and command line flags:
#	(Needed only if creating an executable)
#
LD=
LDFLAGS=
LDLIBS=smtcsp.o

#
#	Source files:
#
CSPSRCS= csp.c cspcfm.c cspecm.c cspglbl.c cspinit.c\
		csplct.c csplem.c cspmsg.c csppcm.c csppcode.c\
		cspproc.c csprmt.c cspsig.c csptimer.c

#
#	Object files:
#
CSPOBJS=$(CSPSRCS:.c=.o)

#
#	Dependencies:
#
all:	Makedepend $(CSPOBJS) $(LDLIBS)

#
#	Define dependency rules:
.c.o: 
	$(CC) $(CCFLAGS) -c -o $@ $<


clean:
		rm -f $(CSPOBJS)

print:		
			ptr -c -x4 $(CSPSRCS)

#depend:		FRC
#		$(CC) -M $(CCFLAGS) $(CSPSRCS) $(CSPSRCS.s) > Makedepend

CSOURCES = $(CSPSRCS)
.include vcs.cfg
.include $(ROOT)/fddicon/fddi.mak

FRC:
