Solved

"make debug" in command line

Posted on 2004-08-24
6
256 Views
Last Modified: 2013-12-26
I have makefile like (by name "makefile"),

my_program: processing.o gui.o
      c++ processing.o gui.o -o my_program

- If I give a command "make debug" in command line the above pgm should compile in debug mode. How to achieve this?

-thanks
0
Comment
Question by:princyrajan
  • 5
6 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 11889356
Try to run:
make -dD

instead of  "make debug"

man make
to learn more deatails
0
 
LVL 38

Expert Comment

by:yuzh
ID: 11889394
or
make -dDD
0
 

Author Comment

by:princyrajan
ID: 11889515
No my friends, If I give like "make debug", the pgm inside i.e
"c++ processing.o gui.o  -o my_program" should compile in debug mode like,
"c++ processing.o gui.o -g -o my_program"

-thanks

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 38

Expert Comment

by:yuzh
ID: 11889678
Add the followings in your Makefile

debug:
            make -dDD


then try
make debug
0
 
LVL 38

Expert Comment

by:yuzh
ID: 11889705
In most of the case "make debug" is for debug the C codes, but you want to do it for Makefile.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 250 total points
ID: 11889730
Sorry, I did read your comment in (http:#11889515), you mean use -g with the complier.

Here's the example:
http://vergil.chemistry.gatech.edu/resources/programming/c-tutorial/make.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need Help INsttalling wget on Mavericks OS X 3 90
iSeries FTP Exit Program 8 123
Expand macro to ask for filename column 8 37
x-bar in Google Sheets 2 25
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

18 Experts available now in Live!

Get 1:1 Help Now