blob: 2df24d812d81f5ccea6bbed328fc90fb61ecc7ac [file] [log] [blame]
Jeremy Kerr9326d772016-03-17 17:15:02 +08001# Copyright © 2016 IBM Corporation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Jeremy Kerra58cf442016-03-16 12:09:00 +080015AUTOMAKE_OPTIONS = foreign
16
Jeremy Kerre440a402016-03-17 16:34:14 +080017sbin_PROGRAMS = obmc-console-server
18bin_PROGRAMS = obmc-console-client
Jeremy Kerra58cf442016-03-16 12:09:00 +080019
Jeremy Kerr6c8d7812016-03-17 15:05:45 +080020check_PROGRAMS = config-test
21
Jeremy Kerra58cf442016-03-16 12:09:00 +080022AM_CFLAGS = -Wall -Wextra -Werror
23
Jeremy Kerre440a402016-03-17 16:34:14 +080024EXTRA_DIST = obmc-console.conf.sample
Jeremy Kerrd66195c2016-03-16 17:24:51 +080025
Jeremy Kerre440a402016-03-17 16:34:14 +080026obmc_console_server_CPPFLAGS = \
27 -DLOCALSTATEDIR=\"$(localstatedir)\" \
28 -DSYSCONFDIR=\"$(sysconfdir)\"
Jeremy Kerrdf94dc12016-03-16 12:19:49 +080029
Jeremy Kerre440a402016-03-17 16:34:14 +080030obmc_console_server_SOURCES = \
Jeremy Kerra58cf442016-03-16 12:09:00 +080031 console-server.c \
32 console-server.h \
33 util.c \
Jeremy Kerrd66195c2016-03-16 17:24:51 +080034 config.c \
Jeremy Kerra58cf442016-03-16 12:09:00 +080035 log-handler.c \
Jeremy Kerr0cff6522016-03-18 09:57:01 +080036 socket-handler.c \
Jeremy Kerrbc1e8932016-04-28 12:27:30 +080037 tty-handler.c \
Jeremy Kerr0cff6522016-03-18 09:57:01 +080038 console-socket.c
Jeremy Kerra58cf442016-03-16 12:09:00 +080039
Jeremy Kerre440a402016-03-17 16:34:14 +080040obmc_console_client_SOURCES = \
Jeremy Kerra58cf442016-03-16 12:09:00 +080041 console-client.c \
42 console-server.h \
Jeremy Kerr0cff6522016-03-18 09:57:01 +080043 console-socket.c \
Jeremy Kerra58cf442016-03-16 12:09:00 +080044 util.c
Jeremy Kerr6c8d7812016-03-17 15:05:45 +080045
46config_test_CPPFLAGS = -DCONFIG_TEST -DSYSCONFDIR=\"\"
47config_test_SOURCES = \
48 config.c