[llvm-commits] CVS: llvm/test/Libraries/libinstr/Makefile
Vikram Adve
vadve at cs.uiuc.edu
Tue Jul 8 13:42:03 PDT 2003
Changes in directory llvm/test/Libraries/libinstr:
Makefile updated: 1.3 -> 1.4
---
Log message:
Native libraries (libinstr*.a) should not have been taken out when
taking out the rule for compiling the test driver.
We need the native libraries for libinstr because they are directly
linked into the native CBE or LLC code. That is the only practical
way to debug them!
---
Diffs of the changes:
Index: llvm/test/Libraries/libinstr/Makefile
diff -u llvm/test/Libraries/libinstr/Makefile:1.3 llvm/test/Libraries/libinstr/Makefile:1.4
--- llvm/test/Libraries/libinstr/Makefile:1.3 Tue May 27 16:43:14 2003
+++ llvm/test/Libraries/libinstr/Makefile Tue Jul 8 13:40:58 2003
@@ -4,3 +4,20 @@
include ../Makefile.libs
+## We need the native libraries for libinstr because they are directly
+## linked into the native CBE or LLC code. That is the only practical
+## way to debug them!
+
+LIBINSTR = ../Output/libinstr.$(ARCH).a
+all:: $(LIBINSTR)
+
+tracelib: tracelib.c
+ g++ -g -DTEST_INSTRLIB $< -o $@
+
+Debug/tracelib.o: tracelib.c Debug/.dir
+ $(CompileC) -g $< -o $@
+
+$(LIBINSTR): Debug/tracelib.o ../Output/.dir
+ ar r $@ $<
+
+tracelib.c: tracelib.h
More information about the llvm-commits
mailing list