#
#	Author	: Sreedhar Sivakumaran
#	Purpose	: The generic makefile for dtm modules
#	Notes	:
#
#		This is invoked from builddtm with appropriate
#		flags for the different targets.
#
#		The symbols DTMK, OBJECTS etc. are passed by builddtm
#		when it invokes makedtm.
#

CFT = cft77
FOBJS = dtmf77.o crayinit.o

modules	: dtmlib

dtmlib	: libdtm.a

libdtm.a	: $(OBJECTS)
	  	  $(ARCHIVE) libdtm.a `lorder $(OBJECTS) | tsort`

libdtmf77.a	: $(OBJECTS) $(FOBJS)
		  $(ARCHIVE) libdtmf77.a `lorder $(OBJECTS) $(FOBJS) | tsort`

# Common modules

dtminit.o	: dtminit.c dtmint.h dtm.h debug.h

dtm.o		: dtm.c dtmint.h dtm.h debug.h

dtmmisc.o	: dtmmisc.c debug.h

socket.o	: socket.c dtmint.h debug.h

rwrtns.o	: rwrtns.c dtmint.h debug.h

fatal.o		: fatal.c dtmint.h debug.h

sds.o		: sds.c sds.h dtm.h debug.h

sdl.o		: sdl.c sdl.h dtm.h debug.h

ris.o		: ris.c ris.h dtm.h debug.h

dtmnserv.o	: dtmnserv.c dtmnserv.h dtmint.h debug.h

ninit.o		: ninit.c dtmnserv.h dtmint.h debug.h

nmsg.o		: nmsg.c dtmnserv.h dtmint.h debug.h

# Specific modules - see builddtm

mdd.o		: mdd.c mdd.h dtm.h debug.h

convert.o	: convert.c dtmint.h debug.h

vaxcvt.o	: vaxcvt.c dtmint.h debug.h

dtmf77.o	: dtmf77.c debug.h

crayinit.o	: crayinit.f

craycvt.o	: craycvt.c dtmint.h debug.h

crayrtns.o	: crayrtns.f
