Statistics
| Branch: | Revision:

iof-bird-daemon / tools / Makefile.in @ ed9a8236

History | View | Annotate | Download (960 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 tags
9

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

    
12
subdir depend: .dir-stamp
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 $@ $^ $(LIBS)
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
tags:
28
	cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) -name *.[chY]`
29

    
30
clean:
31
	find . -name "*.[oa]" -or -name core -or -name depend | xargs rm -f
32
	rm -f $(exedir)/bird .dep-stamp
33

    
34
distclean: clean
35
	rm -f config.* configure sysdep/autoconf.h Makefile Rules
36
	rm -rf .dir-stamp $(clean-dirs)