-all: ${ALL}
-
-build: cleandir build1 ${SRC}
-
-${ALL}: FRC
- @echo; echo +++ compiling $@
- cd $@; make ${MFLAGS}
-
-build1:
- @echo +++ installing includes
- cd include; make ${MFLAGS} DESTDIR=${DESTDIR} install
- @echo
- @echo +++ building dependencies
- @for i in ${ALL}; do \
- echo; echo +++ dependencies for $$i; \
- (cd $$i; make ${MFLAGS} depend); \
- done
- @echo +++ compiling C compiler
- cd usr.bin/cpp; make ${MFLAGS}
- cd usr.libexec/c2; make ${MFLAGS}
- cd usr.libexec/pcc; make ${MFLAGS}
- @echo
- @echo +++ installing C compiler
- cd usr.bin/cpp; make ${MFLAGS} install
- cd usr.libexec/c2; make ${MFLAGS} install
- cd usr.libexec/pcc; make ${MFLAGS} install
- @echo
- @echo +++ compiling C library
- cd usr.lib/libc; make ${MFLAGS} ${LIBCDEFS}
- @echo
- @echo +++ installing C library
- cd usr.lib/libc; make ${MFLAGS} DESTDIR=${DESTDIR} install
- @echo
- @echo +++ cleaning C compiler
- cd usr.bin/cpp; make ${MFLAGS} clean
- cd usr.libexec/c2; make ${MFLAGS} clean
- cd usr.libexec/pcc; make ${MFLAGS} clean
- @echo
- @echo +++ re-compiling C compiler
- cd usr.bin/cpp; make ${MFLAGS}
- cd usr.libexec/c2; make ${MFLAGS}
- cd usr.libexec/pcc; make ${MFLAGS}
- @echo
- @echo +++ re-installing C compiler
- cd usr.bin/cpp; make ${MFLAGS} install
- cd usr.libexec/c2; make ${MFLAGS} install
- cd usr.libexec/pcc; make ${MFLAGS} install
- @echo
- @echo +++ cleaning C library
- cd usr.lib/libc; make ${MFLAGS} clean
- @echo
- @echo +++ compiling all libraries
- cd usr.lib; make ${MFLAGS} ${LIBCDEFS}
- @echo
- @echo +++ installing all libraries
- cd usr.lib; make ${MFLAGS} DESTDIR=${DESTDIR} install
- @echo
- @echo +++ libraries done
- @echo
-
-installsrc: FRC
- @for i in ${SRC}; do \
- echo; \
- echo +++ installing $$i; \
- (cd $$i; \
- make ${MFLAGS} ${SRC_MFLAGS} DESTDIR=${DESTDIR} install); \
- done
-
-clean: FRC
- @for i in ${ALL}; do \
- echo; \
- echo +++ cleaning $$i; \
- (cd $$i; make ${SRC_MFLAGS} clean); \
- done
-
-cleandir: FRC
- @for i in include ${ALL}; do \
- echo; echo '+++ cleaning (cleandir)' $$i; \
- (cd $$i; make ${SRC_MFLAGS} cleandir); \
- done
-
-depend: FRC
- @for i in ${ALL}; do \
- echo; \
- echo +++ doing dependencies for $$i; \
- (cd $$i; make ${SRC_MFLAGS} depend); \
- done
-
-install: FRC
- @for i in ${ALL}; do \
- echo; \
- echo +++ installing $$i; \
- (cd $$i; \
- make ${MFLAGS} ${SRC_MFLAGS} DESTDIR=${DESTDIR} install); \
- done
-
-tags: FRC
- @for i in include lib usr.lib; do \
- echo; \
- echo +++ making tags for $$i; \
- (cd $$i; make ${SRC_MFLAGS} TAGSFILE=../tags tags); \
- done
- sort -u +0 -1 -o tags tags
-
-FRC: