LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2004, 10:11 AM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
The quickest of make questions


I need to submit a program with a makefile to compile it. It's just one file and I just want it to be compiled with the following command when the professor types "make"...

g++ -Wno-deprecated -o project project.cpp

Can anyone help me out with this?
 
Old 02-19-2004, 10:14 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
See this :
http://www.wlug.org.nz/MakefileHowto
 
Old 02-19-2004, 10:34 AM   #3
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
I didn't get to take a real close look, but I didn't see what I was looking for. I want them to be able to simply type "make" and have this one .cpp file be compiled with that command.
 
Old 02-19-2004, 10:42 AM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Based on the link I posted...
Code:
CFLAGS=-Wno-deprecated -g

all: project

project: project.cpp
       g++ $(CFLAGS) -o project project.cpp
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions on the Make command oasisbhrnw99 Linux - General 1 08-24-2005 12:12 PM
Quickest Easist Way to get NTFS support via Fedora Core 2 kevingpo Fedora - Installation 7 12-19-2004 10:02 AM
What is the quickest install for VWnc/VIP spider_2004 Linux - Newbie 1 08-29-2004 11:12 AM
Quickest way to end Mandrake 9.2 thorman82 Mandriva 3 11-29-2003 10:32 PM
quickest way to upgrade Gnome? asianboi2k Linux - Software 3 10-02-2003 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration