forked from rmanohar/layout
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
61 lines (48 loc) · 1.84 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
#-------------------------------------------------------------------------
#
# Copyright (c) 2018 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=act2lef.$(EXT)
EXE2=actrectbbox.$(EXT)
TARGETS=$(EXE) $(EXE2)
TARGETSCRIPTS=mag.pl rect2lef.pl mag2rect.py
TARGETLIBS=pass_stk.so pass_layout.so
OBJS1=main.o
OBJS2=main2.o stk_pass.o stk_layout.o geom.o tile.o subcell.o \
geom_layer.o \
geom_blob.o attrib.o
OBJS3=stk_pass.os stk_layout.os geom.os tile.os subcell.os \
geom_layer.os \
geom_blob.os attrib.os
OBJS=$(OBJS1) $(OBJS2) $(OBJS3)
SRCS=$(OBJS1:.o=.cc) $(OBJS2:.o=.cc)
include $(ACT_HOME)/scripts/Makefile.std
$(EXE): main.os
$(CXX) $(SH_EXE_OPTIONS) $(CFLAGS) main.os -o $(EXE) $(SHLIBACTPASS)
pass_stk.so: stk_pass.os $(ACTPASSDEPEND)
$(ACT_HOME)/scripts/linkso pass_stk.so stk_pass.os $(SHLIBACTPASS)
pass_layout.so: $(OBJS3) $(ACTPASSDEPEND)
$(ACT_HOME)/scripts/linkso pass_layout.so $(OBJS3) $(SHLIBACTPASS)
mag.pl:
git checkout mag.pl
rect2lef.pl:
git checkout rect2lef.pl
$(EXE2): $(OBJS2) $(ACTPASSDEPEND)
$(CXX) $(CFLAGS) $(OBJS2) -o $(EXE2) $(LIBACTPASS)
-include Makefile.deps