[Last Call] Learn how to a build a cloud-first strategyRegister Now


How to group C progs to a project in Linux

Posted on 2004-11-04
Medium Priority
Last Modified: 2010-04-22
As in Turbo C, DOS version, there was something called .prj files which contained a list of c prog. and its headers. When compiled all was compiled together.
How do I do this in Linux?
Question by:libin_v

Accepted Solution

mac_ earned 120 total points
ID: 12503724
The usual way is to use a Makefile, and the a simple 'make' will build your project (tutorial available at http://www.opussoftware.com/tutorial/TutMakefile.htm).

However, some IDEs will implement their own version of .prj files (or build the Makefile for you)
LVL 35

Expert Comment

by:Duncan Roe
ID: 12503802
From the command "info make" you can find instructions on how to automatically generate dependencies.
I always have to look it up again when I want to use it because IMHO it's a bit arcane, but it does work.
Once you are automatically generating dependencies you are doing pretty much everything any IDE can do (again IMHO).
LVL 24

Expert Comment

ID: 12530689
It depends fully on the tools you're using. If you use e.g Kdevelop, Anjuta or some other IDE you'll find a similar file for them. If you do use the "standard" tools you have to group that all by yourself.


Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question