forked from ublk-org/ublksrv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
59 lines (46 loc) · 1.77 KB
/
Makefile.am
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# SPDX-License-Identifier: MIT or GPL-2.0-only
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
COPYING.LGPL \
.gitignore \
LICENSE
SUBDIRS = include lib tests
AM_CXXFLAGS = -fcoroutines -std=c++20
sbin_PROGRAMS = ublk
noinst_PROGRAMS = demo_null demo_event
ublk_SOURCES = ublksrv_tgt.cpp tgt_null.cpp tgt_loop.cpp qcow2/tgt_qcow2.cpp \
qcow2/qcow2.cpp qcow2/qcow2_meta.cpp qcow2/utils.cpp
ublk_CFLAGS = $(WARNINGS_CFLAGS) $(LIBURING_CFLAGS) $(PTHREAD_CFLAGS)
ublk_CPPFLAGS = -I$(top_srcdir)/include
ublk_LDADD = lib/libublksrv.la $(LIBURING_LIBS) $(PTHREAD_LIBS)
demo_null_SOURCES = demo_null.c
demo_null_CFLAGS = $(WARNINGS_CFLAGS) $(LIBURING_CFLAGS) $(PTHREAD_CFLAGS)
demo_null_CPPFLAGS = -I$(top_srcdir)/include
demo_null_LDADD = lib/libublksrv.la $(LIBURING_LIBS) $(PTHREAD_LIBS)
demo_event_SOURCES = demo_event.c
demo_event_CFLAGS = $(WARNINGS_CFLAGS) $(LIBURING_CFLAGS) $(PTHREAD_CFLAGS)
demo_event_CPPFLAGS = -I$(top_srcdir)/include
demo_event_LDADD = lib/libublksrv.la $(LIBURING_LIBS) $(PTHREAD_LIBS)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ublksrv.pc
CLEANFILES = *~ test cscope.* include/*~ *.d qcow2/*~
R = 10
D = tests/tmp/
test: $(sbin_PROGRAMS) $(noinst_PROGRAMS)
make -C tests run T=${T} R=${R} D=${D}
cscope:
@cscope -b -R
# Check no files are missing from EXTRA_DIST rules, and that all
# generated files have been included in the tarball. (Note you must
# have done 'make dist')
maintainer-check-extra-dist:
@zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tarfiles
@git ls-files | \
sort > gitfiles
@comm -13 tarfiles gitfiles > comm-out
@echo Checking for differences between EXTRA_DIST and git ...
@cat comm-out
@[ ! -s comm-out ]
@rm tarfiles gitfiles comm-out
@echo PASS: EXTRA_DIST tests