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
Post a Comment