make on multiple platforms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Khookie

    #1

    make on multiple platforms

    Hi

    I'm sure not if this is the right newsgroup since this is (possibly) a
    question about make, but hopefully someone here might know the best
    way about this.

    I've built a program that compiles well on my Ubuntu PC.

    However, I also wanted to compile it on my Mac (which has MacPorts
    installed & the necessary libraries installed).

    Now with MacPorts, all the include/lib paths are different, hence the
    makefile I have doesn't work too well unless I create another one
    (which I've done for now).

    Is there a way I can just have one makefile, which has both settings,
    and can compile accordingly?

    Cheers

    Chris

  • user923005

    #2
    Re: make on multiple platforms

    On Oct 30, 12:48 pm, Khookie <chris.k...@gma il.comwrote:
    Hi
    >
    I'm sure not if this is the right newsgroup since this is (possibly) a
    question about make, but hopefully someone here might know the best
    way about this.
    >
    I've built a program that compiles well on my Ubuntu PC.
    >
    However, I also wanted to compile it on my Mac (which has MacPorts
    installed & the necessary libraries installed).
    >
    Now with MacPorts, all the include/lib paths are different, hence the
    makefile I have doesn't work too well unless I create another one
    (which I've done for now).
    >
    Is there a way I can just have one makefile, which has both settings,
    and can compile accordingly?
    Sure, try
    man make
    for more info.

    Comment

    • CBFalconer

      #3
      Re: make on multiple platforms

      Khookie wrote:
      >
      I'm sure not if this is the right newsgroup since this is
      (possibly) a question about make, but hopefully someone here
      might know the best way about this.
      >
      I've built a program that compiles well on my Ubuntu PC.
      >
      However, I also wanted to compile it on my Mac (which has
      MacPorts installed & the necessary libraries installed).
      >
      Now with MacPorts, all the include/lib paths are different, hence
      the makefile I have doesn't work too well unless I create another
      one (which I've done for now).
      >
      Is there a way I can just have one makefile, which has both
      settings, and can compile accordingly?
      Just configure your compiler correctly.

      --
      Chuck F (cbfalconer at maineline dot net)
      Available for consulting/temporary embedded and systems.
      <http://cbfalconer.home .att.net>



      --
      Posted via a free Usenet account from http://www.teranews.com

      Comment

      Working...