Re: Defining Make Variables from the Command Line

From: Emil A Eklund (eae_at_eae.net)
Date: 08/18/04

  • Next message: Mike: "How to get php4 extensions to "show up"?"
    To: <freebsd-questions@freebsd.org>, "Martin McCormick" <martin@dc.cis.okstate.edu>
    Date: Wed, 18 Aug 2004 17:41:09 +0200
    
    

    Use the -D switch, for instance
    make -DWITHOUT_X11 install clean

    or set it to a specific value (which in effect will also define it)
    make WITHOUT_X11=1 install clean

    /Emil A Eklund (emil@eae.net)

    ----- Original Message -----
    From: "Martin McCormick" <martin@dc.cis.okstate.edu>
    To: <freebsd-questions@freebsd.org>
    Sent: Wednesday, August 18, 2004 17:18
    Subject: Defining Make Variables from the Command Line

    > What is the correct command line syntax for "defining" a
    > variable to the Makefile?
    >
    > The expect port will make either with or without X11 support.
    > I want it without X11 and there is an ifdefine WITHOUT_X11 test in the
    > Makefile. My only problem is I remember that it can be done, but I
    > don't remember the exact syntax. Sometimes, if you get those wrong,
    > make still works but you get the build you didn't want. Thank you.
    >
    > Martin McCormick WB5AGZ Stillwater, OK
    > OSU Information Technology Division Network Operations Group
    > _______________________________________________
    > freebsd-questions@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to
    "freebsd-questions-unsubscribe@freebsd.org"
    >

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Mike: "How to get php4 extensions to "show up"?"

    Relevant Pages

    • Re: Profiling C programs
      ... > option and using the -pg switch in the Makefile. ... please give your full compilation line, ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
      (Debian-User)
    • Re: how to install asterisk on freebsd 4.11 release
      ... dedi513# make install clean ... "Makefile", line 28: Missing dependency operator ... To unsubscribe, send any mail to "freebsd-questions- unsubscribe@xxxxxxxxxxx" ...
      (freebsd-questions)
    • Re: First Time User
      ... you probably dont have a DM. ... To unsubscribe, ...
      (freebsd-newbies)
    • apache port ignoring datadir variable
      ... Issuing "env DATADIR=/var/www make install clean" doesn't ... I went so far as to editing the Makefile itself and I ...
      (freebsd-questions)
    • RE: Problem printing with CUPS
      ... Try to go to the meta port of cups in the ports tree and do a make ... I am using FreeBSD 5.1 with whatever version of CUPS is currently in the ... To unsubscribe, ...
      (freebsd-newbies)