| 1 |
knight |
71 |
# $Id$ |
| 2 |
adx |
59 |
|
| 3 |
|
|
AR = @AR@ |
| 4 |
|
|
RM = @RM@ |
| 5 |
adx |
61 |
SUBDIRS = comm mem misc net string |
| 6 |
|
|
@SET_MAKE@ |
| 7 |
adx |
59 |
|
| 8 |
|
|
default: build |
| 9 |
|
|
build: all |
| 10 |
adx |
61 |
all: libio.a |
| 11 |
adx |
59 |
|
| 12 |
adx |
61 |
libio.a: |
| 13 |
|
|
@for subdir in $(SUBDIRS); do \ |
| 14 |
|
|
cd $$subdir && ${MAKE} build || exit; cd ..; \ |
| 15 |
|
|
objs="$$subdir/*.o $$objs"; \ |
| 16 |
|
|
done; \ |
| 17 |
|
|
${RM} -f $@; \ |
| 18 |
|
|
${AR} csrv $@ $$objs |
| 19 |
adx |
59 |
|
| 20 |
adx |
61 |
depend: .depend |
| 21 |
adx |
59 |
.depend: |
| 22 |
adx |
61 |
@for subdir in $(SUBDIRS); do \ |
| 23 |
|
|
cd $$subdir && ${MAKE} depend || exit; cd ..; \ |
| 24 |
|
|
done |
| 25 |
adx |
59 |
|
| 26 |
|
|
clean: |
| 27 |
adx |
61 |
@for subdir in $(SUBDIRS); do \ |
| 28 |
|
|
cd $$subdir && ${MAKE} clean || exit; cd ..; \ |
| 29 |
|
|
done |
| 30 |
|
|
${RM} -f libio.a |
| 31 |
adx |
59 |
|
| 32 |
adx |
61 |
distclean: |
| 33 |
|
|
@for subdir in $(SUBDIRS); do \ |
| 34 |
|
|
cd $$subdir && ${MAKE} distclean || exit; cd ..; \ |
| 35 |
|
|
done |
| 36 |
|
|
${RM} -f libio.a Makefile |
| 37 |
adx |
59 |
|
| 38 |
|
|
install: |
| 39 |
|
|
|
| 40 |
adx |
61 |
.PHONY: distclean build |