forked from RTimothyEdwards/open_pdks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
100 lines (81 loc) · 2.3 KB
/
Makefile.in
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
#---------------------------------------------------
# Makefile for efabless project open_pdks
# Tim Edwards, 11/21/2016
# Updated 10/19/2018 for use independently of the
# efabless /ef/ tree filesystem setup.
# Updated 5/5/2020 for use with the 2-stage install
#---------------------------------------------------
#
# Typical usage:
#
# make
# generates the tech files from source masters.
#
# make install
#
# installs the tech files. If the configuration
# script has been given the "--with-<PDK>-dist-path="
# option, then tech files are installed in the path
# (such as a git repository) that is used for
# distribution of software across a system. Otherwise,
# files are installed in the local path specified by
# the configuration option "--with-<PDK>-local-path=".
#
# make clean
#
# clean up all files generated by 'make'
#
# make veryclean
#
# clean up all files generated by 'make' and remove
# all log files.
#
# make uninstall
#
# remove the installed PDKs.
#
#---------------------------------------------------
#
# The following definitions are tied to the contents
# of this repository and should not be changed.
TECHS =
SKY130_SOURCE_PATH = @SKY130_SOURCE_PATH@
ifneq ($(SKY130_SOURCE_PATH),)
TECHS += sky130
endif
DONE_MESSAGE = "Done."
ifeq ($(TECHS),)
DONE_MESSAGE = "No techs configured."
endif
TECHS_ALL = $(addprefix tech_,$(TECHS))
TECHS_INSTALL = $(addprefix install-,$(TECHS))
TECHS_UNINSTALL = $(addprefix uninstall-,$(TECHS))
TECHS_CLEAN = $(addprefix clean-,$(TECHS))
TECHS_VERYCLEAN = $(addprefix veryclean-,$(TECHS))
#---------------------------------------------------
all: $(TECHS_ALL)
@echo $(DONE_MESSAGE)
install: $(TECHS_INSTALL)
@echo $(DONE_MESSAGE)
uninstall: $(TECHS_UNINSTALL)
@echo $(DONE_MESSAGE)
clean: $(TECHS_CLEAN)
@echo $(DONE_MESSAGE)
veryclean: $(TECHS_VERYCLEAN)
@echo $(DONE_MESSAGE)
distclean: $(TECHS_VERYCLEAN)
${RM} -rf sources
@echo $(DONE_MESSAGE)
#---------------------------------------------------
tech_sky130:
(cd sky130 && ${MAKE} all)
#---------------------------------------------------
install-sky130: sky130
(cd sky130 && ${MAKE} install)
uninstall-sky130: sky130
(cd sky130 && ${MAKE} uninstall)
clean-sky130:
(cd sky130 && ${MAKE} clean)
veryclean-sky130:
(cd sky130 && ${MAKE} veryclean)
#---------------------------------------------------