English 中文(简体)
How do I see the commands that are run by GNU make?
原标题:

I m trying to debug a complex Makefile. How do you get GNU make to print all the commands it runs? I couldn t find the answer in the man page (using the -d flag doesn t seem to print it).

(This isn t necessary information to answer my question, but in case you re wondering: I m having trouble compiling a project built on NVIDIA s CUDA library. I can compile it myself, but using their Makefile results in a nasty compiler error. I d like to use their provided Makefile for easier packaging, and inclusion of other packages that they link in already.)

最佳回答

-n triggers a "dry run" in which no command is executed, though the commands which would execute are printed.

If your Makefile is recursive, though, this won t help much.

问题回答

暂无回答




相关问题
NVidia videocards - getting statistic

i need to write few applications about lowlevel videocard controling for my coursework. For example - temperature, working SM s, managing access to them, etc. OS linux, tesla c1060. Could you give me ...

nvidia cuda using all cores of the machine

I was running cuda program on a machine which has cpu with four cores, how is it possible to change cuda c program to use all four cores and all gpu s available? I mean my program also does things ...

creating arrays in nvidia cuda kernel

hi I just wanted to know whether it is possible to do the following inside the nvidia cuda kernel __global__ void compute(long *c1, long size, ...) { ... long d[1000]; ... } or the following ...

Calculate the angle between two triangles in CUDA

I wanted to calculate the angle between two triangles in 3D space. The two triangles will always share exactly two points. e.g. Triangle 1: Point1 (x1, y1, z1), Point2 (x2, y2, z2), Point3 (...

How do I see the commands that are run by GNU make?

I m trying to debug a complex Makefile. How do you get GNU make to print all the commands it runs? I couldn t find the answer in the man page (using the -d flag doesn t seem to print it). (This isn t ...

glDrawElements flicker and crash

I m getting a fishy error when using glDrawElements(). I m trying to render simple primitives (mainly rectangles) to speed up drawing of text and so forth, but when I call glDrawElements() the WHOLE ...

热门标签