Fix build from cmake
authorGeorge Dowding <gdowding@nutanix.com>
Wed, 18 Jun 2014 16:36:53 +0000 (09:36 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 18 Jun 2014 16:36:53 +0000 (09:36 -0700)
commit9e85c34edc17529435fbe78cc23a2346e6103742
tree27852ad1ca5ecb42cb5ca06f56691ce7287c43f1
parent6c784104cf90299aeec1d79f536a8e534c341c5f
Fix build from cmake

George reports:

I spent a few hours on this. Might save someone else some time.

I'm working in a larger project that uses cmake for its builds. cmake
supports adding external projects using the ExternalProject_Add
function.

But, there is some issue in the fio Makefile that causes a problem
when run from cmake. I could never reproduce it from the command line.

I was able to get the build to happen by changing the implicit rule
.c.o to use pattern notation. Not sure if this will work in all cases
or has other side effects.

Without this change, I was getting this error.

make[4]: *** No rule to make target `gettime.o', needed by `fio'.  Stop.

Signed-off-by: Jens Axboe <axboe@fb.com>
Makefile