blob: f1a3a1895f989a6684f3bdca521617dbbb5e8a01 [file] [log] [blame]
Jeremy Kerre440a402016-03-17 16:34:14 +08001sbin_PROGRAMS = obmc-console-server
2bin_PROGRAMS = obmc-console-client
Jeremy Kerra58cf442016-03-16 12:09:00 +08003
Andrew Jeffery9836e2b2020-02-11 12:12:07 +10304obmcconsoledir = $(sysconfdir)/obmc-console
5obmcconsole_DATA = conf/server.ttyVUART0.conf
6
7if WITH_SYSTEMD
8systemdsystemunit_DATA = conf/obmc-console@.service \
9 conf/obmc-console-ssh@.service
10
11if ENABLE_CONCURRENT_SERVERS
12obmcconsole_DATA += conf/client.2200.conf
13else
14systemdsystemunit_DATA += conf/obmc-console-ssh.socket
15sshservicedir = $(systemdsystemunitdir)/obmc-console-ssh@.service.d
16sshservice_DATA = conf/obmc-console-ssh@.service.d/use-socket.conf
17endif
18endif
Jeremy Kerrd66195c2016-03-16 17:24:51 +080019
Jeremy Kerre440a402016-03-17 16:34:14 +080020obmc_console_server_CPPFLAGS = \
21 -DLOCALSTATEDIR=\"$(localstatedir)\" \
22 -DSYSCONFDIR=\"$(sysconfdir)\"
Jeremy Kerrdf94dc12016-03-16 12:19:49 +080023
Jeremy Kerre440a402016-03-17 16:34:14 +080024obmc_console_server_SOURCES = \
Jeremy Kerra58cf442016-03-16 12:09:00 +080025 console-server.c \
26 console-server.h \
27 util.c \
Jeremy Kerrc9775ce2017-02-07 16:25:34 +080028 ringbuffer.c \
Jeremy Kerrd66195c2016-03-16 17:24:51 +080029 config.c \
Jeremy Kerra58cf442016-03-16 12:09:00 +080030 log-handler.c \
Jeremy Kerr0cff6522016-03-18 09:57:01 +080031 socket-handler.c \
Jeremy Kerrbc1e8932016-04-28 12:27:30 +080032 tty-handler.c \
Jeremy Kerr0cff6522016-03-18 09:57:01 +080033 console-socket.c
Jeremy Kerra58cf442016-03-16 12:09:00 +080034
Johnathan Mantey1cecc5d2019-02-28 15:01:46 -080035obmc_console_server_LDFLAGS = $(SYSTEMD_LIBS) -lrt
Cheng C Yangf9c8f6c2019-03-04 18:39:52 +080036obmc_console_server_CFLAGS = $(SYSTEMD_CFLAGS)
37
Andrew Jeffery71e7a242020-02-12 22:58:16 +103038obmc_console_client_CPPFLAGS = \
39 -DSYSCONFDIR=\"$(sysconfdir)\"
40
Jeremy Kerre440a402016-03-17 16:34:14 +080041obmc_console_client_SOURCES = \
Jeremy Kerra58cf442016-03-16 12:09:00 +080042 console-client.c \
43 console-server.h \
Jeremy Kerr0cff6522016-03-18 09:57:01 +080044 console-socket.c \
Andrew Jeffery71e7a242020-02-12 22:58:16 +103045 config.c \
Jeremy Kerra58cf442016-03-16 12:09:00 +080046 util.c
Jeremy Kerr6c8d7812016-03-17 15:05:45 +080047
Jeremy Kerrc9775ce2017-02-07 16:25:34 +080048SUBDIRS = test