Re: [ng-spice-devel] getopt (fwd)
A couple of options.
1) use autoconf to define a variable like
GETOPTSRCS= getopt.c getopt1.c
if they're needed or
GEOPTSRCS=
if not and then add $(GETOPTSRCS) to the list of source files.
2) a different option is #ifdef-like things in the Makefile, but this
tends to be dependent on the exact make you're using. For example in BSD
make, you can do
.ifdef FOO
# insert condition make stuff here
.endif
and in GNU make, it looks more like,
ifdef FOO
# stuff...
endif
I'd suggest the former unless you're forcing GNU make on everyone.
-Dan
On Mon, 16 Apr 2001, p.nenzi@ieee.org wrote:
> On Mon, 16 Apr 2001 mcmahill@mtl.mit.edu wrote:
>
> > Here are the getopt files.
>
> Thnak you, I will work on them. Doe anybody knows if there is a way to
> #ifdef a Makefile ?
>
> Bye,
> Paolo
>
Partial thread listing: