LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-08-2008, 10:31 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
Makefile problem


What do the following two lines mean which apear in a makefile? I have searched google and cannot find any thing about them.

tar: clean
( cd .. && tar cvfz $(TARGET)-`date "+%Y-%m-%d"`.tar.gz $(TARGET) ; cd - )

-include $(wildcard *.d) \u2013


TARGET and wildcard have not been defined in the makefile????

Thanks for your help.

Harry.
 
Old 05-08-2008, 11:04 AM   #2
mechdave
Member
 
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
It is a bit hard to tell you without knowing what the makefile is from. Can you post the whole makefile or a link to the program it is with?

Cheers...
 
Old 05-08-2008, 11:25 AM   #3
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
Here is the whole file

RM = rm -f

CC = arm_v5t_le-gcc

DFBLIB = /usr/local/lib
DFBINC = /usr/local/include


CPPFLAGS = -g -Wall -O2 -MD -D_REENTRANT -I. -I${DFBINC}/directfb
LDFLAGS = -g -Wall -O2 -L${DFBLIB} -ldirectfb -lfusion -ldirect -lpthread


PROGRAM = test
all: $(PROGRAM)

tar: clean
( cd .. && tar cvfz $(TARGET)-`date "+%Y-%m-%d"`.tar.gz $(TARGET) ; cd - )

clean:
$(RM) *.d *.o $(TARGET)


-include $(wildcard *.d) \u2013

This makefile is for a directfb program. It only consists of a single .cpp file. I wish to modify this makefile because my program has grew to include two other classes which are in the following files: Test1.cpp, Test1.h,Test2.cpp, Test2.h.

I wish to understand the whole file so I can then modify it to include these other files.

Thanks for your help.

Harry
 
Old 05-09-2008, 03:41 AM   #4
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
Help

Can anyone help me here????
 
  


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
problem with makefile killer_instinct Programming 19 12-23-2006 01:23 PM
Makefile Problem nelnel Programming 4 07-08-2005 02:31 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM
Problem with Makefile lucs Slackware 7 02-11-2005 09:18 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM


All times are GMT -5. The time now is 06:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration