From bee57c535c29a01cadfaa660d8c0182288960c33 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Fri, 11 Jun 2021 03:57:05 +0000 Subject: sg_read_buffer: fix --length= problem; pt: new configure option --enable-pt_dummy builds the library with sg_pt_dummy.c instead of OS specific code git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@904 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- lib/Makefile.am | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/Makefile.am') diff --git a/lib/Makefile.am b/lib/Makefile.am index 9f39d4a5..f04c7778 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -8,11 +8,15 @@ libsgutils2_la_SOURCES = \ sg_pt_common.c if OS_LINUX +if PT_DUMMY +libsgutils2_la_SOURCES += sg_pt_dummy.c +else libsgutils2_la_SOURCES += \ sg_pt_linux.c \ sg_io_linux.c \ sg_pt_linux_nvme.c endif +endif if OS_WIN32_MINGW libsgutils2_la_SOURCES += sg_pt_win32.c @@ -23,8 +27,12 @@ libsgutils2_la_SOURCES += sg_pt_win32.c endif if OS_FREEBSD +if PT_DUMMY +libsgutils2_la_SOURCES += sg_pt_dummy.c +else libsgutils2_la_SOURCES += sg_pt_freebsd.c endif +endif if OS_SOLARIS libsgutils2_la_SOURCES += sg_pt_solaris.c @@ -34,6 +42,14 @@ if OS_OSF libsgutils2_la_SOURCES += sg_pt_osf1.c endif +if OS_NETBSD +libsgutils2_la_SOURCES += sg_pt_dummy.c +endif + +if OS_OPENBSD +libsgutils2_la_SOURCES += sg_pt_dummy.c +endif + if DEBUG # This is active if --enable-debug given to ./configure # removed -Wduplicated-branches because needs gcc-8 -- cgit v1.2.3