[1535] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

makedepend

daemon@ATHENA.MIT.EDU (John Gardiner Myers)
Mon Jul 10 14:57:05 1995

Date: Mon, 10 Jul 1995 14:55:29 -0400 (EDT)
From: John Gardiner Myers <jgm+@CMU.EDU>
To: krb5-bugs@MIT.EDU

src/util/makedepend was missing a Makefile and was including the
nonexistent file imakemdep.h.  The following patch is a bit of a
kludge to get things into a usable state:

Only in /usr/tmp/src/util/makedepend: ChangeLog
diff -cr /usr/tmp/src/util/makedepend/Makefile.in ./Makefile.in
*** /usr/tmp/src/util/makedepend/Makefile.in	Mon Jul 10 14:51:24 1995
--- ./Makefile.in	Wed Jul  5 14:53:18 1995
***************
*** 0 ****
--- 1,61 ----
+ # Makefile for makedepend
+ #
+ # @configure_input@
+ # 
+ #	(C) Copyright 1995 by Carnegie Mellon University
+ # 
+ #                      All Rights Reserved
+ # 
+ # Permission to use, copy, modify, and distribute this software and its 
+ # documentation for any purpose and without fee is hereby granted, 
+ # provided that the above copyright notice appear in all copies and that
+ # both that copyright notice and this permission notice appear in 
+ # supporting documentation, and that the name of CMU not be
+ # used in advertising or publicity pertaining to distribution of the
+ # software without specific, written prior permission.  
+ # 
+ # CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
+ # ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
+ # CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
+ # ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ # SOFTWARE.
+ # 
+ srcdir = @srcdir@
+ VPATH = @srcdir@
+ 
+ CC = @CC@
+ INSTALL = @INSTALL@
+ RANLIB = @RANLIB@
+ 
+ DEFS = @DEFS@
+ CPPFLAGS = -I. -I$(srcdir)  @CPPFLAGS@ 
+ LIBS = @LIBS@ 
+ DEPLIBS = @DEPLIBS@ 
+ 
+ CFLAGS = @CFLAGS@
+ LDFLAGS = @LDFLAGS@
+ 
+ SHELL = /bin/sh
+ 
+ all: makedepend
+ 
+ .c.o:
+ 	$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
+ 
+ makedepend: cppsetup.o ifparser.o include.o main.o parse.o pr.o
+ 	$(CC) $(LDFLAGS) -o makedepend cppsetup.o ifparser.o include.o \
+ 		main.o parse.o pr.o $(DEPLIBS) $(LIBS)
+ 
+ clean:
+ 	rm -f *.o Makefile.bak makedepend
+ 
+ distclean: clean
+ 	rm -f Makefile
+ 
+ depend:
+ 	makedepend $(CPPFLAGS) $(DEFS) $(CFLAGS) *.c $(srcdir)/*.c
+ 
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+ 
Only in .: RCS
Only in .: configure
diff -cr /usr/tmp/src/util/makedepend/configure.in ./configure.in
*** /usr/tmp/src/util/makedepend/configure.in	Mon Jul 10 14:51:24 1995
--- ./configure.in	Wed Jul  5 14:55:28 1995
***************
*** 0 ****
--- 1,11 ----
+ dnl Process this file with autoconf to produce a configure script.
+ AC_INIT(cppsetup.c)
+ AC_PROG_CC
+ AC_PROG_INSTALL
+ AC_PROG_RANLIB
+ AC_PROG_MAKE_SET
+ AC_CHECK_HEADERS(stdarg.h)
+ AC_SUBST(CPPFLAGS)
+ AC_SUBST(DEPLIBS)
+ 
+ AC_OUTPUT(Makefile)
Only in .: install-sh
diff -cr /usr/tmp/src/util/makedepend/main.c ./main.c
*** /usr/tmp/src/util/makedepend/main.c	Fri Jun 10 19:12:45 1994
--- ./main.c	Wed Jul  5 15:24:24 1995
***************
*** 33,39 ****
  
  #include <signal.h>
  
! #if NeedVarargsPrototypes
  #include <stdarg.h>
  #endif
  
--- 33,39 ----
  
  #include <signal.h>
  
! #ifdef HAVE_STDARG_H /* NeedVarargsPrototypes */
  #include <stdarg.h>
  #endif
  
***************
*** 62,70 ****
  	NULL
  };
  
! #define MAKEDEPEND
! #include "imakemdep.h"	/* from config sources */
! #undef MAKEDEPEND
  
  struct	inclist inclist[ MAXFILES ],
  		*inclistp = inclist,
--- 62,114 ----
  	NULL
  };
  
