delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/09/14:14:37

From: kagel AT quasar DOT bloomberg DOT com
Date: Thu, 9 Jan 1997 13:43:35 -0500
Message-Id: <9701091843.AA13874@quasar.bloomberg.com >
To: malolo AT fnbtig DOT co DOT za
Cc: djgpp AT delorie DOT com
In-Reply-To: <5b284i$pgo@hermes.is.co.za> (malolo@fnbtig.co.za)
Subject: Re: make
Reply-To: kagel AT dg1 DOT bloomberg DOT com

   Errors-To: postmaster AT ns1
   From: malolo AT fnbtig DOT co DOT za (Malolo Thebe)
   Newsgroups: comp.os.msdos.djgpp
   Date: Thu, 09 Jan 1997 07:51:36 GMT
   Organization: F.N.B.
   Lines: 123
   References: <5avusm$qf4 AT hermes DOT is DOT co DOT za> <32D48352 DOT 6156 AT cs DOT com>
   Nntp-Posting-Host: 196.26.207.16
   X-Newsreader: Forte Free Agent 1.0.82
   Dj-Gateway: from newsgroup comp.os.msdos.djgpp
   Content-Type: text
   Content-Length: 3184

   Here is the make file. The error says, make.exe: *** No rule to make
   'compclo_double.cc', needed by 'compcol_double.o' Stop


   #
   # Makefile for sparselb src
   #

   SPARSELIB_DIR = ..
   include $(SPARSELIB_DIR)/makefile.def 


   SRCS = 	\
	     compcol_double.cc		\
	     comprow_double.cc		\
	     coord_double.cc		\
	     iotext_double.cc		\
	     diagpre_double.cc		\
	     icpre_double.cc		\
	     ilupre_double.cc		\
	     qsort_double.cc		\
	     qsort_int.cc			\
	     iohb_double.cc		\
	     iohb.c


   OBJ = \
	     compcol_double.o		\
	     comprow_double.o		\
	     coord_double.o		\
	     iotext_double.o		\
	     diagpre_double.o		\
	     icpre_double.o		\
	     ilupre_double.o		\
	     qsort_double.o		\
	     qsort_int.o			\
	     iohb_double.o		    \
	     iohb.o

   all: lib

   srcs: $(SRCS)

   lib: $(SPARSELIB_A)

   $(SPARSELIB_A) : $(OBJ) 
	   @ ar rv $(SPARSELIB_A) $?
	   @ case x$(HASRANLIB) in xt ) echo ranlib; ranlib $(SPARSELIB_A);; esac

   #iohb.o : iohb.c
   #	$(CC) $(CCFLAGS) -c iohb.c

   clean: 
	   /bin/rm -f $(OBJ) 

   wipe: 
	   /bin/rm -f $(OBJ) $(SPARSELIB_A)

   compcol_double.$(OBJ_EXT) : compcol_double.cc  \
     $(SPARSELIB_INCLUDE_DIR)/comprow_double.h
   $(SPARSELIB_INCLUDE_DIR)/coord_double.h 

There appears to be a missing backslash (\) at the end of the second line of
this rule and several others below!  Transcription errors, editor wrapping or
makefile errors?  I don't see why that should give the results you report
but...  Wait, you do not define OBJ_EXT which I assume you want to be '.o'.
That may be confusing make even though the error message seems to indicate that
make knows what to do.

   comprow_double.$(OBJ_EXT) : comprow_double.cc  \
     $(SPARSELIB_INCLUDE_DIR)/comprow_double.h
   $(SPARSELIB_INCLUDE_DIR)/coord_double.h 

   coord_double.$(OBJ_EXT) : coord_double.cc  \
     $(SPARSELIB_INCLUDE_DIR)/comprow_double.h
   $(SPARSELIB_INCLUDE_DIR)/coord_double.h 

   iotext_double.$(OBJ_EXT) : iotext_double.cc  \
     $(SPARSELIB_INCLUDE_DIR)/compcol_double.h \
     $(SPARSELIB_INCLUDE_DIR)/comprow_double.h
   $(SPARSELIB_INCLUDE_DIR)/coord_double.h 

   iohb_double.$(OBJ_EXT) : iohb_double.cc  \
     $(SPARSELIB_INCLUDE_DIR)/minstr.h
   $(SPARSELIB_INCLUDE_DIR)/compcol_double.h \
     $(SPARSELIB_INCLUDE_DIR)/comprow_double.h
   $(SPARSELIB_INCLUDE_DIR)/coord_double.h 


   diagpre.$(OBJ_EXT) : diagpre.cc  \
     $(SPARSELIB_INCLUDE_DIR)/diagpre.h \
     $(SPARSELIB_INCLUDE_DIR)/comprow_double.h
   $(SPARSELIB_INCLUDE_DIR)/compcol_double.h 

   icpre.$(OBJ_EXT) : icpredouble.cc  \
     $(SPARSELIB_INCLUDE_DIR)/icpre_double.h  \
     $(SPARSELIB_INCLUDE_DIR)/comprow.h
   $(SPARSELIB_INCLUDE_DIR)/compcol.h \
     $(SPARSELIB_INCLUDE_DIR)/qsort.h  

   ilupre.$(OBJ_EXT) : ilupre.cc  \
     $(SPARSELIB_INCLUDE_DIR)/ilupre.h \
     $(SPARSELIB_INCLUDE_DIR)/comprow.h
   $(SPARSELIB_INCLUDE_DIR)/compcol.h \
     $(SPARSELIB_INCLUDE_DIR)/qsort.h  

-- 
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com

A proverb is no proverb to you 'till life has illustrated it.  -- John Keats

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019