I have problem with my makefile. Tree of my project looks as follow:
- makefile/ makefile
- source/ main.cpp
- includes/ first.hpp,
and i have following makefile:
program.o: main.o
g++ -o program main.o
main.o: /home/project/source/main.cpp, /home/project/include/first.hpp
g++ -c /home/project/source/main.cpp /home/project/include/first.hpp
How i can create makefile without paths? I mean something like this:
program.o: main.o
g++ -o program main.o
main.o: main.cpp, first.hpp
g++ -c main.cpp first.hpp