-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 865 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 865 Bytes
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
26
27
28
29
30
31
# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT
all: libdto dto-test-wodto
DML_LIB_CXX=-D_GNU_SOURCE
libdto: dto.c
gcc -shared -fPIC -Wl,-soname,libdto.so dto.c $(DML_LIB_CXX) -DDTO_STATS_SUPPORT -o libdto.so.1.0 -laccel-config -ldl -lnuma -mwaitpkg
libdto_nostats: dto.c
gcc -shared -fPIC -Wl,-soname,libdto.so dto.c $(DML_LIB_CXX) -o libdto.so.1.0 -laccel-config -ldl -lnuma -mwaitpkg
install:
cp libdto.so.1.0 /usr/lib64/
ln -sf /usr/lib64/libdto.so.1.0 /usr/lib64/libdto.so.1
ln -sf /usr/lib64/libdto.so.1.0 /usr/lib64/libdto.so
install-local:
ln -sf ./libdto.so.1.0 ./libdto.so.1
ln -sf ./libdto.so.1.0 ./libdto.so
dto-test: dto-test.c
gcc -g dto-test.c $(DML_LIB_CXX) -o dto-test -ldto -lpthread
dto-test-wodto: dto-test.c
gcc -g dto-test.c $(DML_LIB_CXX) -o dto-test-wodto -lpthread
clean:
rm -rf *.o *.so dto-test