Commit | Line | Data |
---|---|---|
e324963e KM |
1 | # |
2 | # Copyright (c) 1980 Regents of the University of California. | |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
95f51977 | 6 | # @(#)Makefile 5.4 (Berkeley) 8/26/85 |
21d7efb1 KM |
7 | # |
8 | DESTDIR= | |
9 | CFLAGS= -O | |
74d5a2b2 | 10 | TAGSFILE=tags |
21d7efb1 KM |
11 | |
12 | # Programs that live in subdirectories, and have makefiles of their own. | |
13 | # | |
e804469b | 14 | SUBDIR= c2 cpp libc pcc |
21d7efb1 KM |
15 | |
16 | all: ${SUBDIR} | |
17 | ||
f0f83cf4 | 18 | ${SUBDIR}: FRC |
21d7efb1 KM |
19 | cd $@; make ${MFLAGS} |
20 | ||
f0f83cf4 | 21 | FRC: |
95f51977 | 22 | |
21d7efb1 | 23 | install: |
3ceb07a7 | 24 | -for i in ${SUBDIR}; do \ |
9c1744c1 KM |
25 | (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done |
26 | ||
74d5a2b2 | 27 | tags: |
95f51977 | 28 | cd libc; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags |
21d7efb1 KM |
29 | |
30 | clean: | |
31 | rm -f a.out core *.s *.o | |
3ceb07a7 | 32 | -for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done |