Makefile.am 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. ##
  2. ## This file is part of the libsigrok project.
  3. ##
  4. ## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
  5. ## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
  6. ##
  7. ## This program is free software: you can redistribute it and/or modify
  8. ## it under the terms of the GNU General Public License as published by
  9. ## the Free Software Foundation, either version 3 of the License, or
  10. ## (at your option) any later version.
  11. ##
  12. ## This program is distributed in the hope that it will be useful,
  13. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ## GNU General Public License for more details.
  16. ##
  17. ## You should have received a copy of the GNU General Public License
  18. ## along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. ##
  20. ACLOCAL_AMFLAGS = -I autostuff
  21. AM_CPPFLAGS = -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"'
  22. lib_LTLIBRARIES = libsigrok.la
  23. # Backend files
  24. libsigrok_la_SOURCES = \
  25. backend.c \
  26. device.c \
  27. session.c \
  28. session_file.c \
  29. session_driver.c \
  30. hwdriver.c \
  31. strutil.c \
  32. log.c \
  33. version.c \
  34. error.c \
  35. std.c
  36. # Input formats
  37. libsigrok_la_SOURCES += \
  38. input/binary.c \
  39. input/chronovu_la8.c \
  40. input/csv.c \
  41. input/input.c \
  42. input/vcd.c \
  43. input/wav.c
  44. # Output formats
  45. libsigrok_la_SOURCES += \
  46. output/output.c \
  47. output/analog.c \
  48. output/ascii.c \
  49. output/bits.c \
  50. output/binary.c \
  51. output/csv.c \
  52. output/chronovu_la8.c \
  53. output/gnuplot.c \
  54. output/hex.c \
  55. output/ols.c \
  56. output/vcd.c
  57. # Hardware (common files)
  58. libsigrok_la_SOURCES += \
  59. hardware/common/scpi.c \
  60. hardware/common/scpi_tcp.c
  61. if NEED_RPC
  62. libsigrok_la_SOURCES += \
  63. hardware/common/scpi_vxi.c \
  64. hardware/common/vxi_clnt.c \
  65. hardware/common/vxi_xdr.c \
  66. hardware/common/vxi.h
  67. endif
  68. if NEED_SERIAL
  69. libsigrok_la_SOURCES += \
  70. hardware/common/serial.c \
  71. hardware/common/scpi_serial.c
  72. endif
  73. if NEED_USB
  74. libsigrok_la_SOURCES += \
  75. hardware/common/ezusb.c \
  76. hardware/common/usb.c \
  77. hardware/common/scpi_usbtmc_libusb.c
  78. endif
  79. if NEED_VISA
  80. libsigrok_la_SOURCES += \
  81. hardware/common/scpi_visa.c
  82. endif
  83. # Hardware (DMM parsers)
  84. libsigrok_la_SOURCES += \
  85. hardware/common/dmm/es519xx.c \
  86. hardware/common/dmm/fs9721.c \
  87. hardware/common/dmm/fs9922.c \
  88. hardware/common/dmm/m2110.c \
  89. hardware/common/dmm/metex14.c \
  90. hardware/common/dmm/rs9lcd.c
  91. # Hardware drivers
  92. if HW_AGILENT_DMM
  93. libsigrok_la_SOURCES += \
  94. hardware/agilent-dmm/api.c \
  95. hardware/agilent-dmm/agilent-dmm.h \
  96. hardware/agilent-dmm/sched.c
  97. endif
  98. if HW_APPA_55II
  99. libsigrok_la_SOURCES += \
  100. hardware/appa-55ii/protocol.h \
  101. hardware/appa-55ii/protocol.c \
  102. hardware/appa-55ii/api.c
  103. endif
  104. if HW_ASIX_SIGMA
  105. libsigrok_la_SOURCES += \
  106. hardware/asix-sigma/asix-sigma.h \
  107. hardware/asix-sigma/asix-sigma.c
  108. endif
  109. if HW_ATTEN_PPS3XXX
  110. libsigrok_la_SOURCES += \
  111. hardware/atten-pps3xxx/protocol.h \
  112. hardware/atten-pps3xxx/protocol.c \
  113. hardware/atten-pps3xxx/api.c
  114. endif
  115. if HW_BRYMEN_BM86X
  116. libsigrok_la_SOURCES += \
  117. hardware/brymen-bm86x/protocol.h \
  118. hardware/brymen-bm86x/protocol.c \
  119. hardware/brymen-bm86x/api.c
  120. endif
  121. if HW_BRYMEN_DMM
  122. libsigrok_la_SOURCES += \
  123. hardware/brymen-dmm/parser.c \
  124. hardware/brymen-dmm/protocol.h \
  125. hardware/brymen-dmm/protocol.c \
  126. hardware/brymen-dmm/api.c
  127. endif
  128. if HW_CEM_DT_885X
  129. libsigrok_la_SOURCES += \
  130. hardware/cem-dt-885x/protocol.h \
  131. hardware/cem-dt-885x/protocol.c \
  132. hardware/cem-dt-885x/api.c
  133. endif
  134. if HW_CENTER_3XX
  135. libsigrok_la_SOURCES += \
  136. hardware/center-3xx/protocol.h \
  137. hardware/center-3xx/protocol.c \
  138. hardware/center-3xx/api.c
  139. endif
  140. if HW_CHRONOVU_LA
  141. libsigrok_la_SOURCES += \
  142. hardware/chronovu-la/protocol.h \
  143. hardware/chronovu-la/protocol.c \
  144. hardware/chronovu-la/api.c
  145. endif
  146. if HW_COLEAD_SLM
  147. libsigrok_la_SOURCES += \
  148. hardware/colead-slm/protocol.h \
  149. hardware/colead-slm/protocol.c \
  150. hardware/colead-slm/api.c
  151. endif
  152. if HW_CONRAD_DIGI_35_CPU
  153. libsigrok_la_SOURCES += \
  154. hardware/conrad-digi-35-cpu/protocol.h \
  155. hardware/conrad-digi-35-cpu/protocol.c \
  156. hardware/conrad-digi-35-cpu/api.c
  157. endif
  158. if HW_DEMO
  159. libsigrok_la_SOURCES += \
  160. hardware/demo/demo.c
  161. endif
  162. if HW_FLUKE_DMM
  163. libsigrok_la_SOURCES += \
  164. hardware/fluke-dmm/fluke-dmm.h \
  165. hardware/fluke-dmm/fluke.c \
  166. hardware/fluke-dmm/api.c
  167. endif
  168. if HW_FX2LAFW
  169. libsigrok_la_SOURCES += \
  170. hardware/fx2lafw/protocol.h \
  171. hardware/fx2lafw/protocol.c \
  172. hardware/fx2lafw/api.c
  173. endif
  174. if HW_GMC_MH_1X_2X
  175. libsigrok_la_SOURCES += \
  176. hardware/gmc-mh-1x-2x/protocol.h \
  177. hardware/gmc-mh-1x-2x/protocol.c \
  178. hardware/gmc-mh-1x-2x/api.c
  179. endif
  180. if HW_HAMEG_HMO
  181. libsigrok_la_SOURCES += \
  182. hardware/hameg-hmo/protocol.h \
  183. hardware/hameg-hmo/protocol.c \
  184. hardware/hameg-hmo/api.c
  185. endif
  186. if HW_HANTEK_DSO
  187. libsigrok_la_SOURCES += \
  188. hardware/hantek-dso/dso.h \
  189. hardware/hantek-dso/dso.c \
  190. hardware/hantek-dso/api.c
  191. endif
  192. if HW_IKALOGIC_SCANALOGIC2
  193. libsigrok_la_SOURCES += \
  194. hardware/ikalogic-scanalogic2/protocol.h \
  195. hardware/ikalogic-scanalogic2/protocol.c \
  196. hardware/ikalogic-scanalogic2/api.c
  197. endif
  198. if HW_IKALOGIC_SCANAPLUS
  199. libsigrok_la_SOURCES += \
  200. hardware/ikalogic-scanaplus/protocol.h \
  201. hardware/ikalogic-scanaplus/protocol.c \
  202. hardware/ikalogic-scanaplus/api.c
  203. endif
  204. if HW_KECHENG_KC_330B
  205. libsigrok_la_SOURCES += \
  206. hardware/kecheng-kc-330b/protocol.h \
  207. hardware/kecheng-kc-330b/protocol.c \
  208. hardware/kecheng-kc-330b/api.c
  209. endif
  210. if HW_LASCAR_EL_USB
  211. libsigrok_la_SOURCES += \
  212. hardware/lascar-el-usb/protocol.h \
  213. hardware/lascar-el-usb/protocol.c \
  214. hardware/lascar-el-usb/api.c
  215. endif
  216. if HW_MIC_985XX
  217. libsigrok_la_SOURCES += \
  218. hardware/mic-985xx/protocol.h \
  219. hardware/mic-985xx/protocol.c \
  220. hardware/mic-985xx/api.c
  221. endif
  222. if HW_NORMA_DMM
  223. libsigrok_la_SOURCES += \
  224. hardware/norma-dmm/protocol.h \
  225. hardware/norma-dmm/protocol.c \
  226. hardware/norma-dmm/api.c
  227. endif
  228. if HW_OLS
  229. libsigrok_la_SOURCES += \
  230. hardware/openbench-logic-sniffer/protocol.h \
  231. hardware/openbench-logic-sniffer/protocol.c \
  232. hardware/openbench-logic-sniffer/api.c
  233. endif
  234. if HW_RIGOL_DS
  235. libsigrok_la_SOURCES += \
  236. hardware/rigol-ds/protocol.h \
  237. hardware/rigol-ds/protocol.c \
  238. hardware/rigol-ds/api.c
  239. endif
  240. if HW_SALEAE_LOGIC16
  241. libsigrok_la_SOURCES += \
  242. hardware/saleae-logic16/protocol.h \
  243. hardware/saleae-logic16/protocol.c \
  244. hardware/saleae-logic16/api.c
  245. endif
  246. if HW_SERIAL_DMM
  247. libsigrok_la_SOURCES += \
  248. hardware/serial-dmm/protocol.h \
  249. hardware/serial-dmm/protocol.c \
  250. hardware/serial-dmm/api.c
  251. endif
  252. if HW_SYSCLK_LWLA
  253. libsigrok_la_SOURCES += \
  254. hardware/sysclk-lwla/lwla.h \
  255. hardware/sysclk-lwla/lwla.c \
  256. hardware/sysclk-lwla/protocol.h \
  257. hardware/sysclk-lwla/protocol.c \
  258. hardware/sysclk-lwla/api.c
  259. endif
  260. if HW_TELEINFO
  261. libsigrok_la_SOURCES += \
  262. hardware/teleinfo/protocol.h \
  263. hardware/teleinfo/protocol.c \
  264. hardware/teleinfo/api.c
  265. endif
  266. if HW_TONDAJ_SL_814
  267. libsigrok_la_SOURCES += \
  268. hardware/tondaj-sl-814/protocol.h \
  269. hardware/tondaj-sl-814/protocol.c \
  270. hardware/tondaj-sl-814/api.c
  271. endif
  272. if HW_UNI_T_DMM
  273. libsigrok_la_SOURCES += \
  274. hardware/uni-t-dmm/protocol.h \
  275. hardware/uni-t-dmm/protocol.c \
  276. hardware/uni-t-dmm/api.c
  277. endif
  278. if HW_UNI_T_UT32X
  279. libsigrok_la_SOURCES += \
  280. hardware/uni-t-ut32x/protocol.h \
  281. hardware/uni-t-ut32x/protocol.c \
  282. hardware/uni-t-ut32x/api.c
  283. endif
  284. if HW_VICTOR_DMM
  285. libsigrok_la_SOURCES += \
  286. hardware/victor-dmm/protocol.h \
  287. hardware/victor-dmm/protocol.c \
  288. hardware/victor-dmm/api.c
  289. endif
  290. if HW_ZEROPLUS_LOGIC_CUBE
  291. libsigrok_la_SOURCES += \
  292. hardware/zeroplus-logic-cube/analyzer.c \
  293. hardware/zeroplus-logic-cube/analyzer.h \
  294. hardware/zeroplus-logic-cube/gl_usb.h \
  295. hardware/zeroplus-logic-cube/gl_usb.c \
  296. hardware/zeroplus-logic-cube/protocol.h \
  297. hardware/zeroplus-logic-cube/protocol.c \
  298. hardware/zeroplus-logic-cube/api.c
  299. endif
  300. libsigrok_la_LIBADD = $(LIBOBJS)
  301. libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS)
  302. library_includedir = $(includedir)/libsigrok
  303. library_include_HEADERS = libsigrok.h proto.h version.h
  304. noinst_HEADERS = libsigrok-internal.h
  305. pkgconfigdir = $(libdir)/pkgconfig
  306. pkgconfig_DATA = libsigrok.pc
  307. EXTRA_DIST = \
  308. Doxyfile \
  309. HACKING \
  310. README.devices \
  311. contrib/gnuplot_chronovu_la8.gpi \
  312. contrib/gnuplot_rigol_ds1xx2.gpi \
  313. contrib/gnuplot_usbeesx.gpi \
  314. contrib/gnuplot_usbeedx8.gpi \
  315. contrib/gnuplot_usbeedx16.gpi \
  316. contrib/sigrok-logo-notext.png \
  317. contrib/z60_libsigrok.rules
  318. if HAVE_CHECK
  319. TESTS = tests/check_main
  320. check_PROGRAMS = ${TESTS}
  321. tests_check_main_SOURCES = \
  322. libsigrok.h \
  323. tests/lib.c \
  324. tests/lib.h \
  325. tests/check_main.c \
  326. tests/check_core.c \
  327. tests/check_input_all.c \
  328. tests/check_input_binary.c \
  329. tests/check_output_all.c \
  330. tests/check_strutil.c \
  331. tests/check_version.c \
  332. tests/check_driver_all.c
  333. tests_check_main_CFLAGS = @check_CFLAGS@
  334. tests_check_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@
  335. endif
  336. MAINTAINERCLEANFILES = ChangeLog
  337. .PHONY: ChangeLog
  338. ChangeLog:
  339. git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog
  340. dist-hook: ChangeLog