cavatools: initialize repository
[cavatools.git] / traceinfo / Makefile
1 # Path where things should be installed
2 R = $(HOME)
3
4 CFLAGS = -I$R/include/cava -g -O3
5 LIBS = $R/lib/libcava.a -lrt -lpthread
6 LDFLAGS = -Wl,-Ttext=70000000
7
8 # Dependent headers
9 hdrs := opcodes.h insn.h shmfifo.h caveat.h
10
11 # Text substitutions
12 hdrs := $(addprefix $R/include/cava/,$(hdrs))
13
14
15 traceinfo: traceinfo.o $(LIBS)
16 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
17
18 traceinfo.o: $(hdrs)
19
20 install: traceinfo
21 -cp $^ $R/bin/
22
23 .PHONY:
24 clean:
25 rm -f traceinfo pipesim cache_?way.h *.o *~ ./#*#