Jeremy Kerr | 9326d77 | 2016-03-17 17:15:02 +0800 | [diff] [blame] | 1 | # 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 Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 15 | AUTOMAKE_OPTIONS = foreign |
| 16 | |
Jeremy Kerr | e440a40 | 2016-03-17 16:34:14 +0800 | [diff] [blame] | 17 | sbin_PROGRAMS = obmc-console-server |
| 18 | bin_PROGRAMS = obmc-console-client |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 19 | |
Jeremy Kerr | 6c8d781 | 2016-03-17 15:05:45 +0800 | [diff] [blame] | 20 | check_PROGRAMS = config-test |
| 21 | |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 22 | AM_CFLAGS = -Wall -Wextra -Werror |
| 23 | |
Jeremy Kerr | e440a40 | 2016-03-17 16:34:14 +0800 | [diff] [blame] | 24 | EXTRA_DIST = obmc-console.conf.sample |
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 | d66195c | 2016-03-16 17:24:51 +0800 | [diff] [blame] | 34 | config.c \ |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 35 | log-handler.c \ |
Jeremy Kerr | 0cff652 | 2016-03-18 09:57:01 +0800 | [diff] [blame^] | 36 | socket-handler.c \ |
| 37 | console-socket.c |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 38 | |
Jeremy Kerr | e440a40 | 2016-03-17 16:34:14 +0800 | [diff] [blame] | 39 | obmc_console_client_SOURCES = \ |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 40 | console-client.c \ |
| 41 | console-server.h \ |
Jeremy Kerr | 0cff652 | 2016-03-18 09:57:01 +0800 | [diff] [blame^] | 42 | console-socket.c \ |
Jeremy Kerr | a58cf44 | 2016-03-16 12:09:00 +0800 | [diff] [blame] | 43 | util.c |
Jeremy Kerr | 6c8d781 | 2016-03-17 15:05:45 +0800 | [diff] [blame] | 44 | |
| 45 | config_test_CPPFLAGS = -DCONFIG_TEST -DSYSCONFDIR=\"\" |
| 46 | config_test_SOURCES = \ |
| 47 | config.c |