Damjan Marion | 289c7f5 | 2021-04-02 23:04:05 +0200 | [diff] [blame] | 1 | #/bin/env bash |
Andrew Yourtchenko | e574736 | 2024-03-13 12:16:11 +0100 | [diff] [blame] | 2 | set -eu |
Damjan Marion | 289c7f5 | 2021-04-02 23:04:05 +0200 | [diff] [blame] | 3 | |
4 | src=$(realpath $(dirname $0)/../..)/src | ||||
Damjan Marion | 289c7f5 | 2021-04-02 23:04:05 +0200 | [diff] [blame] | 5 | |
6 | ${CC:-cc} \ | ||||
Andrew Yourtchenko | 31f1924 | 2021-11-15 00:40:18 +0100 | [diff] [blame] | 7 | -Wall \ |
8 | -Werror \ | ||||
Damjan Marion | 289c7f5 | 2021-04-02 23:04:05 +0200 | [diff] [blame] | 9 | -O2 \ |
10 | -flto \ | ||||
11 | -static \ | ||||
Andrew Yourtchenko | e574736 | 2024-03-13 12:16:11 +0100 | [diff] [blame] | 12 | -D STATIC_VPPCTL \ |
Damjan Marion | 289c7f5 | 2021-04-02 23:04:05 +0200 | [diff] [blame] | 13 | -I ${src} \ |
Andrew Yourtchenko | 31f1924 | 2021-11-15 00:40:18 +0100 | [diff] [blame] | 14 | -g \ |
Damjan Marion | 289c7f5 | 2021-04-02 23:04:05 +0200 | [diff] [blame] | 15 | ${src}/vpp/app/vppctl.c \ |
16 | -o vppctl | ||||
Andrew Yourtchenko | 31f1924 | 2021-11-15 00:40:18 +0100 | [diff] [blame] | 17 |