Adding a custom extension to executable made with makefile -


i have basic makefile:

cc=gcc cflags=-wall -g -o -pedantic -wformat=2 -wextra -lm 

and compile foo.c foo. how can add custom extension, example want compile foo.c in foo.run.

thank much.

add makefile:

foo.run : foo.c         $(cc) $(cflags) -o $@ $< 

make sure second line starts tab character, not spaces. check out manual page or other documentation version of make.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -