Damjan Marion | 289c7f5 | 2021-04-02 23:04:05 +0200 | [diff] [blame] | 1 | #/bin/env bash |
| 2 | |
| 3 | src=$(realpath $(dirname $0)/../..)/src |
| 4 | tmp=$(mktemp -d) |
| 5 | mkdir ${tmp}/vppinfra |
| 6 | touch ${tmp}/vppinfra/config.h |
| 7 | |
| 8 | ${CC:-cc} \ |
| 9 | -O2 \ |
| 10 | -flto \ |
| 11 | -static \ |
| 12 | -I ${src} \ |
| 13 | -I ${tmp} \ |
Damjan Marion | 289c7f5 | 2021-04-02 23:04:05 +0200 | [diff] [blame] | 14 | ${src}/vppinfra/backtrace.c \ |
| 15 | ${src}/vppinfra/dlmalloc.c \ |
| 16 | ${src}/vppinfra/elf.c \ |
| 17 | ${src}/vppinfra/elf_clib.c \ |
| 18 | ${src}/vppinfra/error.c \ |
| 19 | ${src}/vppinfra/format.c \ |
| 20 | ${src}/vppinfra/hash.c \ |
| 21 | ${src}/vppinfra/mem.c \ |
| 22 | ${src}/vppinfra/mem_dlmalloc.c \ |
| 23 | ${src}/vppinfra/std-formats.c \ |
| 24 | ${src}/vppinfra/string.c \ |
| 25 | ${src}/vppinfra/socket.c \ |
| 26 | ${src}/vppinfra/vec.c \ |
| 27 | ${src}/vppinfra/unformat.c \ |
| 28 | ${src}/vppinfra/unix-misc.c \ |
| 29 | ${src}/vppinfra/linux/mem.c \ |
| 30 | ${src}/vpp/app/vppctl.c \ |
| 31 | -o vppctl |
| 32 | |
| 33 | rm ${tmp}/vppinfra/config.h |
| 34 | rmdir ${tmp}/vppinfra ${tmp} |