Jeremy Kerr | e440a40 | 2016-03-17 16:34:14 +0800 | [diff] [blame] | 1 | sbin_PROGRAMS = obmc-console-server |
| 2 | bin_PROGRAMS = obmc-console-client |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 3 | |
Andrew Jeffery | 9836e2b | 2020-02-11 12:12:07 +1030 | [diff] [blame] | 4 | obmcconsoledir = $(sysconfdir)/obmc-console |
| 5 | obmcconsole_DATA = conf/server.ttyVUART0.conf |
| 6 | |
Andrew Jeffery | fdf1a71 | 2020-02-28 11:52:48 +1030 | [diff] [blame] | 7 | if WITH_UDEV |
| 8 | udevrulesddir = $(udevdir)/rules.d |
| 9 | udevrulesd_DATA = conf/80-obmc-console-uart.rules |
| 10 | endif |
| 11 | |
Andrew Jeffery | 9836e2b | 2020-02-11 12:12:07 +1030 | [diff] [blame] | 12 | if WITH_SYSTEMD |
| 13 | systemdsystemunit_DATA = conf/obmc-console@.service \ |
Jonathan Doman | cc07530 | 2023-03-31 10:20:48 -0700 | [diff] [blame] | 14 | conf/obmc-console@.socket \ |
Andrew Jeffery | 9836e2b | 2020-02-11 12:12:07 +1030 | [diff] [blame] | 15 | conf/obmc-console-ssh@.service |
| 16 | |
| 17 | if ENABLE_CONCURRENT_SERVERS |
| 18 | obmcconsole_DATA += conf/client.2200.conf |
| 19 | else |
| 20 | systemdsystemunit_DATA += conf/obmc-console-ssh.socket |
| 21 | sshservicedir = $(systemdsystemunitdir)/obmc-console-ssh@.service.d |
| 22 | sshservice_DATA = conf/obmc-console-ssh@.service.d/use-socket.conf |
| 23 | endif |
| 24 | endif |
Jeremy Kerr | d66195c | 2016-03-16 17:24:51 +0800 | [diff] [blame] | 25 | |
Jeremy Kerr | e440a40 | 2016-03-17 16:34:14 +0800 | [diff] [blame] | 26 | obmc_console_server_CPPFLAGS = \ |
| 27 | -DLOCALSTATEDIR=\"$(localstatedir)\" \ |
| 28 | -DSYSCONFDIR=\"$(sysconfdir)\" |
Jeremy Kerr | df94dc1 | 2016-03-16 12:19:49 +0800 | [diff] [blame] | 29 | |
Jeremy Kerr | e440a40 | 2016-03-17 16:34:14 +0800 | [diff] [blame] | 30 | obmc_console_server_SOURCES = \ |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 31 | console-server.c \ |
| 32 | console-server.h \ |
| 33 | util.c \ |
Jeremy Kerr | c9775ce | 2017-02-07 16:25:34 +0800 | [diff] [blame] | 34 | ringbuffer.c \ |
Jeremy Kerr | d66195c | 2016-03-16 17:24:51 +0800 | [diff] [blame] | 35 | config.c \ |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 36 | log-handler.c \ |
Jeremy Kerr | 0cff652 | 2016-03-18 09:57:01 +0800 | [diff] [blame] | 37 | socket-handler.c \ |
Jeremy Kerr | bc1e893 | 2016-04-28 12:27:30 +0800 | [diff] [blame] | 38 | tty-handler.c \ |
Jeremy Kerr | 0cff652 | 2016-03-18 09:57:01 +0800 | [diff] [blame] | 39 | console-socket.c |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 40 | |
Johnathan Mantey | 1cecc5d | 2019-02-28 15:01:46 -0800 | [diff] [blame] | 41 | obmc_console_server_LDFLAGS = $(SYSTEMD_LIBS) -lrt |
Cheng C Yang | f9c8f6c | 2019-03-04 18:39:52 +0800 | [diff] [blame] | 42 | obmc_console_server_CFLAGS = $(SYSTEMD_CFLAGS) |
| 43 | |
Andrew Jeffery | 71e7a24 | 2020-02-12 22:58:16 +1030 | [diff] [blame] | 44 | obmc_console_client_CPPFLAGS = \ |
| 45 | -DSYSCONFDIR=\"$(sysconfdir)\" |
| 46 | |
Jeremy Kerr | e440a40 | 2016-03-17 16:34:14 +0800 | [diff] [blame] | 47 | obmc_console_client_SOURCES = \ |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 48 | console-client.c \ |
| 49 | console-server.h \ |
Jeremy Kerr | 0cff652 | 2016-03-18 09:57:01 +0800 | [diff] [blame] | 50 | console-socket.c \ |
Andrew Jeffery | 71e7a24 | 2020-02-12 22:58:16 +1030 | [diff] [blame] | 51 | config.c \ |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 52 | util.c |
Jeremy Kerr | 6c8d781 | 2016-03-17 15:05:45 +0800 | [diff] [blame] | 53 | |
Jeremy Kerr | c9775ce | 2017-02-07 16:25:34 +0800 | [diff] [blame] | 54 | SUBDIRS = test |