-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
88 lines (67 loc) · 2.26 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Makefile pour calife(8)
#
# @(#) $Id: Makefile.in,v 62657218adf3 2014/05/22 22:01:50 roberto $
#
srcdir = @srcdir@
VPATH = $(srcdir)
install_prefix =
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
sbindir = $(exec_prefix)/sbin
mandir = $(prefix)/man
man1dir = $(mandir)/man1
man5dir = $(mandir)/man5
etcdir = @ETCDIR@
CC = @CC@
CFLAGS = -Wall @CFLAGS@
LDFLAGS = @LDFLAGS@
DEFS = @DEFS@
LIBS = @LIBS@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
GROFF = @GROFF@
MV = @MV@
RM = @RM@
BINGRP = @BINGRP@
SHELL = /bin/sh
MAN1PAGES = calife.1
MAN1SOURCES = calife.1.in
MAN5PAGES = calife.auth.5
MAN5SOURCES = calife.auth.5.in
# XXX change it if you want calife.auth and calife.out somewhere else
AUTH_CONFIG_FILE = $(etcdir)/calife.auth
CALIFE_OUT_FILE = $(etcdir)/calife.out
SRCS = calife.c db.c util.c auth.c auth_pam.c
OBJS = calife.o db.o util.o auth.o auth_pam.o
# XXX change it if you'd rather have the more "standard" name calife.
PROGRAM = calife
IPROGRAM = @IPROGRAM@
all: $(PROGRAM)
.c.o:
$(CC) -c -I. $(DEFS) -DAUTH_CONFIG_FILE=\"$(AUTH_CONFIG_FILE)\" -DCALIFE_OUT_FILE=\"$(CALIFE_OUT_FILE)\" $(CFLAGS) $<
calife.o: calife.c conf.h config.h
auth.o: auth.c conf.h config.h
db.o: db.c conf.h config.h
util.o: util.c conf.h config.h
auth_pam.o: auth_pam.c conf.h config.h
config.h: config.h.in config.status
Makefile: Makefile.in
$(PROGRAM): $(OBJS) conf.h
$(CC) $(LDFLAGS) $(OBJS) -o $(PROGRAM) $(LIBS)
clean:
$(RM) -f $(PROGRAM) $(OBJS)
distclean: clean
$(RM) -f Makefile config.h $(MAN1PAGES) $(MAN5PAGES)
$(RM) -f config.cache config.log config.status
install: $(PROGRAM)
$(INSTALL) -o root -g $(BINGRP) -m 4755 $(PROGRAM) $(bindir)/$(IPROGRAM)
@$(INSTALL) -m 644 -o root -g $(BINGRP) calife.1 $(man1dir)
@$(INSTALL) -m 644 -o root -g $(BINGRP) calife.auth.5 $(man5dir)
echo Installing sample version of calife.auth in $(etcdir)
$(INSTALL) -m 600 -o root -g $(BINGRP) calife.auth-dist $(etcdir)
depend:
$(MAKEDEP) -I$(srcdir) -I. $(DEFS) $(SRCS)
check:
scan-build $(MAKE) CC="ccc-analyzer"