File: Makefile.am

package info (click to toggle)
yapet 2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,920 kB
  • sloc: cpp: 32,397; sh: 5,032; makefile: 880; ansic: 36; sed: 16
file content (114 lines) | stat: -rw-r--r-- 4,813 bytes parent folder | download | duplicates (4)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Building preload library has been taken out of the regular build
# flow, so that we don't have to rely on the noinst_ prefix, which
# doesn't produce a shared library, but a static one unable to be used
# by LD_PRELOAD. However, not using noinst_ prefix, a shared library
# will be built which is also installed. That we don't want either.

yapet_srcdir = $(top_srcdir)/src
yapet_libs_srcdir = $(yapet_srcdir)/libs
yapet_builddir = $(top_builddir)/src
yapet_libs = $(yapet_builddir)/libs


EXTRA_DIST = istty.cc pwrecord.cc checkyapet.cc masterpwchange.cc

noinst_PROGRAMS = checktestpwrecord checkmasterpwchange istty

checktestpwrecord_SOURCES = checktestpwrecord.cc
checktestpwrecord_CPPFLAGS = -I$(yapet_libs_srcdir)/pwgen \
	-I$(yapet_libs_srcdir)/consts \
	-I$(yapet_libs_srcdir)/metadata \
	-I$(yapet_libs_srcdir)/exceptions \
	-I$(yapet_libs_srcdir)/crypt \
	-I$(yapet_libs_srcdir)/file \
	-I$(yapet_libs_srcdir)/utils \
	-I$(yapet_libs_srcdir)/passwordrecord \
	-I$(yapet_libs_srcdir)/interfaces \
	-I$(top_builddir) \
	-I$(top_srcdir) \
	 $(OPENSSL_INCLUDES)
checktestpwrecord_LDADD = $(yapet_libs)/crypt/libyapet-crypt.la \
	$(yapet_libs)/file/libyapet-file.la \
	$(yapet_libs)/utils/libyapet-utils.la \
	$(yapet_libs)/passwordrecord/libyapet-passwordrecord.la \
	$(yapet_libs)/metadata/libyapet-metadata.la \
	$(yapet_libs)/consts/libyapet-consts.la \
	$(yapet_libs)/globals/libyapet-globals.la \
	$(yapet_libs)/cfg/libyapet-cfg.la \
	$(yapet_libs)/libyapet-logger.la \
	$(top_builddir)/libyacurs/src/libyacurs.la \
	$(LIBINTL)

checkmasterpwchange_SOURCES = checkmasterpwchange.cc
checkmasterpwchange_CPPFLAGS = -I$(yapet_libs_srcdir)/pwgen \
	-I$(yapet_libs_srcdir)/consts \
	-I$(yapet_libs_srcdir)/metadata \
	-I$(yapet_libs_srcdir)/exceptions \
	-I$(yapet_libs_srcdir)/crypt \
	-I$(yapet_libs_srcdir)/file \
	-I$(yapet_libs_srcdir)/utils \
	-I$(yapet_libs_srcdir)/passwordrecord \
	-I$(yapet_libs_srcdir)/interfaces \
	-I$(top_builddir) \
	-I$(top_srcdir) \
	$(OPENSSL_INCLUDES)
checkmasterpwchange_LDADD = $(yapet_libs)/crypt/libyapet-crypt.la \
	$(yapet_libs)/file/libyapet-file.la \
	$(yapet_libs)/utils/libyapet-utils.la \
	$(yapet_libs)/passwordrecord/libyapet-passwordrecord.la \
	$(yapet_libs)/metadata/libyapet-metadata.la \
	$(yapet_libs)/consts/libyapet-consts.la \
	$(yapet_libs)/globals/libyapet-globals.la \
	$(yapet_libs)/cfg/libyapet-cfg.la \
	$(yapet_libs)/libyapet-logger.la \
	$(top_builddir)/libyacurs/src/libyacurs.la \
	$(LIBINTL)


istty_SOURCES = istty.cc

myCPPFLAGS = -I$(top_srcdir)/libyacurs/include	\
-I$(top_builddir)/libyacurs/include

##
## libcheckyapet.so
##
checkyapet.lo: checkyapet.cc
	$(LIBTOOL) --tag=CXX --mode=compile $(CXX) -shared $(myCPPFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(AM_CPPFLAGS) -c -o $(builddir)/$@ $<

libcheckyapet.la: checkyapet.lo
	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXX) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -rpath $(libdir) -version-info 0 -o $@ $<

##
## libpwrecord.so
##
pwrecord.lo: pwrecord.cc
	$(LIBTOOL) --tag=CXX --mode=compile $(CXX) -shared $(myCPPFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(AM_CPPFLAGS) -c -o $(builddir)/$@ $<

libpwrecord.la: pwrecord.lo
	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXX) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -rpath $(libdir) -version-info 0 -o $@ $<

##
## libmasterpwchange.so
##
masterpwchange.lo: masterpwchange.cc
	$(LIBTOOL) --tag=CXX --mode=compile $(CXX) -shared $(myCPPFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(AM_CPPFLAGS) -c -o $(builddir)/$@ $<

libmasterpwchange.la: masterpwchange.lo
	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXX) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -rpath $(libdir) -version-info 0 -o $@ $<

check-local: libpwrecord.la checktestpwrecord libmasterpwchange.la libcheckyapet.la
	if $(builddir)/istty ; then \
		rm -f /tmp/emptyfile.pet && \
		$(top_builddir)/libtool --mode=execute /usr/bin/env LD_PRELOAD="$${EXTRA_LD_PRELOAD}$(builddir)/.libs/libcheckyapet.so" $(yapet_builddir)/yapet/yapet -i /tmp/emptyfile.pet || exit 1 && \
		rm -f /tmp/testpwrecord.pet && \
		$(top_builddir)/libtool --mode=execute /usr/bin/env LD_PRELOAD="$${EXTRA_LD_PRELOAD}$(builddir)/.libs/libpwrecord.so" $(yapet_builddir)/yapet/yapet -i /tmp/testpwrecord.pet || exit 1 && \
		$(top_builddir)/libtool --mode=execute $(builddir)/checktestpwrecord || exit 1 && \
		rm -f /tmp/masterpwchange.pet && \
		$(top_builddir)/libtool --mode=execute /usr/bin/env LD_PRELOAD="$${EXTRA_LD_PRELOAD}$(builddir)/.libs/libmasterpwchange.so" $(yapet_builddir)/yapet/yapet -i /tmp/masterpwchange.pet || exit 1 && \
		$(top_builddir)/libtool --mode=execute $(builddir)/checkmasterpwchange || exit 1 ; \
	fi

clean-local:
	rm -f *.la
	rm -f *.o