LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 12-17-2007, 11:53 AM   #1
klavuzkarga
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Rep: Reputation: 0
makefile:4: *** missing separator. Stop


in my project there are 2 c programs and 1 shell script.

in the same directory, there are;

Code:
program1.c
program2.c
makefile
shellScript.sh
my makefile is;

Code:
shellScript: program1 program2
	
program1: program1.c 
gcc -o program1 program1.c
program2: program2.c 
gcc -o program2 program2.c
and it's name is makefile. it hasn't got an extension.

could you tell me what is wrong with it ?
 
Old 12-17-2007, 12:27 PM   #2
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 719

Rep: Reputation: 72
Hi.

You need a TAB before each "recipe" line.

See http://www.wlug.org.nz/MakefileHowto , for example ... cheers, makyo
Code:
shellScript: program1 program2

program1: program1.c
        gcc -o program1 program1.c
program2: program2.c
        gcc -o program2 program2.c
 
1 members found this post helpful.
  


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
/root/proclist/Makefile:5: *** missing separator. Stop. raklo Programming 17 09-02-2006 09:23 AM
.hal.0.cmd :2: Missing Separator neoAThome Ubuntu 0 12-27-2005 08:42 PM
spamassassin: makefile missing separator Andreja Linux - Software 1 05-31-2004 11:39 AM
Makefile separator problem Ownasaurus Linux - Software 5 09-07-2003 02:07 PM
Missing Separator? jamespetts Linux - Software 2 09-05-2002 01:24 PM


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