Revision f20600f2 Makefile.objs

b/Makefile.objs
310 310
# trace
311 311

  
312 312
ifeq ($(TRACE_BACKEND),dtrace)
313
trace.h: trace.h-timestamp trace-dtrace.h
314
else
315
trace.h: trace.h-timestamp
316
endif
317
trace.h-timestamp: $(SRC_PATH)/trace-events config-host.mak
318
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -h < $< > $@,"  GEN   trace.h")
319
	@cmp -s $@ trace.h || cp $@ trace.h
320

  
321
trace.c: trace.c-timestamp
322
trace.c-timestamp: $(SRC_PATH)/trace-events config-host.mak
323
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -c < $< > $@,"  GEN   trace.c")
324
	@cmp -s $@ trace.c || cp $@ trace.c
325

  
326
trace.o: trace.c $(GENERATED_HEADERS)
327

  
328
trace-dtrace.h: trace-dtrace.dtrace
329
	$(call quiet-command,dtrace -o $@ -h -s $<, "  GEN   trace-dtrace.h")
330

  
331
# Normal practice is to name DTrace probe file with a '.d' extension
332
# but that gets picked up by QEMU's Makefile as an external dependancy
333
# rule file. So we use '.dtrace' instead
334
trace-dtrace.dtrace: trace-dtrace.dtrace-timestamp
335
trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events config-host.mak
336
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -d < $< > $@,"  GEN   trace-dtrace.dtrace")
337
	@cmp -s $@ trace-dtrace.dtrace || cp $@ trace-dtrace.dtrace
338

  
339
trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS)
340
	$(call quiet-command,dtrace -o $@ -G -s $<, "  GEN trace-dtrace.o")
341

  
342
simpletrace.o: simpletrace.c $(GENERATED_HEADERS)
343

  
344
ifeq ($(TRACE_BACKEND),dtrace)
313 345
trace-obj-y = trace-dtrace.o
314 346
else
315 347
trace-obj-y = trace.o

Also available in: Unified diff