blob: 5bff246964730cfe2eab3cba47fa7eeb52ef8c43 [file] [log] [blame]
Florin Coras891f0a12017-12-11 11:49:26 -08001# Copyright (c) 2017 Cisco and/or its affiliates.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at:
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14AUTOMAKE_OPTIONS = foreign subdir-objects
15
16ACLOCAL_AMFLAGS = -I m4
17
18AM_CFLAGS = -Wall
19
20SRCS_C := $(shell find . -name "*.c" )
21SRCS_H := $(shell find . -name "*.h" )
22
23.PHONY: fixstyle
24fixstyle:
25 @echo Fixing code style...
26 indent $(SRCS_C) $(SRCS_H)
27 @echo Code style fixed!
28
29#
30# Socket client and server apps
31#
32socket_echo_client_SOURCES = src/socket_echo_client.c
33socket_echo_client_LDADD = -lvppinfra
34socket_echo_client_CFLAGS = $(AM_CPPFLAGS) -Isrc
35
36socket_echo_server_SOURCES = src/socket_echo_server.c
37socket_echo_server_LDADD = -lvppinfra
38socket_echo_server_CFLAGS = $(AM_CPPFLAGS) -Isrc
39
40noinst_PROGRAMS = socket_echo_client socket_echo_server
41