*BSD News Article 73873


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!eng3.iastate.edu!sehari
From: sehari@iastate.edu (Babak $ehari)
Newsgroups: comp.unix.admin,comp.unix.misc,comp.unix.bsd.bsdi.misc
Subject: A make file challenge
Date: 16 Jul 96 02:47:20 GMT
Organization: Iowa State University of Science and Technology, Ames, Iowa.
Lines: 209
Message-ID: <sehari.837485240@eng3.iastate.edu>
NNTP-Posting-Host: eng3.iastate.edu
Keywords: make
Originator: sehari@eng3.iastate.edu
Xref: euryale.cc.adfa.oz.au comp.unix.admin:44887 comp.unix.misc:23957 comp.unix.bsd.bsdi.misc:4312

---

I following Imakefile has generated the Makefile that follows after it
using Stanford university interviews library.  Can any one tell me why
do I get an error on line 171 of the make file, and how can I correct
that?

Imakefile starts after the next line.
-----------------------------------------------------
# Tue Aug 29 10:39:59 PDT 1989 (dredge--stanford)
# Makefile for making release versions of the plot software.
# This file is not for release itself.  It is on the development machine
#  and will create a sub-directory called "Release/" which contains
#  release versions of the software.


# Various Directory lists from which make release-ing will be done.
PROGS= dplot
LIBS=  gplot high2 f77links
MISC=  plot1d_f77
UTIL=  utils
SUPP=  tool plotcap
# tool must be before plotcap (it may add to the plotcap src)

DIRS=	$(LIBS) $(SUPP) $(PROGS) $(MISC) $(UTIL)

Subdirs($(DIRS), /*makeflags*/)

#ifdef STANFORD
RELEASEDIR=Release

MakeReleaseSubdirs(/*depends*/ ,/*makeflags*/ ,$(DIRS))
#endif

-------------------------------------------------------------
And the make file starts following the next line:
-------------------------------------------------------------
# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.91 95/01/12 16:15:47 kaleb Exp $

# Read "InterViews/template" to understand how this Makefile was generated.
# Edit <InterViews/arch.def> to add support for a new platform.
# Edit <InterViews/iv-freebsd.cf> to change platform-specific parameters.
# Edit <InterViews/local.def> to change site-specific parameters.
# Edit </tmp/IIf.000256> to change actions that make should perform.

# architecture:  FREEBSD

              SHELL = /bin/sh

              IMAKE = imake
         IMAKEFLAGS = \
	-T "InterViews/template"\
	-I$(CONFIGDIR) -I$(XCONFIGDIR)\
	$(SPECIAL_IMAKEFLAGS)
 SPECIAL_IMAKEFLAGS =   -DUseInstalled
             DEPEND = makedepend
     DEPEND_CCFLAGS = $(CCDEFINES) $(CCINCLUDES) -I/usr/include/g++
               MAKE = make
           PASSARCH = ARCH="$(ARCH)" SPECIAL_IMAKEFLAGS="$(SPECIAL_IMAKEFLAGS)"
          ARCHORCPU = $$CPU
               ARCH = $(ARCHORCPU)$(SPECIAL_ARCH)
       SPECIAL_ARCH =

           CCDRIVER = /usr/bin/c++
           CCSUFFIX = c
                SRC = .
              SLASH = /
               SRCS = $(SRC)$(SLASH)*.$(CCSUFFIX)
               OBJS = *.o
               AOUT = a.out

            CCFLAGS = $(APP_CCFLAGS) $(IV_CCFLAGS) $(EXTRA_CCFLAGS)
         IV_CCFLAGS = \
	\
	\
	$(SHARED_CCFLAGS)\
	$(CCDEFINES)\
	$(CCINCLUDES)
      DEBUG_CCFLAGS = -g
   OPTIMIZE_CCFLAGS = -O
     SHARED_CCFLAGS =
      EXTRA_CCFLAGS =

          CCDEFINES = $(APP_CCDEFINES) $(IV_CCDEFINES) $(EXTRA_CCDEFINES)
       IV_CCDEFINES = $(LANGUAGE_CCDEFINES) $(BACKWARD_CCDEFINES)
 LANGUAGE_CCDEFINES = -Dcplusplus_2_1
 BACKWARD_CCDEFINES =
    EXTRA_CCDEFINES =

         CCINCLUDES = $(APP_CCINCLUDES) $(IV_CCINCLUDES) $(EXTRA_CCINCLUDES)
      IV_CCINCLUDES = \
	$(BACKWARD_CCINCLUDES)\
	$(TOP_CCINCLUDES)\
	$(X_CCINCLUDES)
