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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -