-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathMakefile.in
58 lines (44 loc) · 1.38 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
# $Id: Makefile.in,v 1.5 2003/06/22 22:59:45 ek Exp $
LIBSRC= pam_sqlite.c
LIBOBJ= pam_sqlite.o pam_get_pass.o pam_std_option.o pam_get_service.o
LIBLIB= pam_sqlite.so
DISTDIR= pam_sqlite-0.1
ROOTDIR=
LINK= @SQLITE_LIB@
LDLIBS= ${LINK} @LIBS@
INCLUDE= @SQLITE_INC@
CFLAGS= @CFLAGS@ -fPIC -DPIC -Wall -D_GNU_SOURCE ${INCLUDE}
all: ${LIBLIB}
DISTDIRS= debian
DISTFILES= acconfig.h README pam_get_pass.c pam_get_service.c pam_mod_misc.h \
pam_sqlite.c pam_std_option.c test.c debian/changelog debian/control \
debian/copyright debian/dirs debian/rules Makefile.in configure.in \
config.h.in install-sh config.sub config.guess install-module configure \
CREDITS
distfiles: ${DISTFILES}
${DISTDIR}.tar.gz: distfiles
mkdir -p ${DISTDIR}
for d in ${DISTDIRS}; do \
mkdir -p ${DISTDIR}/$$d; \
done
for f in ${DISTFILES}; do \
cp -pR $$f ${DISTDIR}/$$f; \
done
tar -czvvf ${DISTDIR}.tar.gz ${DISTDIR}
rm -rf ${DISTDIR}
dist: ${DISTDIR}.tar.gz
${LIBLIB}: ${LIBOBJ}
${CC} ${CFLAGS} ${INCLUDE} -shared -o $@ ${LIBOBJ} ${LDLIBS}
test: test.c
${CC} ${CFLAGS} -o $@ test.c ${LDLIBS}
install:
@(export ROOTDIR=${DESTDIR}; ./install-module @host_os@)
clean:
rm -f ${LIBOBJ} ${LIBLIB} core test *~
rm -f ${DISTDIR}.tar.gz
dist-clean: distclean
distclean: clean
rm -f config.cache config.log config.status config.h
rm -f Makefile
extraclean: clean
rm -f *.a *.o *.so *.bak