blob: 7e6df6f22c6cf2e891a0138bc62019c47a5b799c [file] [log] [blame]
Patrick Venturecf832ae2019-03-28 11:15:42 -07001bin_PROGRAMS = phosphor-user-manager
Vishwanatha Subbanna8a89b532017-09-06 11:29:37 +05302
Sumanth Bhat736648e2019-03-06 14:19:25 +05303noinst_HEADERS = user_mgr.hpp users.hpp
Vishwanatha Subbannad20225f2017-09-06 11:36:04 +05304
Vishwanatha Subbanna8a89b532017-09-06 11:29:37 +05305phosphor_user_manager_SOURCES = \
Richard Marian Thomaiyar9f630d92018-05-24 10:49:10 +05306 mainapp.cpp \
7 user_mgr.cpp \
8 users.cpp
Vishwanatha Subbannad20225f2017-09-06 11:36:04 +05309
10phosphor_user_manager_LDFLAGS = $(SDBUSPLUS_LIBS) \
Vishwanatha Subbannabdb298f2017-09-06 11:39:22 +053011 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Vishwanatha Subbanna070a3e42017-09-06 11:40:45 +053012 $(PHOSPHOR_LOGGING_LIBS) \
Richard Marian Thomaiyar9f630d92018-05-24 10:49:10 +053013 $(BOOST_CPPFLAGS) \
Vishwanatha Subbannabdb298f2017-09-06 11:39:22 +053014 -lcrypt \
15 -lstdc++fs
Vishwanatha Subbannad20225f2017-09-06 11:36:04 +053016
17phosphor_user_manager_CXXFLAGS = $(SYSTEMD_CFLAGS) \
Vishwanatha Subbanna070a3e42017-09-06 11:40:45 +053018 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Richard Marian Thomaiyar9f630d92018-05-24 10:49:10 +053019 $(PHOSPHOR_LOGGING_CFLAGS) \
20 $(BOOST_CPPFLAGS) \
21 -DBOOST_ALL_NO_LIB \
22 -DBOOST_SYSTEM_NO_DEPRECATED \
23 -DBOOST_ERROR_CODE_HEADER_ONLY
24
Anton D. Kachalovb36b11c2021-03-19 10:38:57 +010025certmgrenvdir=$(datadir)/phosphor-certificate-manager
26dbuspolicy_DATA = phosphor-nslcd-cert-config.conf
27certmgrenv_DATA = nslcd
28SYSTEM_UNIT_ALIASES = \
29 ../phosphor-certificate-manager@.service multi-user.target.wants/phosphor-certificate-manager@nslcd.service
30
Alexander Filippov7ba91cb2022-01-12 21:58:02 +030031SUBDIRS = . phosphor-ldap-config test
Nagaraju Goruganti997f5e02018-08-30 03:05:11 -050032
Anton D. Kachalovb36b11c2021-03-19 10:38:57 +010033install-aliases-hook:
34 set -- $(SYSTEM_UNIT_ALIASES) && \
35 dir=$(systemdsystemunitdir) && $(install-aliases)
36
37define install-aliases
38 while [ -n "$$1" ]; do \
39 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
40 rm -f $(DESTDIR)$$dir/$$2 && \
41 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
42 shift 2 || exit $$?; \
43 done
44endef
45
46INSTALL_DATA_HOOKS = \
47 install-aliases-hook
48
49install-data-hook: $(INSTALL_DATA_HOOKS)