blob: 18110e223ed7a1075370539aeb0b87eeb1b50e59 [file] [log] [blame]
Vikram S. Adve2df1f742002-05-19 15:49:58 +00001LEVEL = ../../..
2
3include $(LEVEL)/Makefile.common
4
5LIB32 = ../Output/libinstr32.a
6LIB64 = ../Output/libinstr64.a
7all:: $(LIB32) $(LIB64)
8
9tracelib: tracelib.c
10 g++ -g -DTEST_INSTRLIB $< -o $@
11
12Debug/tracelib32.o: tracelib.c Debug/.dir
13 g++ -c -g $< -o $@
14
15Debug/tracelib64.o: tracelib.c Debug/.dir
16 cc -c -xarch=v9 -g $< -o $@
17
18$(LIB32): Debug/tracelib32.o ../Output/.dir
19 ar r $@ $<
20
21$(LIB64): Debug/tracelib64.o ../Output/.dir
22 ar r $@ $<
23
24test: tracelib
25
26tracelib.c: tracelib.h