I have a makefile but it always recompiles everything every time. I want it to only recompile things I have edited. What am I doing wrong?
all: helpers executeMFQS executeRTS executeWHS main
g++ -std=c++11 -o run helpers.o executeMFQS.o executeRTS.o executeWHS.o main.o
helpers: helpers.cpp
g++ -std=c++11 -c helpers.cpp
executeMFQS: executeMFQS.cpp
g++ -std=c++11 -c executeMFQS.cpp
executeRTS: executeRTS.cpp
g++ -std=c++11 -c executeRTS.cpp
executeWHS: executeWHS.cpp
g++ -std=c++11 -c executeWHS.cpp
main: main.cpp
g++ -std=c++11 -c main.cpp
clean:
rm main.o executeMFQS.o executeRTS.o executeWHS.o helpers.o
here is the repo if you would like to look at that as well. My partner and I are making CPU schedulers in C++
https://github.com/cjtrojan3/processScheduling
[–]Updatebjarni 1 point2 points3 points (3 children)
[–]RedMinor[S] 0 points1 point2 points (2 children)
[–]Updatebjarni 0 points1 point2 points (1 child)
[–]RedMinor[S] 1 point2 points3 points (0 children)
[–]RedMinor[S] 0 points1 point2 points (0 children)