Initial revision
[freeradius.git] / src / modules / rlm_unix / Makefile
1 TARGET  = rlm_unix
2 SRCS    = rlm_unix.c cache.c
3
4 include ../rules.mak
5
6 CFLAGS          += -DLOGDIR=\"$(LOGDIR)\"
7
8 rlm_unix.c: config.h
9
10 include config.mak
11
12 LIBS += $(LIBSHADOW) $(LIBCRYPT)
13
14 config: config.mak
15
16 config.mak config.h:
17         @../checkconfig -c LIBCRYPT crypt
18         @../checkconfig -I HAVE_CRYPT_H crypt.h
19         @../checkconfig -l LIBCRYPT crypt -lcrypt
20         @../checkconfig -c HAVE_GETSPNAM getspnam
21         @../checkconfig -l LIBSHADOW getspnam -lshadow
22         @../checkconfig -f ETC_SHADOW /etc/shadow
23         @../checkconfig -I HAVE_SHADOW_H shadow.h
24         @../checkconfig -c HAVE_GETUSERSHELL getusershell