Statistics
| Branch: | Revision:

iof-bird-daemon / tools / Makefile.in @ 49e7e5ee

History | View | Annotate | Download (832 Bytes)

1
# Makefile for the BIRD Internet Routing Daemon
2
# (c) 1999 Martin Mares <mj@ucw.cz>
3

    
4
include Rules
5

    
6
srcdir_abs := $(shell cd $(srcdir) ; pwd)
7

    
8
.PHONY: all subdir depend clean distclean
9

    
10
all: .dir-stamp .dep-stamp subdir $(exedir)/bird
11

    
12
subdir depend:
13
	set -e ; for a in $(dynamic-dirs) ; do $(MAKE) -C $$a $@ ; done
14
	set -e ; for a in $(static-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; done
15

    
16
$(exedir)/bird: $(addsuffix /all.o, $(static-dirs)) conf/all.o lib/birdlib.a
17
	$(CC) $(LDFLAGS) -o $@ $^
18

    
19
.dir-stamp:
20
	mkdir -p $(static-dirs)
21
	touch .dir-stamp
22

    
23
.dep-stamp:
24
	$(MAKE) depend
25
	touch .dep-stamp
26

    
27
clean:
28
	rm -f `find . -name "*.[oa]" -or -name core -or -name depend`
29
	rm -f $(exedir)/bird .dep-stamp
30

    
31
distclean: clean
32
	rm -f config.* configure sysdep/autoconf.h Makefile Rules
33
	rm -rf .dir-stamp $(clean-dirs)