5abe9d01157f429261dbc48aac97d8eb00e7ccbd
[freeradius.git] / src / modules / rlm_sql / Makefile.in
1 TARGET          = @targetname@
2 SRCS            = rlm_sql.c sql.c
3 HEADERS         = rlm_sql.h
4 RLM_INSTALL     = install-drivers
5 RLM_CFLAGS      = $(INCLTDL)
6 RLM_LIBS        = $(LIBLTDL)
7 RLM_SUBDIRS     = drivers
8
9 #
10 #  Not using shared libraries, add in ALL known static modules
11 # at build time.
12 #
13 #ifneq ($(USE_SHARED_LIBS),yes)
14 #RLM_LIBS       += $(shell for x in drivers/rlm_*/rlm_*.la;do echo -dlpreopen $$x;done)
15 #endif
16
17 $(STATIC_OBJS): $(HEADERS)
18
19 $(DYNAMIC_OBJS): $(HEADERS) 
20
21
22 all:
23         @$(MAKE) $(MFLAGS) static dynamic
24         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
25
26 allclean:
27         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=clean common
28
29 install-drivers:
30         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=install common
31
32 common: 
33         @for dir in $(RLM_SUBDIRS); do \
34                 echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
35                 (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
36         done
37
38 include ../rules.mak
39