Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1 | #--------------------------------------------------- |
| 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 Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 14 | # make install |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 15 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 16 | # 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 Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 23 | # |
| 24 | # make clean |
| 25 | # |
| 26 | # clean up all files generated by 'make' |
| 27 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 28 | # make veryclean |
| 29 | # |
| 30 | # clean up all files generated by 'make' and remove |
| 31 | # all log files. |
| 32 | # |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 33 | #--------------------------------------------------- |
| 34 | # |
| 35 | # The following definitions are tied to the contents |
| 36 | # of this repository and should not be changed. |
| 37 | |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 38 | TECHS = |
| 39 | |
| 40 | SKY130_SOURCE_PATH = @SKY130_SOURCE_PATH@ |
| 41 | ifneq ($(SKY130_SOURCE_PATH),) |
| 42 | TECHS += sky130 |
| 43 | endif |
| 44 | |
| 45 | DONE_MESSAGE = "Done." |
| 46 | ifeq ($(TECHS),) |
| 47 | DONE_MESSAGE = "No techs configured." |
| 48 | endif |
| 49 | |
| 50 | TECHS_ALL = $(addprefix tech_,$(TECHS)) |
| 51 | TECHS_INSTALL = $(addprefix install-,$(TECHS)) |
| 52 | TECHS_CLEAN = $(addprefix clean-,$(TECHS)) |
| 53 | TECHS_VERYCLEAN = $(addprefix veryclean-,$(TECHS)) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 54 | |
| 55 | #--------------------------------------------------- |
| 56 | |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 57 | all: $(TECHS_ALL) |
| 58 | @echo $(DONE_MESSAGE) |
| 59 | |
| 60 | install: $(TECHS_INSTALL) |
| 61 | @echo $(DONE_MESSAGE) |
| 62 | |
| 63 | clean: $(TECHS_CLEAN) |
| 64 | @echo $(DONE_MESSAGE) |
| 65 | |
| 66 | veryclean: $(TECHS_VERYCLEAN) |
| 67 | @echo $(DONE_MESSAGE) |
| 68 | |
| 69 | distclean: $(TECHS_VERYCLEAN) |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 70 | ${RM} -rf sources |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 71 | @echo $(DONE_MESSAGE) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 72 | |
| 73 | #--------------------------------------------------- |
| 74 | |
| 75 | tech_sky130: |
| 76 | (cd sky130 && ${MAKE} all) |
| 77 | |
| 78 | #--------------------------------------------------- |
| 79 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 80 | install-sky130: sky130 |
| 81 | (cd sky130 && ${MAKE} install) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 82 | |
| 83 | clean-sky130: |
| 84 | (cd sky130 && ${MAKE} clean) |
| 85 | |
| 86 | veryclean-sky130: |
| 87 | (cd sky130 && ${MAKE} veryclean) |
| 88 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 89 | #--------------------------------------------------- |