1 # Path where things should be installed
5 _dummy
:= $(shell mkdir
-p
$B)
8 hdrs
:= opcodes.h insn.h shmfifo.h caveat.h
11 hdrs
:= $(addprefix $R/include/cava
/,$(hdrs
))
13 aobj
:= tagonlycache.o container.o queues.o utilities.o
17 aobj
:= $(addprefix $B/,$(aobj
))
18 cobj
:= $(addprefix $B/,$(cobj
))
20 CFLAGS
= -I
$R/include/cava
-g
-Ofast
21 LIBS
= $R/lib
/libcava.a
-lrt
-lpthread
23 $B/cachesim
: $(cobj
) $R/lib
/libcava.a
24 $(CC
) $(CFLAGS
) -o
$B/cachesim
$^
$(LIBS
)
26 $R/lib
/libcava.a
: $(aobj
)
29 $B/cachesim.o
: $(hdrs
)
32 $(CC
) $(CFLAGS
) -o
$@
-c
$<
35 cp
$B/cachesim
$R/bin
/