Florin Coras | 891f0a1 | 2017-12-11 11:49:26 -0800 | [diff] [blame] | 1 | # 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 | |
| 14 | AUTOMAKE_OPTIONS = foreign subdir-objects |
| 15 | |
| 16 | ACLOCAL_AMFLAGS = -I m4 |
| 17 | |
| 18 | AM_CFLAGS = -Wall |
| 19 | |
| 20 | SRCS_C := $(shell find . -name "*.c" ) |
| 21 | SRCS_H := $(shell find . -name "*.h" ) |
| 22 | |
| 23 | .PHONY: fixstyle |
| 24 | fixstyle: |
| 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 | # |
| 32 | socket_echo_client_SOURCES = src/socket_echo_client.c |
| 33 | socket_echo_client_LDADD = -lvppinfra |
| 34 | socket_echo_client_CFLAGS = $(AM_CPPFLAGS) -Isrc |
| 35 | |
| 36 | socket_echo_server_SOURCES = src/socket_echo_server.c |
| 37 | socket_echo_server_LDADD = -lvppinfra |
| 38 | socket_echo_server_CFLAGS = $(AM_CPPFLAGS) -Isrc |
| 39 | |
| 40 | noinst_PROGRAMS = socket_echo_client socket_echo_server |
| 41 | |