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 | # |
| 14 | # make install-local |
| 15 | # |
| 16 | # installs the tech files locally. |
| 17 | # |
| 18 | # make install-dist |
| 19 | # |
| 20 | # installs the tech files in the git project |
| 21 | # that is used for distribution of software |
| 22 | # across the system. |
| 23 | # |
| 24 | # make clean |
| 25 | # |
| 26 | # clean up all files generated by 'make' |
| 27 | # |
| 28 | #--------------------------------------------------- |
| 29 | # |
| 30 | # The following definitions are tied to the contents |
| 31 | # of this repository and should not be changed. |
| 32 | |
| 33 | TECHS = sky130 |
| 34 | |
| 35 | #--------------------------------------------------- |
| 36 | |
| 37 | all: ${TECHS} |
| 38 | for tech in ${TECHS}; do \ |
| 39 | ${MAKE} tech_$$tech; done |
| 40 | |
| 41 | #--------------------------------------------------- |
| 42 | |
| 43 | tech_sky130: |
| 44 | (cd sky130 && ${MAKE} all) |
| 45 | |
| 46 | #--------------------------------------------------- |
| 47 | |
| 48 | install-sky130-local: sky130 |
| 49 | (cd sky130 && ${MAKE} install-local) |
| 50 | |
| 51 | install-sky130-dist: sky130 |
| 52 | (cd sky130 && ${MAKE} install-dist) |
| 53 | |
| 54 | clean-sky130: |
| 55 | (cd sky130 && ${MAKE} clean) |
| 56 | |
| 57 | veryclean-sky130: |
| 58 | (cd sky130 && ${MAKE} veryclean) |
| 59 | |
| 60 | #--------------------------------------------------- |
| 61 | |
| 62 | install: |
| 63 | ${MAKE} install-local |
| 64 | |
| 65 | install-local: ${TECHS} |
| 66 | for tech in ${TECHS}; do \ |
| 67 | ${MAKE} install-$${tech}-local; done |
| 68 | |
| 69 | install-dist: ${TECHS} |
| 70 | for tech in ${TECHS}; do \ |
| 71 | ${MAKE} install-$${tech}-dist; done |
| 72 | |
| 73 | #--------------------------------------------------- |
| 74 | |
| 75 | clean: |
| 76 | for tech in ${TECHS}; do \ |
| 77 | ${MAKE} clean-$${tech}; done |
| 78 | |
| 79 | veryclean: |
| 80 | for tech in ${TECHS}; do \ |
| 81 | ${MAKE} veryclean-$${tech}; done |
Tim Edwards | 9a8249b | 2020-07-06 08:23:02 -0400 | [diff] [blame] | 82 | |
| 83 | distclean: |
| 84 | for tech in ${TECHS}; do \ |
| 85 | ${MAKE} veryclean-$${tech}; done |