blob: f3d0d324b9c661c4396f02dabe7a445fc4aca652 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
CC ?= gcc
TARGET := decompress
SRC := decompress.c
PKGS := doca-compress doca-common
CFLAGS ?= -O2 -g -Wall -Wextra -Wno-deprecated-declarations -DALLOW_EXPERIMENTAL_API
CFLAGS += $(shell pkg-config --cflags $(PKGS) 2>/dev/null)
LDLIBS += $(shell pkg-config --libs $(PKGS) 2>/dev/null)
ifeq ($(strip $(LDLIBS)),)
CFLAGS += -I/opt/mellanox/doca/include -I/usr/include/libnl3
LDLIBS += -L/opt/mellanox/doca/lib/aarch64-linux-gnu \
-L/opt/mellanox/doca/lib64 \
-ldoca_compress -ldoca_common
endif
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) $< -o $@ $(LDLIBS)
clean:
rm -f $(TARGET) *.o decompressed.out
|