Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2003 17:30:49 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Julian Elischer <julian@elischer.org>
Cc:        questions@freebsd.org
Subject:   Re: Need a Makefile expert.
Message-ID:  <20031001223049.GC2421@dan.emsphone.com>
In-Reply-To: <Pine.BSF.4.21.0310011501110.63939-200000@InterJet.elischer.org>
References:  <Pine.BSF.4.21.0310011501110.63939-200000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 01), Julian Elischer said:
> 
> I'm trying to compile npasswd (from utexas).
> I know that it doesn't work on freeBSD, but I have
> some work to make it do so, if only I could get the damned thing to
> compile automatically.. (I can do lots of it by hand but it's a pain)
> 
> After running Configure, I type "make"
> and I get:
> [lots-o-stuff]
> Making all in src...
> cd Methods; make   libmethod.a
> make: don't know how to make .o. Stop
> *** Error code 2
> 
... (much clipping ahead)
> ########################################################################
> # Makefile generated from Makefile.SH on Wed Oct  1 14:39:29 PDT 2003
...
> SHADOW_M =  
... 
> libmethod.a:  $(METHOD_OBJ) $(SHADOW_M).o
> 	$(RM) $@
> 	$(AR) $@  $(METHOD_OBJ) $(SHADOW_M).o
> 	$(RANLIB) $@

SHADOW_M expands to the empty string, so the dependency list for
libmethod.a is whatever METHOD_OBJ expands to, plus ".o".  Try removing
$(SHADOW_M).o from both lines above?

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031001223049.GC2421>