473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

Oct 30 '07 #1
2 1057
On Oct 30, 12:48 pm, Khookie <chris.k...@gmail.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.

Oct 30 '07 #2
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

Oct 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

66
by: Darren Dale | last post by:
Hello, def test(data): i = ? This is the line I have trouble with if i==1: return data else: return data a,b,c,d = test()
5
by: Jeffrey Barish | last post by:
I have a small program that I would like to run on multiple platforms (at least linux and windows). My program calls helper programs that are different depending on the platform. I think I...
4
by: cppaddict | last post by:
Hi, Can someone offer a good reference for learning about using make with gcc on windows xp? Are there any other utilities I should know about for managing multiple-file projects? Thanks,...
4
by: DG | last post by:
Hi, Can anyone advise how to execute multiple statements in a single query batch. For example- update customers set customer_name = 'Smith' where customer_name = 'Smyth'; select * from...
6
by: Nitin Bhardwaj | last post by:
Hi all, I want to know what is wrong with alloca() ? Is it hard to implement in a platform-independent way? OR there is no need for it? AFAIK alloca() /*(used to)*/ allocate memory at...
2
by: Michel Esber | last post by:
Hello, I have an environment that contains V8 (FP 11) and V7 (FP13) Linux servers. One of our applications reads data from V8 servers and writes summarized data into V7 servers that canīt be...
0
by: Steve | last post by:
Hi, I'm developing a web app on a Windows PC and deploying on Mac OS X Server. (Both Java 1.4.2, Tomcat 5.5.17). What's the best way to transparently different file paths on the different...
1
by: jpw | last post by:
I am writing a Python / C++ embed app and it need to work on 3 platforms I have the PYTHONPATH variable set correctly and have gone back and downloaded compiled and installed the latest Python...
0
by: M.-A. Lemburg | last post by:
On 2008-05-17 20:54, Stef Mientki wrote: If you need a common interface on all the platforms, then I'd suggest you have a look at our mxODBC: http://www.egenix.com/products/python/mxODBC/ ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.