blob: a4e8a02edf092765b01fc5dfb5059e7a07b4e9b3 [file] [log] [blame]
Tim Edwards55f4d0e2020-07-05 15:41:02 -04001#---------------------------------------------------
2# Makefile for efabless project open_pdks
3# Tim Edwards, 11/21/2016
4# Updated 10/19/2018 for use independently of the
5# efabless /ef/ tree filesystem setup.
6# Updated 5/5/2020 for use with the 2-stage install
7#---------------------------------------------------
8#
9# Typical usage:
10#
11# make
12# generates the tech files from source masters.
13#
Tim Edwards7cbaaba2020-08-05 12:19:18 -040014# make install
Tim Edwards55f4d0e2020-07-05 15:41:02 -040015#
Tim Edwards7cbaaba2020-08-05 12:19:18 -040016# installs the tech files. If the configuration
17# script has been given the "--with-<PDK>-dist-path="
18# option, then tech files are installed in the path
19# (such as a git repository) that is used for
20# distribution of software across a system. Otherwise,
21# files are installed in the local path specified by
22# the configuration option "--with-<PDK>-local-path=".
Tim Edwards55f4d0e2020-07-05 15:41:02 -040023#
24# make clean
25#
26# clean up all files generated by 'make'
27#
Tim Edwards7cbaaba2020-08-05 12:19:18 -040028# make veryclean
29#
30# clean up all files generated by 'make' and remove
31# all log files.
32#
Tim Edwards55f4d0e2020-07-05 15:41:02 -040033#---------------------------------------------------
34#
35# The following definitions are tied to the contents
36# of this repository and should not be changed.
37
Tim Edwards8292c902020-12-24 16:25:25 -050038TECHS =
39
40SKY130_SOURCE_PATH = @SKY130_SOURCE_PATH@
41ifneq ($(SKY130_SOURCE_PATH),)
42 TECHS += sky130
43endif
44
45DONE_MESSAGE = "Done."
46ifeq ($(TECHS),)
47 DONE_MESSAGE = "No techs configured."
48endif
49
50TECHS_ALL = $(addprefix tech_,$(TECHS))
51TECHS_INSTALL = $(addprefix install-,$(TECHS))
52TECHS_CLEAN = $(addprefix clean-,$(TECHS))
53TECHS_VERYCLEAN = $(addprefix veryclean-,$(TECHS))
Tim Edwards55f4d0e2020-07-05 15:41:02 -040054
55#---------------------------------------------------
56
Tim Edwards8292c902020-12-24 16:25:25 -050057all: $(TECHS_ALL)
58 @echo $(DONE_MESSAGE)
59
60install: $(TECHS_INSTALL)
61 @echo $(DONE_MESSAGE)
62
63clean: $(TECHS_CLEAN)
64 @echo $(DONE_MESSAGE)
65
66veryclean: $(TECHS_VERYCLEAN)
67 @echo $(DONE_MESSAGE)
68
69distclean: $(TECHS_VERYCLEAN)
Tim Edwards6ee11532021-02-11 12:29:33 -050070 ${RM} -rf sources
Tim Edwards8292c902020-12-24 16:25:25 -050071 @echo $(DONE_MESSAGE)
Tim Edwards55f4d0e2020-07-05 15:41:02 -040072
73#---------------------------------------------------
74
75tech_sky130:
76 (cd sky130 && ${MAKE} all)
77
78#---------------------------------------------------
79
Tim Edwards7cbaaba2020-08-05 12:19:18 -040080install-sky130: sky130
81 (cd sky130 && ${MAKE} install)
Tim Edwards55f4d0e2020-07-05 15:41:02 -040082
83clean-sky130:
84 (cd sky130 && ${MAKE} clean)
85
86veryclean-sky130:
87 (cd sky130 && ${MAKE} veryclean)
88
Tim Edwards6ee11532021-02-11 12:29:33 -050089#---------------------------------------------------