intel / intel-cmt-cat

User space software for Intel(R) Resource Director Technology
http://www.intel.com/content/www/us/en/architecture-and-technology/resource-director-technology.html
Other
693 stars 183 forks source link

How do I run c CAT_MBA examples with a single file? #223

Closed kazi-m22 closed 2 years ago

kazi-m22 commented 2 years ago

While compiling the example codes (e.g. association_app.c), it is done in two steps in the Makefile (in short):

  1. cc -I../../../lib -fPIE -c -o association_app.o association_app.c
  2. cc -L../../../lib -lpqos association_app.o -o association_app

I want to get rid of the intermediate association_app.o relocatable file and compile it like a single c code. For doing so, i tried getting rid of -c flag but it does not find the libraries needed. I want to find a solution which can compile it in single step. How can I do that?