Native libraries (libinstr*.a) should not have been taken out when
[oota-llvm.git] / runtime / libtrace / Makefile
1 LEVEL = ../../..
2
3 LIBNAME = instr
4
5 include ../Makefile.libs
6
7 ## We need the native libraries for libinstr because they are directly
8 ## linked into the native CBE or LLC code.  That is the only practical
9 ## way to debug them!
10
11 LIBINSTR = ../Output/libinstr.$(ARCH).a
12 all:: $(LIBINSTR)
13
14 tracelib: tracelib.c
15         g++ -g -DTEST_INSTRLIB $< -o $@
16
17 Debug/tracelib.o: tracelib.c Debug/.dir
18         $(CompileC) -g $< -o $@
19
20 $(LIBINSTR): Debug/tracelib.o ../Output/.dir
21         ar r $@ $<
22
23 tracelib.c: tracelib.h