Straight up new to the whole thing, i need to start using make and I dont know where to type my
make program: main.o funcs.o
g++ main.o funcs.o -o program
make main.o: main.cpp funcs.h
g++ -c main.cpp
make funcs.o: funcs.cpp funcs.h
g++ -c funcs.cpp
How do i create the "makefile" file in my directory, does it have a file extension? Once i create it do i just start typing these in the terminal or do i edit my makefile, is it like a makefile.txt and i edit that to add rules?
Makefileas any other file in the directory. Use your favorite editor to create a file namedMakefile(no extension like.txt). You can edit the file using any editor of your choice; even notepad for that matter. You would find many tutorials and beginner's guides online for writing makefiles.