head     1.3;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.3
date     94.08.22.12.57.27;  author cfields;  state Exp;
branches ;
next     1.2;

1.2
date     93.11.11.06.46.53;  author miki;  state Exp;
branches ;
next     1.1;

1.1
date     93.11.11.06.46.15;  author miki;  state Exp;
branches ;
next     ;


desc
@@


1.3
log
@Do dependencies with makedepend
Support install (empty)
7.7 checkin; changes by miki
@
text
@##############################################################################
#    Instructions to Make, for compilation of MH modules
#
#	@@(MHWARNING)
# @@(#)config,v 1.1.1.1 1993/01/30 04:40:15 jtc Exp
##############################################################################

OPTIONS	=	@@(MHOPTIONS)
LDOPTIONS=	@@(LDOPTIONS)

CC	=	@@(MHCOMPILER)
@@BEGIN: OPTIM
CFLAGS	=	 $(OPTIONS)
@@END: OPTIM
@@BEGIN: DEBUG
CFLAGS	=	     $(OPTIONS)
@@END: DEBUG
LDFLAGS	=	$(LDOPTIONS)
LIBES	=
LINT	=	lint
LFLAGS	=	-bhu $(OPTIONS)
LLIBS	=


##############################################################################
#	Generate object file for MH configuration
##############################################################################

CFILES	=	config.c version.c
OFILES	=	config.o version.o

all:		$(OFILES)

lint:;		$(LINT) $(LFLAGS) $(CFILES) $(LLIBS)

version version.c:	true
		@@/bin/sh version.sh @@(MHHOSTVER) @@(MHRELEASE)

true:;

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

unconfig:	distribution
		-rm -f Makefile

distribution:   clean
		-rm -f config.c version.c version

clean:		unclean
		-rm -f *.o

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

install:


##############################################################################
#	Dependencies
##############################################################################

MODULES	=	$(CFILES)

depend:;	makedepend $(CFLAGS) $(MODULES)

@


1.2
log
@*** empty log message ***
@
text
@d13 1
a13 1
CFLAGS	=	$(OPTIONS)
d56 1
d58 1
d65 1
a65 17
depend:;	for m in $(MODULES); do ( \
		    i=`basename $$m .c`; \
		    echo $$i.o: $$i.c >> makedep; \
		    grep '^#[ 	]*include' $$i.c | \
			sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
			    -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
			    -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
			>> makedep \
		); done
		echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
		echo '$$r makedep' >> eddep
		echo 'w' >> eddep
		cp Makefile _Makefile
		ed - Makefile < eddep
		rm eddep makedep
		echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
		echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
a66 8
# DO NOT DELETE THIS LINE
# DEPENDENCIES START HERE
config.o: config.c
config.o: ../h/mh.h
#config.o: /usr/include/pwd.h
#config.o: /usr/include/stdio.h
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
@


1.1
log
@Initial revision
@
text
@@
