Need a Makefile expert.

Dan Nelson dnelson at allantgroup.com
Wed Oct 1 15:31:00 PDT 2003


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 at allantgroup.com


More information about the freebsd-questions mailing list