summaryrefslogtreecommitdiff
path: root/runtime/libtrace/Makefile
blob: b74e037dcff2e7697eee0dfc32a18c922a5b394c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
LEVEL = ../../..

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