Mon, 28 Aug 2000 12:24:32 +0200
trunk: changeset 24
Added tokz_warn
6 | 1 | ## |
2 | ## Some make rules | |
3 | ## | |
4 | ||
5 | ###################################### | |
6 | ||
7 | ifdef SUBDIRS | |
8 | ||
9 | all: subdirs $(TARGETS) | |
10 | ||
11 | clean: subdirs-clean _clean | |
12 | ||
13 | realclean: subdirs-realclean _realclean | |
14 | ||
15 | depend: subdirs-depend _depend | |
16 | ||
17 | else | |
18 | ||
19 | all: $(TARGETS) | |
20 | ||
21 | clean: _clean | |
22 | ||
23 | realclean: _realclean | |
24 | ||
25 | depend: _depend | |
26 | ||
27 | endif | |
28 | ||
29 | ifdef INSTALL_SUBDIRS | |
30 | ||
31 | install: subdirs-install _install | |
32 | ||
33 | else | |
34 | ||
35 | install: _install | |
36 | ||
37 | endif | |
38 | ||
39 | ###################################### | |
40 | ||
41 | .c.o: | |
9 | 42 | $(CC) $(CFLAGS) -c $< -o $@ |
6 | 43 | |
44 | _clean: | |
17 | 45 | rm -f core $(OBJS) $(DEPEND_FILE) $(TO_CLEAN) |
6 | 46 | |
47 | _realclean: _clean | |
17 | 48 | rm -f $(TARGETS) $(TO_REALCLEAN) |
6 | 49 | |
50 | _depend: | |
8 | 51 | $(MAKE_DEPEND) *.c |
6 | 52 | |
53 | ###################################### | |
54 | ||
55 | subdirs: | |
9 | 56 | set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i; done |
6 | 57 | |
58 | subdirs-depend: | |
9 | 59 | set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i depend; done |
6 | 60 | |
61 | subdirs-clean: | |
9 | 62 | set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done |
6 | 63 | |
64 | subdirs-realclean: | |
9 | 65 | set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i realclean; done |
6 | 66 | |
67 | subdirs-install: | |
9 | 68 | set -e; for i in $(INSTALL_SUBDIRS); do $(MAKE) -C $$i install; done |
6 | 69 | |
70 | ###################################### | |
71 | ||
72 | ifeq ($(DEPEND_FILE),$(wildcard $(DEPEND_FILE))) | |
73 | include $(DEPEND_FILE) | |
74 | endif |