Patrick Venture | cf832ae | 2019-03-28 11:15:42 -0700 | [diff] [blame] | 1 | bin_PROGRAMS = phosphor-user-manager |
Vishwanatha Subbanna | 8a89b53 | 2017-09-06 11:29:37 +0530 | [diff] [blame] | 2 | |
Sumanth Bhat | 736648e | 2019-03-06 14:19:25 +0530 | [diff] [blame] | 3 | noinst_HEADERS = user_mgr.hpp users.hpp |
Vishwanatha Subbanna | d20225f | 2017-09-06 11:36:04 +0530 | [diff] [blame] | 4 | |
Vishwanatha Subbanna | 8a89b53 | 2017-09-06 11:29:37 +0530 | [diff] [blame] | 5 | phosphor_user_manager_SOURCES = \ |
Richard Marian Thomaiyar | 9f630d9 | 2018-05-24 10:49:10 +0530 | [diff] [blame] | 6 | mainapp.cpp \ |
| 7 | user_mgr.cpp \ |
| 8 | users.cpp |
Vishwanatha Subbanna | d20225f | 2017-09-06 11:36:04 +0530 | [diff] [blame] | 9 | |
| 10 | phosphor_user_manager_LDFLAGS = $(SDBUSPLUS_LIBS) \ |
Vishwanatha Subbanna | bdb298f | 2017-09-06 11:39:22 +0530 | [diff] [blame] | 11 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Vishwanatha Subbanna | 070a3e4 | 2017-09-06 11:40:45 +0530 | [diff] [blame] | 12 | $(PHOSPHOR_LOGGING_LIBS) \ |
Richard Marian Thomaiyar | 9f630d9 | 2018-05-24 10:49:10 +0530 | [diff] [blame] | 13 | $(BOOST_CPPFLAGS) \ |
Vishwanatha Subbanna | bdb298f | 2017-09-06 11:39:22 +0530 | [diff] [blame] | 14 | -lcrypt \ |
| 15 | -lstdc++fs |
Vishwanatha Subbanna | d20225f | 2017-09-06 11:36:04 +0530 | [diff] [blame] | 16 | |
| 17 | phosphor_user_manager_CXXFLAGS = $(SYSTEMD_CFLAGS) \ |
Vishwanatha Subbanna | 070a3e4 | 2017-09-06 11:40:45 +0530 | [diff] [blame] | 18 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Richard Marian Thomaiyar | 9f630d9 | 2018-05-24 10:49:10 +0530 | [diff] [blame] | 19 | $(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. Kachalov | b36b11c | 2021-03-19 10:38:57 +0100 | [diff] [blame] | 25 | certmgrenvdir=$(datadir)/phosphor-certificate-manager |
| 26 | dbuspolicy_DATA = phosphor-nslcd-cert-config.conf |
| 27 | certmgrenv_DATA = nslcd |
| 28 | SYSTEM_UNIT_ALIASES = \ |
| 29 | ../phosphor-certificate-manager@.service multi-user.target.wants/phosphor-certificate-manager@nslcd.service |
| 30 | |
Alexander Filippov | 7ba91cb | 2022-01-12 21:58:02 +0300 | [diff] [blame] | 31 | SUBDIRS = . phosphor-ldap-config test |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 32 | |
Anton D. Kachalov | b36b11c | 2021-03-19 10:38:57 +0100 | [diff] [blame] | 33 | install-aliases-hook: |
| 34 | set -- $(SYSTEM_UNIT_ALIASES) && \ |
| 35 | dir=$(systemdsystemunitdir) && $(install-aliases) |
| 36 | |
| 37 | define 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 |
| 44 | endef |
| 45 | |
| 46 | INSTALL_DATA_HOOKS = \ |
| 47 | install-aliases-hook |
| 48 | |
| 49 | install-data-hook: $(INSTALL_DATA_HOOKS) |