How to group C progs to a project in Linux

Posted on 2004-11-04
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
    LVL 3

    Accepted Solution

    The usual way is to use a Makefile, and the a simple 'make' will build your project (tutorial available at

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

    Expert Comment

    by:Duncan Roe
    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

    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

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    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…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    731 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now