LinuxQuestions.org
Visit Jeremy's Blog.
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, 11: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, 11:14 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
See this :
http://www.wlug.org.nz/MakefileHowto
 
Old 02-19-2004, 11: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, 11:42 AM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

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

all: project

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:12 PM
Quickest Easist Way to get NTFS support via Fedora Core 2 kevingpo Fedora - Installation 7 12-19-2004 11:02 AM
What is the quickest install for VWnc/VIP spider_2004 Linux - Newbie 1 08-29-2004 12:12 PM
Quickest way to end Mandrake 9.2 thorman82 Mandriva 3 11-29-2003 11:32 PM
quickest way to upgrade Gnome? asianboi2k Linux - Software 3 10-03-2003 12:31 AM

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

All times are GMT -5. The time now is 08:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration