Makefile error?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Makefile error?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Makefile error?  
Fernando Barsoba


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-18-05 10:54 PM

Hi there,

Silly situation keeps me from continuing w/ my tests... I'm trying to
execute the following makefile in a Linux machine:

*********************************
all:
listen speak

listen:	listen.o
gcc -g listen.c -o listen

speak:	speak.o
gcc -g speak.c -o speak

clean:
\rm -f listen speak

squeaky:
make clean
\rm -f listen.o speak.o

#tar:
#	cd ..; tar czvf socket.tar.gz socket/Makefile socket/listen.c
socket/speak.c socket/README; cd socket; mv ../socket.tar.gz .
*********************************

But for some reason, I get this error:
***************
eos% ./Makefile
./Makefile: line 1: all:: command not found
./Makefile: line 2: listen: command not found
./Makefile: line 4: listen:: command not found
./Makefile: line 7: speak:: command not found
./Makefile: line 10: clean:: command not found
./Makefile: line 13: squeaky:: command not found
***************

any idea what is this about?

Thank you very much,

Fernando





[ Post a follow-up to this message ]



    Re: Makefile error?  
Torgny Lyon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-18-05 10:54 PM

Fernando Barsoba <fbarsoba@verizon.net> wrote:
> eos% ./Makefile

How about running make?

--
Torgny Lyon





[ Post a follow-up to this message ]



    Re: Makefile error?  
Fernando Barsoba


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-18-05 10:54 PM

Fernando Barsoba wrote:
> Hi there,
>
> Silly situation keeps me from continuing w/ my tests... I'm trying to
> execute the following makefile in a Linux machine:
>
> *********************************
> all:
>     listen speak
>
> listen:    listen.o
>     gcc -g listen.c -o listen
>
> speak:    speak.o
>     gcc -g speak.c -o speak
>
> clean:
>     \rm -f listen speak
>
> squeaky:
>     make clean
>     \rm -f listen.o speak.o
>
> #tar:
> #    cd ..; tar czvf socket.tar.gz socket/Makefile socket/listen.c
> socket/speak.c socket/README; cd socket; mv ../socket.tar.gz .
> *********************************
>
> But for some reason, I get this error:
> ***************
> eos% ./Makefile
> ./Makefile: line 1: all:: command not found
> ./Makefile: line 2: listen: command not found
> ./Makefile: line 4: listen:: command not found
> ./Makefile: line 7: speak:: command not found
> ./Makefile: line 10: clean:: command not found
> ./Makefile: line 13: squeaky:: command not found
> ***************
>
> any idea what is this about?
>
> Thank you very much,
>
> Fernando

Ok, i realized what my mistake was... you should call makefile with the
make command... :-(

thanks anyway..





[ Post a follow-up to this message ]



    Re: Makefile error?  
Fernando Barsoba


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-18-05 10:54 PM

Torgny Lyon wrote:
> Fernando Barsoba <fbarsoba@verizon.net> wrote:
> 
>
>
> How about running make?
>
Thanks! I just saw it...





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:15 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register