Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Make on Digital Unix 4.0D
@ 1998-11-25  5:00 Guy Paulus
  1998-11-27  5:00 ` Andrew Moar
  1998-12-02  5:00 ` linnartz
  0 siblings, 2 replies; 3+ messages in thread
From: Guy Paulus @ 1998-11-25  5:00 UTC (permalink / raw)


 Hello:

The makefile hereunder, run on a PWS 433au (Digital Unix 4.0D), gives me
trouble: the
command "make -f make.dec -n lib" leads to the error message:

                                Make: Don't know how to make /sph_lib.cpp.
Stop.

I also tried the POSIX make(1p), but without success (Error! Could not
figure out how
to make /sph_lib.cpp. Stop.)

What actually puzzles me is: where does the "/" in /sph_lib.cpp come from?
It seems as
if the SPHSRC macro in the target line "sph_lib:
${SPHSRC}/${SPHLIBSRC}" is
considered undefined at that stage, although it is defined at the top of
the makefile.

When I run the exact same makefile on a HP platform (HP-UX 10.20), I don't
have any
problem.

I am a newcomer to Digital Unix, and some help here would be appreciated.

Thanks,
                   Guy Paulus

---------------------------  make.dec:
###
#
# Local directories
#
###

SPHSRC = ../../COMMON/INCLUDE                       # SPH Lib files

SPHLIBSRC = sph_lib.cpp

DIR   = .
SRCDIR = $(DIR)/SOURCE                            # Source files
OBJDIR = $(DIR)/OBJ                                # Object files
SPHINC = -I$(SPHSRC) -I$(SRCDIR) -I../COMMON        # SPH header files

###
#
# Compilers, link editors
#
###

CCC = cc           # C compiler
CC  = cxx          # C++ compiler
LD  = cxx          # Link editor

###
#
# Defined symbols
#
###

SYMS        = -Dosf1 -DOSF1 -D__OSF1 -x cxx -Dwx_motif

###
#
# Compiler options
#
###

OPTIONS     = $(SYMS) $(CCOPTIM)

WARN        = -w2

###
#
# Includes
#
###

INCLUDE     = $(SPHINC) -I/usr/include/cxx
COMPPATHS   =
XINCLUDE    = -I/usr/include/X11 -I/usr/include/Xm -I/usr/include/X11/Xm \
              -I/usr/include

###
#
# Libraries
#
###

CLIB        = -lc -lm -lcxx
XLIB        = -L/usr/local/X11/lib -L/usr/X11/lib
BASICMOTIFLDLIBS = $(CLIB) -lXm -lXmu -lXt -lX11
MOTIFLDLIBS = $(BASICMOTIFLDLIBS)

###
#
# WX stuff: includes and libraries
#
###

WXDIR       = /opt/wx
WXINC       = $(WXDIR)/include/x
WXBASEINC   = $(WXDIR)/include/base
WXLIB       = -L$(WXDIR)/lib -lwx_motif
INC         = -I$(WXBASEINC) -I$(WXINC) $(COMPPATHS)

###
#
# Global flags
#
###


CXXFLAGS    = $(DEBUGFLAGS) $(OPTIONS) $(WARN) $(INCLUDE) $(XINCLUDE)
$(INC)
CFLAGS      = $(DEBUGFLAGS) $(OPTIONS) $(CWARN) $(INCLUDE) $(XINCLUDE)
$(INC)
LDFLAGS     = $(XLIB) $(WXLIB)
LDLIBS      = $(MOTIFLDLIBS)

###
#
# Targets
#
###

lib:     sph_lib

sph_lib:        ${SPHSRC}/${SPHLIBSRC}
        cd ${SPHSRC} ; \
        ${CC} -c ${CXXFLAGS} ${SPHLIBSRC}





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Make on Digital Unix 4.0D
  1998-11-25  5:00 Make on Digital Unix 4.0D Guy Paulus
@ 1998-11-27  5:00 ` Andrew Moar
  1998-12-02  5:00 ` linnartz
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Moar @ 1998-11-27  5:00 UTC (permalink / raw)


In article <365BF397.8ADD2604@astro.ulb.ac.be>,
	Guy Paulus <gpaulus@astro.ulb.ac.be> writes:
>  Hello:
> 
> The makefile hereunder, run on a PWS 433au (Digital Unix 4.0D), gives me
> trouble: the
> command "make -f make.dec -n lib" leads to the error message:
> 
>                                 Make: Don't know how to make /sph_lib.cpp.
> Stop.
> 
> I also tried the POSIX make(1p), but without success (Error! Could not
> figure out how

Try gnu's make (ftp://ftp.gnu.org/pub/gnu/make-3.77.tar.gz).  Hopefully
you don't need gnu's make to build gnu's make :)

Cheers,

Andrew
-- 
        Andrew Moar : Ph +61 3 9479 1505  email A.Moar@latrobe.edu.au
          Unix Environment Manager, Information Technology Services
                    La Trobe University, Melbourne



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Make on Digital Unix 4.0D
  1998-11-25  5:00 Make on Digital Unix 4.0D Guy Paulus
  1998-11-27  5:00 ` Andrew Moar
@ 1998-12-02  5:00 ` linnartz
  1 sibling, 0 replies; 3+ messages in thread
From: linnartz @ 1998-12-02  5:00 UTC (permalink / raw)


In article <365BF397.8ADD2604@astro.ulb.ac.be>,
  Guy Paulus <gpaulus@astro.ulb.ac.be> wrote:
>  Hello:
> What actually puzzles me is: where does the "/" in /sph_lib.cpp come from?
if you put your comment above that line, everything will work as expected.
The make parser realizes there's a space behind INCLUDE and appends this.
this results in the expansion depicted below.
> SPHSRC = ../../COMMON/INCLUDE                       # SPH Lib files
>
> SPHLIBSRC = sph_lib.cpp
>.... deleted
> sph_lib:        ${SPHSRC}/${SPHLIBSRC}
this gets expanded to
sph_lib depends on ../../COMMON/INCLUDE /sph_lib.cpp

Hope this helps,
 Pit

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-12-02  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-25  5:00 Make on Digital Unix 4.0D Guy Paulus
1998-11-27  5:00 ` Andrew Moar
1998-12-02  5:00 ` linnartz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox