Using make



I have a source file called test.c. I have then made a
file called Makefile that contains the following:

test:
gcc test.c -o test


I have both the sourcefile and the Makefile in the same
dir. When I from this dir type "make" I get this
error:

mac2 c_assign > make
Makefile:2: *** missing separator. Stop.
mac2 c_assign >


I know it is not necessary to use make for only this
single file but I still would like to know what I am
missing.
.



Relevant Pages

  • multiple definition of .... and "first defined here"
    ... I am using a makefile to build my project with gcc. ... I use this same symbol "x" in a different source file ... is specifying that I make a lib with "X" ...
    (comp.unix.programmer)
  • Makefiles
    ... have a shell program source file, say prog.sh, and type "make prog" the make utility will automatically create "prog" and change the mode so it is executable. ... A Makefile defines targets -- prog, for example, is the target of prog.sh -- and dependencies. ... A C program depends upon a object file, not the source file. ... CFLAGS and LDFLAGS are tokens defined to mean something by make; MAINS and OBJECTS are tokens defined locally. ...
    (comp.databases.informix)
  • Re: Questions re C mode, ECB and some more
    ... Ah, I see, but that won't work when the Makefile is not in the same ... directory as the source file. ... but Makefile and objects are generated in a separate ...
    (comp.emacs)
  • How to modify and rebuild source code (like Calibrui)?
    ... User Interface Component": ... I need to make a small change to calibrui.cpp, so I edited the source file ... I guess I don't know how to "rebuild the ... calibrui.rc, makefile, makefile.inc, and sources. ...
    (microsoft.public.windowsce.platbuilder)