Moving over to SQLSOCK structs
[freeradius.git] / Makefile.in
1 #
2 # Makefile      Makefile for the cistron-radius package.
3 #
4 #               NOTE: This top-level Makefile must not
5 #               use GNU-make extensions. The lower ones can.
6 #
7 # Version:      @(#)Makefile  1.10 21-Aug-1999  miquels@cistron.nl
8 #
9
10 @INCLUDE@ @IQUOTE@Make.inc@IQUOTE@
11
12 MAKE            = @MAKE@
13 SUBDIRS         = src raddb doc scripts
14 WHAT_TO_MAKE    = all
15
16 all:
17         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
18
19 clean:
20         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
21         @rm -f *~ stamp*
22
23 install:
24         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
25
26 common:
27         @for dir in $(SUBDIRS); do \
28                 echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
29                 (cd $$dir ; $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
30         done
31
32 distclean: clean
33         rm -f config.cache config.log config.status
34         -find . ! -name configure.in -name \*.in -print | \
35                 sed 's/\.in$$//' | \
36                 while read file; do rm -f $$file; done
37
38 ######################################################################
39 #
40 #  Automatic remaking rules suggested by info:autoconf#Automatic_Remaking
41 #
42 ######################################################################
43 configure: configure.in
44         autoconf
45
46 # autoheader might not change config.h.in, so touch a stamp file
47 config.h.in: stamp-h.in
48 stamp-h.in: configure.in acconfig.h config.h.top config.h.bot
49         autoheader
50         echo timestamp > stamp-h.in
51
52 config.h: stamp-h
53 stamp-h: config.h.in config.status
54         ./config.status
55
56 config.status: configure
57         ./config.status --recheck