-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
118 lines (90 loc) · 3.12 KB
/
Makefile
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#-------------------------------------------------------------------------
#
# Copyright (c) 2021 Rajit Manohar
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
#-------------------------------------------------------------------------
EXE=interact.$(EXT)
TARGETS=$(EXE)
SUBDIRS=scripts
OBJS=main.o act_cmds.o conf_cmds.o misc_cmds.o act_flprint.o \
act_simfile.o act_vfile.o ptr_manager.o ckt_cmds.o flow.o \
timer_cmds.o pandr_cmds.o placement_cmds.o \
routing_cmds.o
CPPSTD=c++17
SRCS=$(OBJS:.o=.cc)
EXTRALIBDEPEND=
include $(ACT_HOME)/scripts/Makefile.std
include config.mk
OMPFLAG=
GALOIS_EDA_PIECES=
ifdef timing_actpin_INCLUDE
GALOIS_EDA_PIECES+=-lactcyclone -lcyclone -lacttpass -lgalois_eda
EXTRALIBDEPEND+=$(ACT_HOME)/lib/libactcyclone.a \
$(ACT_HOME)/lib/libacttpass.so \
$(ACT_HOME)/lib/libcyclone.a \
$(ACT_HOME)/lib/libgalois_eda.a
endif
ifdef galois_INCLUDE
GALOIS_EDA_PIECES+=-lgalois_shmem
EXTRALIBDEPEND+=$(ACT_HOME)/lib/libgalois_shmem.a
OMPFLAG=-fopenmp
ifeq ($(BASEOS),linux)
GALOIS_EDA_PIECES+=-lnuma -latomic
endif
endif
ifdef dali_INCLUDE
DALI_PIECES=-ldalilib -lboost_filesystem -lboost_log_setup -lboost_log -lboost_thread
EXTRALIBDEPEND+=$(ACT_HOME)/lib/libdalilib.a
ifeq ($(BASEOS),darwin)
ifeq ($(shell ./have_boost_mt),1)
DALI_PIECES+=-lboost_filesystem-mt -lboost_log_setup-mt -lboost_log-mt -lboost_thread-mt
endif
endif
ifdef NEED_LIBCXXFS
DALI_PIECES+=-lstdc++fs
endif
endif
PANDR_PIECES=$(DALI_PIECES)
ifdef phydb_INCLUDE
PANDR_PIECES+=-lphydb -llef -ldef
EXTRALIBDEPEND+=$(ACT_HOME)/lib/libphydb.a $(ACT_HOME)/lib/liblef.a $(ACT_HOME)/lib/libdef.a
endif
ifdef pwroute_INCLUDE
PANDR_PIECES+=-lpwroute
EXTRALIBDEPEND+=$(ACT_HOME)/lib/libpwroute.a
endif
ifdef sproute_INCLUDE
PANDR_PIECES+=-lsproute
EXTRALIBDEPEND+=$(ACT_HOME)/lib/libsproute.a
endif
ifdef bipart_INCLUDE
PANDR_PIECES+=-lbipart
EXTRALIBDEPEND+=$(ACT_HOME)/lib/libbipart.a
endif
boost_INCLUDE+=-D_HAS_AUTO_PTR_ETC=0
ALL_INCLUDE=$(boost_INCLUDE) $(galois_INCLUDE) $(galois_eda_INCLUDE) $(dali_INCLUDE) $(phydb_INCLUDE) $(pwroute_INCLUDE)
ALL_LIBS=$(boost_LIBDIR) $(dali_LIBDIR) $(galois_eda_LIBDIR) $(phydb_LIBDIR) \
$(PANDR_PIECES) $(GALOIS_EDA_PIECES)
DFLAGS+=$(ALL_INCLUDE)
CFLAGS+=$(ALL_INCLUDE)
ifeq ($(BASEOS),linux)
CFLAGS+= -pthread
endif
$(EXE): $(OBJS) $(ACTPASSDEPEND) $(SCMCLIDEPEND) $(EXTRALIBDEPEND)
$(CXX) $(OMPFLAG) $(SH_EXE_OPTIONS) $(CFLAGS) $(OBJS) -o $(EXE) $(SHLIBACTPASS) $(SHLIBASIM) $(LIBACTSCMCLI) $(ALL_LIBS) -ldl -ledit
-include Makefile.deps