4.3BSD/usr/contrib/mh/mts/mh/Makefile

##############################################################################
#    Instructions to Make, for compilation of standalone-MTS library
#
#	This file is automatically generated.  Do not edit!
##############################################################################

# The following entries were inserted during MH configuration
OPTIONS=	-DBSD42 -DBSD43 -DBERK -DTTYD -DDUMB -DMHE -DNETWORK -DBIND -DRPATHS -DATZ -DSBACKUP='"\043"' -DSENDMTS -DSMTP -I..

CC	=	cc
CFLAGS	=	-O    $(OPTIONS)
LINT	=	lint
LFLAGS	=	-bhu $(OPTIONS)
LLIBS	=	

LIB	=	mhmts.a

CFILES	=	hosts.c netmail.c uucp.c
OFILES	=	hosts.o netmail.o uucp.o


##############################################################################
#	Generation Rules
##############################################################################
.c.o:;		$(CC) $(CFLAGS) -c $*.c
		-ld -x -r $@
		mv a.out $@


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

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

$(LIB):		$(OFILES)
		-mv $@ z$@
		ar r $@ $(OFILES); ranlib $@
		-rm -f ../libmts.a
		ln $@ ../libmts.a
		-rm -f ../llib-lmts
		ln llib-lmhmts ../llib-lmts
		-@ls -l $@
		-@echo "standalone-MTS library built normally"

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

hosts.o:	Makefile
netmail.o:	Makefile
uucp.o:		Makefile


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

distribution:   clean

clean:		unclean
		-rm -f *.o $(LIB) z$(LIB) ../libmts.a ../llib-lmts

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