473,386 Members | 1,804 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,386 software developers and data experts.

How to create a Makefile?

Help! I need urgent help in creating a Makefile for 2 c source codes which are gen3D.c and KalmanTrack.c which i wish to link together and don't understand the correct syntax to create a makefile.

Help would be much appreciated.
Mar 28 '11 #1
3 2377
weaknessforcats
9,208 Expert Mod 8TB
Makefiles nowadays are created by your IDE, like Visual Studio, rather than by hand. The fact that you need one inidcates you are on a non-Windows machine. That being the case, check your man pages for make. Also, the OReilly book on make has this information.
Mar 28 '11 #2
Banfa
9,065 Expert Mod 8TB
That is not strictly true weaknessforcats, make files (or their equivalent) can be created by most IDEs but you can create them by hand should you wish to, or have a good reason too like for instance you want to be sure that the makefile will work on all platforms you are using if you are targeting multiple platforms.

Chris Winton not all make engines use precisely the same language in their make files so it rather depends on whose make engine (executable) you are using.

Start, obviously, by downloading the documentation for the make engine you are using and read it.

Alternatively if it really is urgent just download an IDE and create a project in that add your source files and then have the IDE output a make file.
Mar 28 '11 #3
donbock
2,426 Expert 2GB
Warning: the space and tab characters are not always interchangeable in make. Be careful to use the proper whitespace characters.
Mar 28 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jamie Saker | last post by:
I think I'm overlooking something assumed in socket's makefile method. Googling several hours and digging thru the python reference didn't help - I think I'm overlooking an assumption between...
3
by: Faith | last post by:
any good tips on reading makefiles that were written using C++ ASAP please
4
by: simduss | last post by:
Hi, First of all, I'm a beginner with Unix. I have a "make" (Unix command) problem with a Pro*C sub-program since I installed Oracle8i (before I was at 7.3.4). I have a script builder that...
1
by: ccc | last post by:
Hi List, I have an existing 7.0 project which I need to create a makefile for. I tried to do it this way: file -> add new project -> makefile project. It generates a testing.vproj for me, so,...
1
by: Lord2702 | last post by:
Fri. Aug. 06, 2003 10:30 PM PT In VC 6.0 you can create/ generate MakeFile of your project, but it seems this option is not there in VSIDE .NET 2003. Anybody know how to create the makefile of...
3
by: Lord2702 | last post by:
Sun. Aug. 22, 2004 2:20 PM PT How to create multifile assembly in Managed Visual C++ ? Using VSIDE. Please do not point me to MSDN pages, I already read those pages, and it only says, that you...
4
by: Jess | last post by:
Hello, I am now trying to use makefile to compile C++ programs. My makefile looks like: f1.o : f1.cpp h1.h h2.h g++ -c f1.cpp f2.o : f2.cpp h2.h h3.h g++ -c f2.cpp
1
by: rpjanaka | last post by:
I am using an open source library called IGI_UDP for measure the available bandwidth of a link (http://www.cs.cmu.edu/%7Ehnn/igi/ ). with that library they have provided a "Makefile" which is not an...
2
by: chutsu | last post by:
I'm basically a summer student working on a program called Rivet. (http://projects.hepforge.org/rivet/) And I'm trying to port it to BOINC so that the hosts can download the BOINC client and do...
4
by: peterv6 | last post by:
I'm running OS X Snow Leopard on a MacBook Pro. I've installed Mysql using Macports. MySQL works fine, but I need to install the DBI module. I've tried several ways, but I always get the following...
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:
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.