Home > Software design >  How do I get make to just compile?
How do I get make to just compile?

Time:10-13

I want to just compile using make and not link. Within my directory I have the following: Makefile, pi*, pi.cpp, pi.o

In the Makefile this is the code:

pi: pi.o
 c   -O0 pi.o -o pi

pi.o: pi.cpp
 c   -O0 pi.cpp -c

How do I get make to just compile:

c -O0 pi.cpp -c

CodePudding user response:

Do you mean running only part for getting object file? Try runing make pi.o

  • Related