aboutsummaryrefslogtreecommitdiff
path: root/testing/Makefile
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2018-12-07 16:42:06 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2018-12-07 16:42:06 +0000
commit4445eeca7f024eb55a9d5eb5ee6a7183816f0c2e (patch)
tree58e83f896645256c3925ca42ab5e2393aa1c66e9 /testing/Makefile
parent8101850bc7cd2a05d35b4df3ecfd3f934cff584e (diff)
downloadsg3_utils-4445eeca7f024eb55a9d5eb5ee6a7183816f0c2e.tar.gz
add: SPDX-License-Identifier: BSD-2-Clause (or gpl-2-or-later); testing/sgs_dd.c work
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@797 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'testing/Makefile')
-rw-r--r--testing/Makefile11
1 files changed, 2 insertions, 9 deletions
diff --git a/testing/Makefile b/testing/Makefile
index 9878c04e..c4dfbc30 100644
--- a/testing/Makefile
+++ b/testing/Makefile
@@ -4,15 +4,6 @@ PREFIX=/usr/local
INSTDIR=$(DESTDIR)/$(PREFIX)/bin
MANDIR=$(DESTDIR)/$(PREFIX)/man
-# In Linux the default C compiler is GCC while in FreeBSD (since release 10 ?)
-# the default C compiler is clang. Swap the comment marks (lines starting
-# with '#') on the next 4 (non-blank) lines.
-CC = gcc
-# CC = clang
-
-LD = gcc
-# LD = clang
-
EXECS = sg_iovec_tst sg_sense_test sg_queue_tst bsg_queue_tst sg_chk_asc \
sg_tst_nvme sg_tst_ioctl tst_sg_lib sgs_dd
@@ -32,6 +23,8 @@ LARGE_FILE_FLAGS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
## CC = clang
## CC = clang++
+LD = $(CC)
+
CPPFLAGS = -iquote ../include -iquote .. -D_REENTRANT $(LARGE_FILE_FLAGS) -DHAVE_CONFIG_H -DHAVE_NVME
# CPPFLAGS = -iquote ../include -iquote .. -D_REENTRANT $(LARGE_FILE_FLAGS) -DHAVE_CONFIG_H -DHAVE_NVME -DDEBUG
CFLAGS = -g -O2 -W -Wall