Manual pull of 2561c375bc
[freeradius.git] / src / Makefile
1 #
2 # Makefile
3 #
4 # Version:      $Id$
5 #
6
7 include ../Make.inc
8 MFLAGS += --no-print-directory
9
10 SUBDIRS         = include lib modules main
11 WHAT_TO_MAKE    = all
12
13 .PHONY: all clean install reconfig
14 all: freeradius-devel
15         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
16
17 clean:
18         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
19         @rm -f include/*~ *~
20
21 install:
22         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
23
24 reconfig:
25         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
26
27 .PHONY: tests
28 tests:
29         @$(MAKE) -C tests tests
30
31 .PHONY: common $(SUBDIRS)
32
33 #
34 #  Ensure correct build order
35 lib: include
36
37 modules: lib
38
39 main: modules
40
41 common: $(SUBDIRS)
42
43 $(SUBDIRS): 
44         @echo "Making $(WHAT_TO_MAKE) in $(X)src/$@..."
45         @$(MAKE) $(MFLAGS) X=$(X)src/ -C $@ $(WHAT_TO_MAKE)
46
47 freeradius-devel:
48         ln -sf include freeradius-devel