• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2bin_PROGRAMS = \
3	sg_bg_ctl sg_compare_and_write sg_decode_sense sg_format \
4	sg_get_config sg_get_elem_status sg_get_lba_status sg_ident sg_inq \
5	sg_logs sg_luns sg_modes sg_opcodes sg_persist sg_prevent sg_raw \
6	sg_rdac sg_read_attr sg_read_block_limits sg_read_buffer \
7	sg_read_long sg_readcap sg_reassign sg_referrals sg_rem_rest_elem \
8	sg_rep_density sg_rep_pip sg_rep_zones sg_requests sg_reset_wp \
9	sg_rmsn sg_rtpg sg_safte sg_sanitize sg_sat_identify sg_sat_phy_event \
10	sg_sat_read_gplog sg_sat_set_features sg_seek sg_senddiag sg_ses \
11	sg_ses_microcode sg_start sg_stpg sg_stream_ctl sg_sync sg_timestamp \
12	sg_turs sg_unmap sg_verify sg_vpd sg_wr_mode sg_write_buffer \
13	sg_write_long sg_write_same sg_write_verify sg_write_x sg_zone \
14	sg_z_act_query
15sg_scan_SOURCES =
16
17
18if OS_LINUX
19if !PT_DUMMY
20bin_PROGRAMS += \
21	sg_copy_results sg_dd sg_emc_trespass sg_map sg_map26 sg_rbuf \
22	sg_read sg_reset sg_scan sg_test_rwbuf sg_xcopy sginfo sgm_dd sgp_dd
23sg_scan_SOURCES += sg_scan_linux.c
24endif
25endif
26
27
28if OS_WIN32_MINGW
29bin_PROGRAMS += sg_scan
30sg_scan_SOURCES += sg_scan_win32.c
31endif
32
33
34if OS_WIN32_CYGWIN
35bin_PROGRAMS += sg_scan
36sg_scan_SOURCES += sg_scan_win32.c
37endif
38
39# This is active if --enable-debug given to ./configure
40# removed -Wduplicated-branches because needs gcc-8
41if DEBUG
42DBG_CFLAGS = -Wextra -Wmisleading-indentation -Wduplicated-cond -Wlogical-op -Wnull-dereference -Wshadow -Wjump-misses-init
43DBG_CPPFLAGS = -DDEBUG
44else
45DBG_CFLAGS =
46DBG_CPPFLAGS =
47endif
48
49# For C++/clang testing
50## CC = gcc-9
51## CC = g++
52## CC = clang
53## CXX = clang++
54## CC = clang++
55## CC = powerpc64-linux-gnu-gcc
56
57# -std=<s> can be c99, c11, gnu11, etc. Default is gnu11
58# -Wall is no longer all warnings. Add -W (since renamed to -Wextra) for more
59AM_CPPFLAGS = -iquote ${top_srcdir}/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 $(DBG_CPPFLAGS)
60AM_CFLAGS = -Wall -W $(DBG_CFLAGS)
61# AM_CFLAGS = -Wall -W $(DBG_CFLAGS) -fanalyzer
62# AM_CFLAGS = -Wall -W -Wextra -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wnull-dereference -Wshadow -Wjump-misses-init
63# AM_CFLAGS = -Wall -W -pedantic -std=c11
64# AM_CFLAGS = -Wall -W -pedantic -std=c11 --analyze
65# AM_CFLAGS = -Wall -W -pedantic -std=c++98
66# AM_CFLAGS = -Wall -W -pedantic -std=c++11
67# AM_CFLAGS = -Wall -W -pedantic -std=c++14
68# AM_CFLAGS = -Wall -W -pedantic -std=c++1z
69# AM_CFLAGS = -Wall -W -pedantic -std=c++20
70# AM_CFLAGS = -Wall -W -pedantic -std=c++23
71
72sg_bg_ctl_LDADD = ../lib/libsgutils2.la
73
74sg_compare_and_write_LDADD = ../lib/libsgutils2.la
75
76sg_copy_results_LDADD = ../lib/libsgutils2.la
77
78sg_dd_LDADD = ../lib/libsgutils2.la
79
80sg_decode_sense_LDADD = ../lib/libsgutils2.la
81
82sg_emc_trespass_LDADD = ../lib/libsgutils2.la
83
84sg_format_LDADD = ../lib/libsgutils2.la
85
86sg_get_config_LDADD = ../lib/libsgutils2.la
87
88sg_get_elem_status_LDADD = ../lib/libsgutils2.la
89
90sg_get_lba_status_LDADD = ../lib/libsgutils2.la
91
92sg_ident_LDADD = ../lib/libsgutils2.la
93
94sginfo_LDADD = ../lib/libsgutils2.la
95
96sg_inq_SOURCES = sg_inq.c sg_inq_data.c sg_vpd_common.c
97sg_inq_LDADD = ../lib/libsgutils2.la
98
99sg_logs_LDADD = ../lib/libsgutils2.la
100
101sg_luns_LDADD = ../lib/libsgutils2.la
102
103sg_map_LDADD = ../lib/libsgutils2.la
104
105sgm_dd_LDADD = ../lib/libsgutils2.la
106
107sg_modes_LDADD = ../lib/libsgutils2.la
108
109sg_opcodes_LDADD = ../lib/libsgutils2.la
110
111sgp_dd_LDADD = ../lib/libsgutils2.la @PTHREAD_LIB@
112
113sg_persist_LDADD = ../lib/libsgutils2.la
114
115sg_prevent_LDADD = ../lib/libsgutils2.la
116
117sg_raw_LDADD = ../lib/libsgutils2.la
118
119sg_rbuf_LDADD = ../lib/libsgutils2.la
120
121sg_rdac_LDADD = ../lib/libsgutils2.la
122
123sg_read_LDADD = ../lib/libsgutils2.la
124
125sg_read_attr_LDADD = ../lib/libsgutils2.la
126
127sg_readcap_LDADD = ../lib/libsgutils2.la
128
129sg_read_block_limits_LDADD = ../lib/libsgutils2.la
130
131sg_read_buffer_LDADD = ../lib/libsgutils2.la
132
133sg_read_long_LDADD = ../lib/libsgutils2.la
134
135sg_reassign_LDADD = ../lib/libsgutils2.la
136
137sg_referrals_LDADD = ../lib/libsgutils2.la
138
139sg_rem_rest_elem_LDADD = ../lib/libsgutils2.la
140
141sg_rep_density_LDADD = ../lib/libsgutils2.la
142
143sg_rep_pip_LDADD = ../lib/libsgutils2.la
144
145sg_rep_zones_LDADD = ../lib/libsgutils2.la
146
147sg_requests_LDADD = ../lib/libsgutils2.la
148
149sg_reset_wp_LDADD = ../lib/libsgutils2.la
150
151sg_rmsn_LDADD = ../lib/libsgutils2.la
152
153sg_rtpg_LDADD = ../lib/libsgutils2.la
154
155sg_safte_LDADD = ../lib/libsgutils2.la
156
157sg_sanitize_LDADD = ../lib/libsgutils2.la
158
159sg_sat_identify_LDADD = ../lib/libsgutils2.la
160
161sg_sat_phy_event_LDADD = ../lib/libsgutils2.la
162
163sg_sat_read_gplog_LDADD = ../lib/libsgutils2.la
164
165sg_sat_set_features_LDADD = ../lib/libsgutils2.la
166
167# sg_scan_SOURCES list is already set above in the platform-specific sections
168sg_scan_LDADD = ../lib/libsgutils2.la
169
170sg_seek_LDADD = ../lib/libsgutils2.la @RT_LIB@
171
172sg_senddiag_LDADD = ../lib/libsgutils2.la
173
174sg_ses_LDADD = ../lib/libsgutils2.la
175
176sg_ses_microcode_LDADD = ../lib/libsgutils2.la
177
178sg_start_LDADD = ../lib/libsgutils2.la
179
180sg_stpg_LDADD = ../lib/libsgutils2.la
181
182sg_stream_ctl_LDADD = ../lib/libsgutils2.la
183
184sg_sync_LDADD = ../lib/libsgutils2.la
185
186sg_test_rwbuf_LDADD = ../lib/libsgutils2.la
187
188sg_timestamp_LDADD = ../lib/libsgutils2.la
189
190sg_turs_LDADD = ../lib/libsgutils2.la @RT_LIB@
191
192sg_unmap_LDADD = ../lib/libsgutils2.la
193
194sg_verify_LDADD = ../lib/libsgutils2.la
195
196sg_vpd_SOURCES = sg_vpd.c sg_vpd_vendor.c sg_vpd_common.c
197sg_vpd_LDADD = ../lib/libsgutils2.la
198
199sg_wr_mode_LDADD = ../lib/libsgutils2.la
200
201sg_write_buffer_LDADD = ../lib/libsgutils2.la
202
203sg_write_long_LDADD = ../lib/libsgutils2.la
204
205sg_write_same_LDADD = ../lib/libsgutils2.la
206
207sg_write_verify_LDADD = ../lib/libsgutils2.la
208
209sg_write_x_LDADD = ../lib/libsgutils2.la
210
211sg_xcopy_LDADD = ../lib/libsgutils2.la
212
213sg_zone_LDADD = ../lib/libsgutils2.la
214
215sg_z_act_query_LDADD = ../lib/libsgutils2.la
216
217EXTRA_DIST = \
218	sg_vpd_common.h \
219	BSD_LICENSE
220