[8491] in Athena Bugs

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

vax 7.3P: make

daemon@ATHENA.MIT.EDU (tom palka)
Mon Oct 28 13:32:58 1991

Date: Mon, 28 Oct 91 13:32:53 -0500
To: bugs@Athena.MIT.EDU
Cc: 
From: tom palka <tompalka@mit.edu>
Reply-To: tom palka <tompalka@mit.edu>


System name:		copilot
Type and version:	CVAXSTAR 7.3P
Display type:		SM

What were you trying to do?

compile two programs using a Makefile generated by xmkmf.

What's wrong:

it seems to ignore some of the variables.  more details below.

What should have happened:

it should have compiled the programs.

Please describe any relevant documentation references:

The Imakefile in question is /mit/cref/src/opink/src/Imakefile.  I had
no problems using it on the decmips and rsaix but it breaks on the vax
and rt worstations.  It may be that the Imakefile isn't written very
well -- I'm just learning, but the Makefile seems ok.  See this part:

[that's from the Makefile]
------------------cut-here------------------
                SRCS_1 = xopink.c ariregall.c output.c
                OBJS_1 = xopink.o ariregall.o output.o
                LIBS_1 = -lWc -lXaw -lXmu -lXt -lXext -lX11 -lm

                SRCS_2 = opink.c output.c
                OBJS_2 = opink.o output.o

#            LDOPTIONS = -s -L/usr/athena/lib

             MYBINDIR = /mit/cref/@sys
             MYSRCDIR = /mit/cref/src/opink/src

             PROGRAMS = xopink walkin

all:: $(PROGRAMS)

xopink:  $(OBJS_1)
         $(RM) $@
        $(CC) -o $@  $(OBJS_1) $(LDOPTIONS)  $(LIBS_1) $(LDLIBS)  $(EXTRA_LOAD_F
LAGS)

clean::
        $(RM) xopink

walkin:  $(OBJS_2)
         $(RM) $@
        $(CC) -o $@  $(OBJS_2) $(LDOPTIONS)  $(LDLIBS)  $(EXTRA_LOAD_FLAGS)

clean::
        $(RM) walkin
------------------cut-here------------------

Now I type:

      > make walkin
      `walkin' is up to date.

      > make all

      > make xopink
      rm -f xopink
      gcc -fpcc-struct-return -o xopink   -O  -L/usr/athena/lib
      gcc: No input files specified.
      *** Exit 1

      Stop.

The first one is OK.  The second one should have done "make xopink" and
"make walkin" -- instead it did nothing.  And for the last one it didn't
use the specified object files which it should have compiled...






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