Im having problem creating a make file in unix to run my C++ files.
i have two cpp file and 1 header file:
main.cpp main2.cpp header.h
i try to create a make file like this :
-----------------------------------------
calculate: main.cpp main2.cpp header.h
CC main.cpp main2.cpp -o myprogram
-------------------------------------------
but this does not work?
i create a make file b4 using just 1 cpp and 1 h and it works probably...
so can someone pls help me?
thx
i have two cpp file and 1 header file:
main.cpp main2.cpp header.h
i try to create a make file like this :
-----------------------------------------
calculate: main.cpp main2.cpp header.h
CC main.cpp main2.cpp -o myprogram
-------------------------------------------
but this does not work?
i create a make file b4 using just 1 cpp and 1 h and it works probably...
so can someone pls help me?
thx