cavatools: initialize repository
[cavatools.git] / erised / 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 -lncurses
6 LDFLAGS = -Wl,-Ttext=70000000
7
8 # Dependent headers
9 hdrs := caveat.h opcodes.h insn.h
10
11 # Text substitutions
12 hdrs := $(addprefix $R/include/cava/,$(hdrs))
13
14
15 erised: erised.o $(LIBS)
16 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
17
18 erised.o: $(hdrs) ../pipesim/pipesim.h
19
20 install: erised
21 -cp $^ $R/bin/
22
23 .PHONY:
24 clean:
25 rm -f erised *.o *~ ./#*#
26
27
28