Statistics
| Branch: | Revision:

iof-bird-daemon / Makefile @ 18c8241a

History | View | Annotate | Download (779 Bytes)

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

    
4
TOPDIR=$(shell pwd)
5
CPPFLAGS=-I$(TOPDIR)/sysdep/linux -I$(TOPDIR)
6
OPT=-O2
7
DEBUG=-g#gdb
8
CFLAGS=$(OPT) $(DEBUG) -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
9

    
10
PROTOCOLS=
11
DIRS=nest $(PROTOCOLS) lib sysdep/linux sysdep/unix
12
ARCHS=$(join $(addsuffix /,$(DIRS)),$(subst /,_,$(addsuffix .a,$(DIRS))))
13

    
14
export
15

    
16
all: .dep all-dirs bird
17

    
18
all-dirs:
19
	set -e ; for a in $(DIRS) ; do $(MAKE) -C $$a ; done
20

    
21
bird: $(ARCHS)
22
	$(CC) $(LDFLAGS) -o $@ $^
23

    
24
.dep:
25
	$(MAKE) dep
26
	touch .dep
27

    
28
dep:
29
	set -e ; for a in $(DIRS) ; do $(MAKE) -C $$a dep ; done
30

    
31
clean:
32
	rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
33
	rm -f bird .dep