-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
53 lines (42 loc) · 1.28 KB
/
Makefile.in
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
47
48
49
50
51
52
53
CC = @CC@
LDFLAGS = @LDFLAGS@
CPPFLAGS = @CPPFLAGS@ @DEFS@ -std=c99
CFLAGS = @CFLAGS@
LIBS = @LIBS@
SHOBJFLAGS = @SHOBJFLAGS@
SHOBJLDFLAGS = @SHOBJLDFLAGS@
PREFIX = @prefix@
prefix = $(PREFIX)
exec_prefix = @exec_prefix@
libdir = @libdir@
security_dir = $(libdir)/security
all: pam_otp.@SHOBJEXT@
pam_otp.o: pam_otp.c otp.h
otp.o: otp.c otp.h
base32.o: base32.c base32.h
pam_otp.@SHOBJEXT@: pam_otp.o otp.o base32.o
test.o: test.c base32.o otp.o
%.o:
$(CC) $(SHOBJFLAGS) $(CFLAGS) $(CPPFLAGS) -o "$@" -c $(filter %.c, $^)
%.@SHOBJEXT@:
$(CC) $(SHOBJFLAGS) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o "$@" $(filter %.o, $^) $(LIBS)
@WEAKENSYMS@ "$@"
@REMOVESYMS@ "$@"
clean:
rm -f *.o
rm -f pam_otp.@SHOBJEXT@
distclean: clean
rm -f Makefile pam_otp.syms config.log config.status
rm -rf autom4te.cache
mrproper: distclean
rm -f configure aclocal.m4
test: test.o otp.o base32.o
$(CC) test.o otp.o base32.o $(LIBS) -o test
./test
install: pam_otp.@SHOBJEXT@
rm -f "$(DESTDIR)$(security_dir)/pam_otp.@SHOBJEXT@"
mkdir -p "$(DESTDIR)$(security_dir)"
cp pam_otp.@SHOBJEXT@ "$(DESTDIR)$(security_dir)/pam_otp.@SHOBJEXT@"
chmod 755 "$(DESTDIR)$(security_dir)/pam_otp.@SHOBJEXT@"
-chown root:root "$(DESTDIR)$(security_dir)/pam_otp.@SHOBJEXT@"
.PHONY: all clean distclean install