BACKWARD_CCINCLUDES =
     TOP_CCINCLUDES = -I$(INCDIR)
       X_CCINCLUDES = -I$(XINCDIR)
   EXTRA_CCINCLUDES =

          CCLDFLAGS = $(APP_CCLDFLAGS) $(IV_CCLDFLAGS) $(EXTRA_CCLDFLAGS)
       IV_CCLDFLAGS = \
	\
	\
	$(NONSHARED_CCLDFLAGS)
NONSHARED_CCLDFLAGS =
    EXTRA_CCLDFLAGS =

          CCDEPLIBS = $(APP_CCDEPLIBS) $(IV_CCDEPLIBS) $(EXTRA_CCDEPLIBS)
       IV_CCDEPLIBS = \
	$(DEPLIBUNIDRAW)\
	$(DEPLIBGRAPHIC)\
	$(DEPLIBIV)\
	$(DEPLIBXEXT)\
	$(DEPLIBX11)\
	$(DEPLIBM)
    EXTRA_CCDEPLIBS =

           CCLDLIBS = $(APP_CCLDLIBS) $(IV_CCLDLIBS) $(EXTRA_CCLDLIBS)
        IV_CCLDLIBS = \
	$(LIBDIRPATH)\
	$(LDLIBUNIDRAW)\
	$(LDLIBGRAPHIC)\
	$(LDLIBIV)\
	$(XLIBDIRPATH)\
	$(LDLIBXEXT)\
	$(LDLIBX11)\
	$(LDLIBM)\
	$(ABSLIBDIRPATH)
     EXTRA_CCLDLIBS = -lg++

            INSTALL = install
       INSTPGMFLAGS = -s
       INSTBINFLAGS = -m 0755
       INSTUIDFLAGS = -m 4755
       INSTLIBFLAGS = -m 0644
       INSTINCFLAGS = -m 0444
       INSTMANFLAGS = -m 0444
       INSTDATFLAGS = -m 0444
      INSTKMEMFLAGS = -m 4755

                 AR = ar clq
                 AS = as
                 CP = cp
                CPP = cpp $(EXTRA_CCDEFINES)
      PREPROCESSCMD = $(CCDRIVER) -E $(EXTRA_CCDEFINES)
                 LD = ld
                 LN = ln -s
          MKDIRHIER = mkdirhier
                 MV = mv
             RANLIB = ranlib
    RANLIBINSTFLAGS =
                 RM = rm -f
             RM_CMD = $(RM) ,* .emacs_* *..c *.BAK *.CKP *.a *.bak *.ln *.o a.out core errs make.log make.out tags TAGS
              TROFF = psroff

                TOP = .
        CURRENT_DIR = .

             BINDIR = /usr/local/interviews/bin/$(ARCH)
          CONFIGDIR = /usr/local/interviews/config
             INCDIR = /usr/local/interviews/include
             LIBDIR = /usr/local/interviews/lib/$(ARCH)
          LIBALLDIR = /usr/local/interviews/lib/all
             MANDIR = /usr/local/interviews/man

       ABSCONFIGDIR = /usr/local/interviews/config
          ABSLIBDIR = /usr/local/interviews/lib/$(ARCH)
       ABSLIBALLDIR = /usr/local/interviews/lib/all
         XCONFIGDIR = /usr/X11R6/lib/X11/config
            XINCDIR = /usr/X11R6/include
            XLIBDIR = /usr/X11R6/lib
          PSFONTDIR = /usr/lib/ps

all::

Makefile::
	-@if [ -f Makefile ]; then \
	$(RM) Makefile.bak; \
	$(MV) Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE) $(IMAKEFLAGS) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
Makefiles::
depend::
install::

clean::
	@$(RM_CMD) "#"*

# -------------------------------------------------------------------------

# Tue Aug 29 10:39:59 PDT 1989 (dredge--stanford)
# Makefile for making release versions of the plot software.
# This file is not for release itself.  It is on the development machine
#  and will create a sub-directory called "Release/" which contains
#  release versions of the software.

# Various Directory lists from which make release-ing will be done.
PROGS= dplot
LIBS=  gplot high2 f77links
MISC=  plot1d_f77
UTIL=  utils
SUPP=  tool plotcap
# tool must be before plotcap (it may add to the plotcap src)

DIRS=	$(LIBS) $(SUPP) $(PROGS) $(MISC) $(UTIL)

Subdirs($(DIRS), )