c++ - Makefile syntax error. Missing separator -
i need understand syntax of makefile prior modify fit own needs. searching through net have been able understand of it, lastly part giving me syntax error:
makefile:119: *** missing separator. stop.
line 119 first 1 here:
rm -rf $(cleanfiles) .cpp.o: $(cxx) $(cxxflags) $(incl) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< .cpp.obj: $(cxx) $(cxxflags) $(incl) -c -o $@ `if test -f '$<'; $(cygpath_w) '$<'; else $(cygpath_w) '$(srcdir)/$<'; fi` .c.o: $(cc) $(cflags) $(incl) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< .c.obj: $(cc) $(cflags) $(incl) -c -o $@ `if test -f '$<'; $(cygpath_w) '$<'; else $(cygpath_w) '$(srcdir)/$<'; fi`
i don't what's beingness done in these lastly lines, , can't seem find info need in gnu create manual,
thanks
since you've cut-and-pasted actual makefile it's hard give answer. if first line provided, rm -rf $(cleanfiles)
line 119 , makefile valid until then, it's don't have tab preceding rm -rf $(cleanfiles)
. should this:
clean: rm -rf $(cleanfiles) .cpp.o: $(cxx) $(cxxflags) $(incl) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< .cpp.obj: $(cxx) $(cxxflags) $(incl) -c -o $@ `if test -f '$<'; $(cygpath_w) '$<'; else $(cygpath_w) '$(srcdir)/$<'; fi` .c.o: $(cc) $(cflags) $(incl) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< .c.obj: $(cc) $(cflags) $(incl) -c -o $@ `if test -f '$<'; $(cygpath_w) '$<'; else $(cygpath_w) '$(srcdir)/$<'; fi`
that is, command lines in each recipe must have literal tab character @ start of line.
c++ makefile external libraries
No comments:
Post a Comment