blob: 1c09055492c5b7cb51e6f523cfb0fe341615d061 [file] [log] [blame]
Damjan Marion289c7f52021-04-02 23:04:05 +02001#/bin/env bash
2
3src=$(realpath $(dirname $0)/../..)/src
4tmp=$(mktemp -d)
5mkdir ${tmp}/vppinfra
6touch ${tmp}/vppinfra/config.h
7
8${CC:-cc} \
9 -O2 \
10 -flto \
11 -static \
12 -I ${src} \
13 -I ${tmp} \
Damjan Marion289c7f52021-04-02 23:04:05 +020014 ${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
33rm ${tmp}/vppinfra/config.h
34rmdir ${tmp}/vppinfra ${tmp}