Native libraries (libinstr*.a) should not have been taken out when
authorVikram S. Adve <vadve@cs.uiuc.edu>
Tue, 8 Jul 2003 18:40:58 +0000 (18:40 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Tue, 8 Jul 2003 18:40:58 +0000 (18:40 +0000)
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!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7129 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/libtrace/Makefile

index d9d311bcd85502254bd5dd098dfcd954c763bc46..b74e037dcff2e7697eee0dfc32a18c922a5b394c 100644 (file)
@@ -4,3 +4,20 @@ LIBNAME = instr
 
 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