LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Problem with a simple makefile (https://www.linuxquestions.org/questions/programming-9/problem-with-a-simple-makefile-382091/)

julz_51 11-11-2005 07:14 AM

Problem with a simple makefile
 
Hello,

I don't know much about C programming and makefiles but I have to work on a PAM module. I'm stuck when trying to compile the pam_permit example :
Code:

localhost:~/pam_permit# make
Makefile:15: *** Missing separator. Stop.

The two files (sources + makefile) are here : http://cvs.sourceforge.net/viewcvs.p...ermit/#dirlist.
My distro is Debian, kernel 2.4. Can you tell me how to compile the file ?
Thanks.

paulsm4 11-12-2005 12:57 AM

I don't know without looking at the makefile (and I didn't find it easily from the link you gave), but that error is usually caused by not putting a "<TAB>" character to indent your rule.

EXAMPLE:

myfile.o: myfile.c
$(CC) -c $(CFLAGS) myfile.c
<= THERE NEEDS TO BE A "TAB" CHARACTER BETWEEN THE LEFT MARGIN AND THE "$(CC)".
BLANKS WILL CAUSE "MISSING DELIMITER" ERROR

'Hope that helps .. PSM


All times are GMT -5. The time now is 10:13 PM.