blob: 6ce953441abf319062b46f5a6df3f0804ae48b69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#
## Copyright (c) 2008 by Seraphim Mellos. See LICENSE.
#
include ../../Make.defs
TITLE = pam_nologin
PAM_SO_SUFFIX =
LIBSHARED = $(TITLE).so$(PAM_SO_SUFFIX)
SHLIBMODE = 755
MAN8 = $(TITLE).8
MANMODE = 644
SECUREDIR = /lib/security
MANDIR = /usr/share/man
#DESTDIR =
PROJ = $(LIBSHARED)
OBJS = pam_nologin.o
all:
case "`uname -s`" in \
Linux) $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
LDLIBS="$(LDLIBS)" $(PROJ);;\
*) echo "OS not supported.";;\
esac
$(LIBSHARED): $(OBJS)
$(LD) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $(LIBSHARED)
.c.o:
$(CC) $(CFLAGS) -c $*.c
install:
$(INST) -m $(SHLIBMODE) -o root -g root $(LIBSHARED) $(SECUREDIR)
$(INST) -m 444 -o root -g root $(MAN8) $(MANDIR)
clean:
$(RM) $(PROJ) *.o
|