Hey Guys,
I am new to unix environment. I am trying to write a make file that compiles C files and then links all the object files into a .a file.
here is my code...
mtc.a : simple.o, simple1.o;
# Compiling source files
simple.o : simple.c
gcc -c simple.c
simple1.o : simple1.c
gcc -c simple1.c
# End of makefile
The file name for this is makeunix. When I type makeunix it displays series of errors like
nwline or ; expected,
simple.o cannot be execute
: No such file or directory
gcc no input files
simple1.o cannot be execute
: No such file or directory
gcc no input files
Even though all the files mtc.a, simple.o, simple.c, simple1.o, simple1.c exist in the same directory.
Anyhelp in this regard is very much appreciated.
Best Regards,
Kishore