LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   The quickest of make questions (https://www.linuxquestions.org/questions/linux-newbie-8/the-quickest-of-make-questions-148024/)

gauge73 02-19-2004 10:11 AM

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?

aaa 02-19-2004 10:14 AM

See this :
http://www.wlug.org.nz/MakefileHowto

gauge73 02-19-2004 10:34 AM

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.

aaa 02-19-2004 10:42 AM

Based on the link I posted...
Code:

CFLAGS=-Wno-deprecated -g

all: project

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



All times are GMT -5. The time now is 02:41 AM.