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


1.2
date     94.08.22.01.09.37;  author cfields;  state Exp;
branches ;
next     1.1;

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


desc
@@


1.2
log
@change install not to do the clean
use makedepend for the depend
7.7 checkin; changes by miki
@
text
@##############################################################################
#    Instructions to Make, for compilation of ZOT UIP/utility processes
#
#	@@(MHWARNING)
# @@(#)bboards,v 1.1.1.1 1993/01/30 04:40:18 jtc Exp
##############################################################################

# The following entries were inserted during MH configuration
OPTIONS	=	@@(MHOPTIONS) -I..

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

.c:;		echo $@@

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

all:		getbbent.o

lint:		l-getbbent

install:;

tar:;

uninstall:;


######################################################################
# getbbent
######################################################################

getbbent:	getbbent.o

l-getbbent:;	$(LINT) $(LFLAGS) getbbent.c $(LLIBS)


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

unconfig:	distribution
		-rm -f Makefile

distribution:   clean

clean:		unclean
		-rm -f *.o

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


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

MODULES       =       getbbent.c
depend:;      makedepend $(CFLAGS) $(MODULES)

@


1.1
log
@Initial revision
@
text
@d32 1
a32 1
install:	inst-all clean
a33 2
inst-all:;

d67 2
a68 18
MODULES	=	getbbent
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
a69 13
# DO NOT DELETE THIS LINE
# DEPENDENCIES START HERE
getbbent.o: getbbent.c
getbbent.o: bboards.h
getbbent.o: ../../h/strings.h
#getbbent.o: /usr/include/ctype.h
#getbbent.o: /usr/include/pwd.h
#getbbent.o: /usr/include/grp.h
#getbbent.o: /usr/include/stdio.h
#getbbent.o: /usr/include/sys/types.h
#getbbent.o: /usr/include/sys/stat.h
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
@
