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 12-17-2007, 10: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, 11:27 AM   #2
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 735

Rep: Reputation: 76
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



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

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

All times are GMT -5. The time now is 08:16 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
Open Source Consulting | Domain Registration