##############################################################################
#    Instructions to Make, for compilation of MMDF-MTS library 
#
#	This file is automatically generated.  Do not edit!
# @(#)$Id: mmdf,v 1.10 1992/11/20 17:14:07 jromine Exp $
##############################################################################

# The following entries were inserted during MH configuration
OPTIONS	=	-DSYS5 -DMORE='"/usr/bin/more"' -DRENAME -DSYS5DIR -DUNISTD -DSVR4 -DMIME -DVSPRINTF -DMHE -DOVERHEAD -DRPATHS -DDUMB -DATHENA -DBIND -DSOCKETS -DFCNTL -DPOPSERVICE='"pop-3"' -DDPOP -DPOP2 -DRPOP -DMHRC -DMAILGROUP -DSENDMTS -DSMTP -DPOP -DSPRINTFTYPE=int -DTYPESIG=void -traditional -D_NFILE='getdtablesize()' -DSIGEMT=SIGUSR1 -O2 -I..

# Linux shared library
JUMP_DIR=../../jump/
JUMP_LIB=libmts
export JUMP_DIR JUMP_LIB

CC	=	(MHCOMPILER)
CFLAGS	=	$(OPTIONS)
LINT	=	lint
LFLAGS	=	-bhu $(OPTIONS)
LLIBS	=
CP	=	cp
LN	=	ln

LIB	=	mmdfmts.a

CFILES	=	hosts.c
OFILES	=	hosts.o


##############################################################################
#	Generation Rules
##############################################################################

# Linux: create $*.j from $*.c, contains DLL version
.c.o:;
	$(CC) -B/usr/dll/jump/ $(CFLAGS) -c $*.c
		-ld -x -r $@
		mv a.out $*.j
		$(CC) $(CFLAGS) -c $*.c
		-ld -x -r $@
		mv a.out $@


##############################################################################
#	Here it is...
##############################################################################

all:		$(LIB)
depend:;
	lint:		l-mmdf



l-mmdf:;
	$(LINT) $(LFLAGS) $(CFILES) $(LLIBS)

hosts.o:	Makefile


##############################################################################
#	Miscellaneous tasks
##############################################################################

unconfig:	distribution
		-rm -f Makefile

distribution:   clean

clean:		unclean
		-rm -f *.o $(LIB) z$(LIB)

unclean:;
	-rm -f _* :* core
