diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2021-06-11 03:57:05 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2021-06-11 03:57:05 +0000 |
commit | bee57c535c29a01cadfaa660d8c0182288960c33 (patch) | |
tree | 2a9355f53953526dc12f101d6bf6b26962f5dbbe /lib/Makefile.am | |
parent | 30363466e3580cae5f428c9bf35caa934cef469b (diff) | |
download | sg3_utils-bee57c535c29a01cadfaa660d8c0182288960c33.tar.gz |
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
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r-- | lib/Makefile.am | 16 |
1 files changed, 16 insertions, 0 deletions
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 |