blob: 747c4c847c9c4198023e0c79619c5e367290dfc2 [file] [log] [blame]
Vernon Mauery1e3455a2018-11-30 13:10:54 -08001COMMON_CXX = \
2 -flto \
3 -Wno-psabi \
4 $(SYSTEMD_CFLAGS) \
5 $(libmapper_CFLAGS) \
6 $(SDBUSPLUS_CFLAGS) \
7 $(PHOSPHOR_LOGGING_CFLAGS) \
8 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
9 -DBOOST_ERROR_CODE_HEADER_ONLY \
10 -DBOOST_SYSTEM_NO_DEPRECATED \
Vernon Mauerye7329c72018-10-08 12:05:16 -070011 -DBOOST_COROUTINES_NO_DEPRECATION_WARNING \
12 -DBOOST_ASIO_DISABLE_THREADS \
Vernon Mauery1e3455a2018-11-30 13:10:54 -080013 -DBOOST_ALL_NO_LIB
14
ofery61d8dcc2019-06-10 16:02:37 -070015
16lib_LTLIBRARIES =
17
18if FEATURE_LIBUSERLAYER
19
20lib_LTLIBRARIES += libuserlayer.la
William A. Kennington III785fb072018-12-10 15:27:20 -080021libuserlayer_la_SOURCES = \
22 user_layer.cpp \
23 user_mgmt.cpp \
Vernon Mauery1bb0c7f2018-12-21 10:59:19 -080024 passwd_mgr.cpp
William A. Kennington III785fb072018-12-10 15:27:20 -080025libuserlayer_la_LDFLAGS = \
26 $(SYSTEMD_LIBS) \
27 $(libmapper_LIBS) \
28 $(PHOSPHOR_LOGGING_LIBS) \
29 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
30 -lstdc++fs \
31 $(CRYPTO_LIBS) \
Suryakanth Sekar90b00c72019-01-16 10:37:57 +053032 -lpam_misc \
William A. Kennington III785fb072018-12-10 15:27:20 -080033 -version-info 0:0:0 -shared
34libuserlayer_la_CXXFLAGS = \
Vernon Mauery9d7251c2018-12-13 10:25:30 -080035 -I$(top_srcdir) \
Vernon Mauery1e3455a2018-11-30 13:10:54 -080036 $(COMMON_CXX)
ofery61d8dcc2019-06-10 16:02:37 -070037endif
Vernon Mauery997a7a02019-02-01 13:34:13 -080038
ofery61d8dcc2019-06-10 16:02:37 -070039lib_LTLIBRARIES += libchannellayer.la
Vernon Mauery1bb0c7f2018-12-21 10:59:19 -080040libchannellayer_la_SOURCES = \
41 channel_mgmt.cpp \
42 channel_layer.cpp
Vernon Mauery997a7a02019-02-01 13:34:13 -080043libchannellayer_la_LDFLAGS = \
44 $(SYSTEMD_LIBS) \
45 $(libmapper_LIBS) \
46 $(PHOSPHOR_LOGGING_LIBS) \
47 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
48 -lstdc++fs \
49 -version-info 0:0:0 -shared
50libchannellayer_la_CXXFLAGS = \
51 -I$(top_srcdir) \
52 $(COMMON_CXX)