-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.sub
64 lines (46 loc) · 1.41 KB
/
Makefile.sub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
R1000BIN = ${WORKDIR}/_obj/r1000sim.${BRANCH}
OBJDIR = ${WORKDIR}/_obj
r1000sim: ${R1000BIN}
@echo "WORKDIR ${WORKDIR}"
@echo "BRANCH ${BRANCH}"
@echo "OPTIMIZE ${OPTIMIZE}"
ln -sf ${R1000BIN} r1000sim
-include Makefile.local
include ${WORKDIR}/_obj/Makefile.flags
include Infra/Makefile.inc
include Dfs/Makefile.inc
include Diag/Makefile.inc
include Makefile.musashi.inc
include Iop/Makefile.inc
include Chassis/Makefile.inc
include Components/Makefile.inc
include ${WORKDIR}/Emu/Makefile.inc
include ${WORKDIR}/Fiu/Makefile.inc
include ${WORKDIR}/Ioc/Makefile.inc
include ${WORKDIR}/Mem32/Makefile.inc
include ${WORKDIR}/Seq/Makefile.inc
include ${WORKDIR}/Typ/Makefile.inc
include ${WORKDIR}/Val/Makefile.inc
include ${WORKDIR}/Chassis/Makefile.inc
CFLAGSMINUSI += -I.
CFLAGSMINUSD += -DMUSASHI_CNF='"Iop/musashi_conf.h"'
CFLAGS += -std=c17 ${OPTIMIZE} -pthread
CFLAGS += ${CFLAGSMINUSD}
CFLAGS += ${CFLAGSMINUSI}
CFLAGS += ${PARANOIA}
SC_API ?= -std=c++14
SC_I ?= -I/usr/local/include -I.
SC_L ?= -L/usr/local/lib -lsystemc
SC_CFLAGS += ${SC_API} ${OPTIMIZE} ${PARANOIA} ${PARANOIAXX} -pthread
SC_CC = ${CXX} ${SC_CFLAGS} -I. ${SC_I} -c
${R1000BIN}: ${OBJS}
@echo Linking ${R1000BIN}
@${CXX} -o ${R1000BIN} ${R1000SIM} ${SC_CFLAGS} ${LDFLAGS} ${OBJS} ${SC_L}
flint: ${OBJS}
flexelint flint.lnt \
${R1000SIM} ${CFLAGSMINUSI} ${CFLAGSMINUSD} \
Dfs/*.c \
Diag/*.c \
Infra/*.c \
Iop/*.c \
Chassis/*.c \