Hi,
I can not create executable code by using a makefile.How can I generate the executable code.I wrote this lines into my makefile and in the terminal I wrote make but I can not do it.Please help me.
myprog : myprog.o mylibrary.o
gcc myprog.o mylibrary.o -o myprog
myprog.o : myprog.c mylibrary.h
gcc -c myprog.c mylibrary.h -o myprog.o
mylibrary.o : mylibrary.c mylibrary.h
gcc -c mylibrary.c -o mylibrary.o
I take lost separator error.How can I fix this?