LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-25-2005, 02:55 AM   #1
frankli
LQ Newbie
 
Registered: Dec 2003
Posts: 25

Rep: Reputation: 15
A strange question of Makefile


I downloaded ppp-2.4.2 from internet and wanted to compile it by arm-linux-gcc. So I changed the Makefile of the ppp-2.4.2, I declared such line:
CC = /usr/local/arm-linux/bin/arm-linux-gcc
In the bottom directory rp-pppoe,the Makefile has such line:
$(CC) '-DRP-VERSION="$VERSION)"' $(CFLAGS) -I../../.. -c -o plugin.o -fPIC plugin.c
and CFLAGS = -O2 -g -I../../../include/linux
when I tried to compile it ,many errors happened. The upper Makefile was changed to this:
/usr/local/arm-linux/bin/arm-linux-gcc '-DRP-VERSION="3.3"' -O2 -g -I../../../include/linux -I../../.. -c -o plugin.o -fPIC plugin.c
In file included from /usr/local/arm-linux/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/sys-include/linux/ppp_defs.h:8
why occur such things? I think -I../../.. is in the directory ppp-2.4.2,but why come to arm-linux-gcc directory? Anybody can help me? thanks
 
Old 03-01-2005, 07:30 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
You're saying that when you compiled it, it used:

/usr/local/arm-linux/bin/arm-linux-gcc '-DRP-VERSION="3.3"' -O2 -g -I../../../include/linux -I../../.. -c -o plugin.o -fPIC plugin.c

That's ok, that's good actually

CC = /usr/local/arm-linux/bin/arm-linux-gcc
Is a variable declaration, $(CC) will dereference it and stick it right before your statement.

So you're telling it to look at the arm-linux gcc, that's why it is
 
Old 03-01-2005, 09:50 PM   #3
frankli
LQ Newbie
 
Registered: Dec 2003
Posts: 25

Original Poster
Rep: Reputation: 15
sorry,I can't know exactly what you mean,so please re-explain it again and tell me how to do,thanks.
 
  


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
makefile question ashwin.tanugula Programming 2 10-26-2005 03:08 PM
Question about makefile taureanyang Programming 1 03-25-2005 11:57 PM
makefile question blackzone Programming 2 12-20-2004 07:03 AM
kernel Makefile question feetyouwell Linux - Software 0 11-16-2004 11:36 AM
stupid makefile question drumlix18 Linux - Newbie 5 10-19-2004 10:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:07 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