! struct symtab	predefs[] = {
! #ifdef apollo
! 	{"apollo", "1"},
! #endif
! #ifdef ibm032
! 	{"ibm032", "1"},
! #endif
! #ifdef sun
! 	{"sun", "1"},
! #ifdef sparc
! 	{"sparc", "1"},
! #endif
! #endif
! #ifdef solaris20
! 	{"solaris20", "1"},
! #endif
! #ifdef hpux
! 	{"hpux", "1"},
! #endif
! #ifdef vax
! 	{"vax", "1"},
! #endif
! #ifdef VMS
! 	{"VMS", "1"},
! #endif
! #ifdef ultrix
! 	{"ultrix", "1"},
! #endif
! #ifdef mips
! 	{"mips", "1"},
! #endif
! #ifdef __SCO__
! 	{"__SCO__", "1"},
! #endif	  
! #ifdef __DGUX
! 	{"__DGUX", "1"},
! #endif
! #ifdef __DGUX__
! 	{"__DGUX__", "1"},
! #endif
! #ifdef __m88k__
! 	{"__m88k__", "1"},
! #endif
! 	{NULL, NULL}
! };
! #define OBJSUFFIX ".o"
! #define INCLUDEDIR "/usr/include"
  
  struct	inclist inclist[ MAXFILES ],
  		*inclistp = inclist,
***************
*** 626,632 ****
  #endif /* USGISH */
  }
  
! #if NeedVarargsPrototypes
  fatalerr(char *msg, ...)
  #else
  /*VARARGS*/
--- 670,676 ----
  #endif /* USGISH */
  }
  
! #ifdef HAVE_STDARG_H /* NeedVarargsPrototypes */
  fatalerr(char *msg, ...)
  #else
  /*VARARGS*/
***************
*** 634,644 ****
      char *msg;
  #endif
  {
! #if NeedVarargsPrototypes
  	va_list args;
  #endif
  	fprintf(stderr, "%s: error:  ", ProgramName);
! #if NeedVarargsPrototypes
  	va_start(args, msg);
  	vfprintf(stderr, msg, args);
  	va_end(args);
--- 678,688 ----
      char *msg;
  #endif
  {
! #ifdef HAVE_STDARG_H /* NeedVarargsPrototypes */
  	va_list args;
  #endif
  	fprintf(stderr, "%s: error:  ", ProgramName);
! #ifdef HAVE_STDARG_H /* NeedVarargsPrototypes */
  	va_start(args, msg);
  	vfprintf(stderr, msg, args);
  	va_end(args);
***************
*** 648,654 ****
  	exit (1);
  }
  
! #if NeedVarargsPrototypes
  warning(char *msg, ...)
  #else
  /*VARARGS0*/
--- 692,698 ----
  	exit (1);
  }
  
! #ifdef HAVE_STDARG_H /* NeedVarargsPrototypes */
  warning(char *msg, ...)
  #else
  /*VARARGS0*/
***************
*** 656,666 ****
      char *msg;
  #endif
  {
! #if NeedVarargsPrototypes
  	va_list args;
  #endif
  	fprintf(stderr, "%s: warning:  ", ProgramName);
! #if NeedVarargsPrototypes
  	va_start(args, msg);
  	vfprintf(stderr, msg, args);
  	va_end(args);
--- 700,710 ----
      char *msg;
  #endif
  {
! #ifdef HAVE_STDARG_H /* NeedVarargsPrototypes */
  	va_list args;
  #endif
  	fprintf(stderr, "%s: warning:  ", ProgramName);
! #ifdef HAVE_STDARG_H /* NeedVarargsPrototypes */
  	va_start(args, msg);
  	vfprintf(stderr, msg, args);
  	va_end(args);
***************
*** 669,675 ****
  #endif
  }
  
! #if NeedVarargsPrototypes
  warning1(char *msg, ...)
  #else
  /*VARARGS0*/
--- 713,719 ----
  #endif
  }
  
! #ifdef HAVE_STDARG_H /* NeedVarargsPrototypes */
  warning1(char *msg, ...)
  #else
  /*VARARGS0*/
***************
*** 677,683 ****
      char *msg;
  #endif
  {
! #if NeedVarargsPrototypes
  	va_list args;
  	va_start(args, msg);
  	vfprintf(stderr, msg, args);
--- 721,727 ----
      char *msg;
  #endif
  {
! #ifdef HAVE_STDARG_H /* NeedVarargsPrototypes */
  	va_list args;
  	va_start(args, msg);
  	vfprintf(stderr, msg, args);

home help back first fref pref prev next nref lref last post