makefile 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  1. ## Copyright (C) 2017 Jeremiah Orians
  2. ## Copyright (C) 2020 deesix <deesix@tuta.io>
  3. ## This file is part of M2-Planet.
  4. ##
  5. ## M2-Planet is free software: you can redistribute it and/or modify
  6. ## it under the terms of the GNU General Public License as published by
  7. ## the Free Software Foundation, either version 3 of the License, or
  8. ## (at your option) any later version.
  9. ##
  10. ## M2-Planet is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ## GNU General Public License for more details.
  14. ##
  15. ## You should have received a copy of the GNU General Public License
  16. ## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
  17. # Prevent rebuilding
  18. VPATH = bin:test:test/results
  19. PACKAGE = m2-planet
  20. # C compiler settings
  21. CC?=gcc
  22. CFLAGS:=$(CFLAGS) -D_GNU_SOURCE -O0 -std=c99 -ggdb
  23. all: M2-Planet
  24. M2-Planet: bin results cc.h cc_reader.c cc_strings.c cc_types.c cc_core.c cc.c cc_globals.c cc_globals.h
  25. $(CC) $(CFLAGS) \
  26. functions/match.c \
  27. functions/in_set.c \
  28. functions/numerate_number.c \
  29. functions/file_print.c \
  30. functions/number_pack.c \
  31. functions/string.c \
  32. functions/require.c \
  33. functions/fixup.c \
  34. cc_reader.c \
  35. cc_strings.c \
  36. cc_types.c \
  37. cc_core.c \
  38. cc.c \
  39. cc.h \
  40. cc_globals.c \
  41. gcc_req.h \
  42. -o bin/M2-Planet
  43. M2-minimal: bin results cc.h cc_reader.c cc_strings.c cc_types.c cc_core.c cc-minimal.c
  44. $(CC) $(CFLAGS) \
  45. functions/match.c \
  46. functions/in_set.c \
  47. functions/numerate_number.c \
  48. functions/file_print.c \
  49. functions/number_pack.c \
  50. functions/string.c \
  51. functions/require.c \
  52. functions/fixup.c \
  53. cc_reader.c \
  54. cc_strings.c \
  55. cc_types.c \
  56. cc_core.c \
  57. cc-minimal.c \
  58. cc.h \
  59. cc_globals.c \
  60. gcc_req.h \
  61. -o bin/M2-minimal
  62. # Clean up after ourselves
  63. .PHONY: clean
  64. clean:
  65. rm -rf bin/ test/results/
  66. ./test/test0000/cleanup.sh
  67. ./test/test0001/cleanup.sh
  68. ./test/test0002/cleanup.sh
  69. ./test/test0003/cleanup.sh
  70. ./test/test0004/cleanup.sh
  71. ./test/test0005/cleanup.sh
  72. ./test/test0006/cleanup.sh
  73. ./test/test0007/cleanup.sh
  74. ./test/test0008/cleanup.sh
  75. ./test/test0009/cleanup.sh
  76. ./test/test0010/cleanup.sh
  77. ./test/test0011/cleanup.sh
  78. ./test/test0012/cleanup.sh
  79. ./test/test0013/cleanup.sh
  80. ./test/test0014/cleanup.sh
  81. ./test/test0015/cleanup.sh
  82. ./test/test0016/cleanup.sh
  83. ./test/test0017/cleanup.sh
  84. ./test/test0018/cleanup.sh
  85. ./test/test0019/cleanup.sh
  86. ./test/test0020/cleanup.sh
  87. ./test/test0021/cleanup.sh
  88. ./test/test0022/cleanup.sh
  89. ./test/test0023/cleanup.sh
  90. ./test/test0100/cleanup.sh
  91. ./test/test0101/cleanup.sh
  92. ./test/test0102/cleanup.sh
  93. ./test/test0103/cleanup.sh
  94. ./test/test0104/cleanup.sh
  95. ./test/test0105/cleanup.sh
  96. ./test/test0106/cleanup.sh
  97. ./test/test1000/cleanup.sh
  98. # Directories
  99. bin:
  100. mkdir -p bin
  101. results:
  102. mkdir -p test/results
  103. # tests
  104. test: aarch64-tests amd64-tests knight-posix-tests knight-native-tests armv7l-tests x86-tests | results
  105. sha256sum -c test/test.answers
  106. aarch64-tests: \
  107. test0000-aarch64-binary \
  108. test0001-aarch64-binary \
  109. test0002-aarch64-binary \
  110. test0003-aarch64-binary \
  111. test0004-aarch64-binary \
  112. test0005-aarch64-binary \
  113. test0006-aarch64-binary \
  114. test0007-aarch64-binary \
  115. test0008-aarch64-binary \
  116. test0009-aarch64-binary \
  117. test0010-aarch64-binary \
  118. test0011-aarch64-binary \
  119. test0012-aarch64-binary \
  120. test0013-aarch64-binary \
  121. test0014-aarch64-binary \
  122. test0015-aarch64-binary \
  123. test0016-aarch64-binary \
  124. test0017-aarch64-binary \
  125. test0018-aarch64-binary \
  126. test0019-aarch64-binary \
  127. test0020-aarch64-binary \
  128. test0021-aarch64-binary \
  129. test0022-aarch64-binary \
  130. test0023-aarch64-binary \
  131. test0100-aarch64-binary \
  132. test0101-aarch64-binary \
  133. test0102-aarch64-binary \
  134. test0103-aarch64-binary \
  135. test0104-aarch64-binary \
  136. test0105-aarch64-binary \
  137. test0106-aarch64-binary \
  138. test1000-aarch64-binary | results
  139. amd64-tests: \
  140. test0000-amd64-binary \
  141. test0001-amd64-binary \
  142. test0002-amd64-binary \
  143. test0003-amd64-binary \
  144. test0004-amd64-binary \
  145. test0005-amd64-binary \
  146. test0006-amd64-binary \
  147. test0007-amd64-binary \
  148. test0008-amd64-binary \
  149. test0009-amd64-binary \
  150. test0010-amd64-binary \
  151. test0011-amd64-binary \
  152. test0012-amd64-binary \
  153. test0013-amd64-binary \
  154. test0014-amd64-binary \
  155. test0015-amd64-binary \
  156. test0016-amd64-binary \
  157. test0017-amd64-binary \
  158. test0018-amd64-binary \
  159. test0019-amd64-binary \
  160. test0020-amd64-binary \
  161. test0021-amd64-binary \
  162. test0022-amd64-binary \
  163. test0023-amd64-binary \
  164. test0100-amd64-binary \
  165. test0101-amd64-binary \
  166. test0102-amd64-binary \
  167. test0103-amd64-binary \
  168. test0104-amd64-binary \
  169. test0105-amd64-binary \
  170. test0106-amd64-binary \
  171. test1000-amd64-binary | results
  172. knight-posix-tests: \
  173. test0000-knight-posix-binary \
  174. test0001-knight-posix-binary \
  175. test0002-knight-posix-binary \
  176. test0003-knight-posix-binary \
  177. test0004-knight-posix-binary \
  178. test0005-knight-posix-binary \
  179. test0006-knight-posix-binary \
  180. test0007-knight-posix-binary \
  181. test0008-knight-posix-binary \
  182. test0009-knight-posix-binary \
  183. test0010-knight-posix-binary \
  184. test0011-knight-posix-binary \
  185. test0012-knight-posix-binary \
  186. test0013-knight-posix-binary \
  187. test0014-knight-posix-binary \
  188. test0015-knight-posix-binary \
  189. test0016-knight-posix-binary \
  190. test0017-knight-posix-binary \
  191. test0018-knight-posix-binary \
  192. test0019-knight-posix-binary \
  193. test0020-knight-posix-binary \
  194. test0021-knight-posix-binary \
  195. test0022-knight-posix-binary \
  196. test0023-knight-posix-binary \
  197. test0100-knight-posix-binary \
  198. test0101-knight-posix-binary \
  199. test0102-knight-posix-binary \
  200. test0103-knight-posix-binary \
  201. test0106-knight-posix-binary \
  202. test1000-knight-posix-binary | results
  203. knight-native-tests: \
  204. test0000-knight-native-binary\
  205. test0001-knight-native-binary\
  206. test0002-knight-native-binary\
  207. test0003-knight-native-binary\
  208. test0004-knight-native-binary\
  209. test0005-knight-native-binary\
  210. test0006-knight-native-binary\
  211. test0007-knight-native-binary\
  212. test0008-knight-native-binary\
  213. test0009-knight-native-binary\
  214. test0010-knight-native-binary\
  215. test0011-knight-native-binary\
  216. test0012-knight-native-binary\
  217. test0013-knight-native-binary\
  218. test0017-knight-native-binary\
  219. test0018-knight-native-binary\
  220. test0020-knight-native-binary\
  221. test0106-knight-native-binary | results
  222. armv7l-tests: \
  223. test0000-armv7l-binary \
  224. test0001-armv7l-binary \
  225. test0002-armv7l-binary \
  226. test0003-armv7l-binary \
  227. test0004-armv7l-binary \
  228. test0005-armv7l-binary \
  229. test0006-armv7l-binary \
  230. test0007-armv7l-binary \
  231. test0008-armv7l-binary \
  232. test0009-armv7l-binary \
  233. test0010-armv7l-binary \
  234. test0011-armv7l-binary \
  235. test0012-armv7l-binary \
  236. test0013-armv7l-binary \
  237. test0014-armv7l-binary \
  238. test0015-armv7l-binary \
  239. test0016-armv7l-binary \
  240. test0017-armv7l-binary \
  241. test0018-armv7l-binary \
  242. test0019-armv7l-binary \
  243. test0020-armv7l-binary \
  244. test0021-armv7l-binary \
  245. test0022-armv7l-binary \
  246. test0023-armv7l-binary \
  247. test0100-armv7l-binary \
  248. test0101-armv7l-binary \
  249. test0102-armv7l-binary \
  250. test0103-armv7l-binary \
  251. test0104-armv7l-binary \
  252. test0105-armv7l-binary \
  253. test0106-armv7l-binary \
  254. test1000-armv7l-binary | results
  255. x86-tests: \
  256. test0000-x86-binary \
  257. test0001-x86-binary \
  258. test0002-x86-binary \
  259. test0003-x86-binary \
  260. test0004-x86-binary \
  261. test0005-x86-binary \
  262. test0006-x86-binary \
  263. test0007-x86-binary \
  264. test0008-x86-binary \
  265. test0009-x86-binary \
  266. test0010-x86-binary \
  267. test0011-x86-binary \
  268. test0012-x86-binary \
  269. test0013-x86-binary \
  270. test0014-x86-binary \
  271. test0015-x86-binary \
  272. test0016-x86-binary \
  273. test0017-x86-binary \
  274. test0018-x86-binary \
  275. test0019-x86-binary \
  276. test0020-x86-binary \
  277. test0021-x86-binary \
  278. test0022-x86-binary \
  279. test0023-x86-binary \
  280. test0100-x86-binary \
  281. test0101-x86-binary \
  282. test0102-x86-binary \
  283. test0103-x86-binary \
  284. test0104-x86-binary \
  285. test0105-x86-binary \
  286. test0106-x86-binary \
  287. test1000-x86-binary | results
  288. test0000-aarch64-binary: M2-Planet | results
  289. test/test0000/hello-aarch64.sh
  290. test0001-aarch64-binary: M2-Planet | results
  291. test/test0001/hello-aarch64.sh
  292. test0002-aarch64-binary: M2-Planet | results
  293. test/test0002/hello-aarch64.sh
  294. test0003-aarch64-binary: M2-Planet | results
  295. test/test0003/hello-aarch64.sh
  296. test0004-aarch64-binary: M2-Planet | results
  297. test/test0004/hello-aarch64.sh
  298. test0005-aarch64-binary: M2-Planet | results
  299. test/test0005/hello-aarch64.sh
  300. test0006-aarch64-binary: M2-Planet | results
  301. test/test0006/hello-aarch64.sh
  302. test0007-aarch64-binary: M2-Planet | results
  303. test/test0007/hello-aarch64.sh
  304. test0008-aarch64-binary: M2-Planet | results
  305. test/test0008/hello-aarch64.sh
  306. test0009-aarch64-binary: M2-Planet | results
  307. test/test0009/hello-aarch64.sh
  308. test0010-aarch64-binary: M2-Planet | results
  309. test/test0010/hello-aarch64.sh
  310. test0011-aarch64-binary: M2-Planet | results
  311. test/test0011/hello-aarch64.sh
  312. test0012-aarch64-binary: M2-Planet | results
  313. test/test0012/hello-aarch64.sh
  314. test0013-aarch64-binary: M2-Planet | results
  315. test/test0013/hello-aarch64.sh
  316. test0014-aarch64-binary: M2-Planet | results
  317. test/test0014/hello-aarch64.sh
  318. test0015-aarch64-binary: M2-Planet | results
  319. test/test0015/hello-aarch64.sh
  320. test0016-aarch64-binary: M2-Planet | results
  321. test/test0016/hello-aarch64.sh
  322. test0017-aarch64-binary: M2-Planet | results
  323. test/test0017/hello-aarch64.sh
  324. test0018-aarch64-binary: M2-Planet | results
  325. test/test0018/hello-aarch64.sh
  326. test0019-aarch64-binary: M2-Planet | results
  327. test/test0019/hello-aarch64.sh
  328. test0020-aarch64-binary: M2-Planet | results
  329. test/test0020/hello-aarch64.sh
  330. test0021-aarch64-binary: M2-Planet | results
  331. test/test0021/hello-aarch64.sh
  332. test0022-aarch64-binary: M2-Planet | results
  333. test/test0022/hello-aarch64.sh
  334. test0023-aarch64-binary: M2-Planet | results
  335. test/test0023/hello-aarch64.sh
  336. test0100-aarch64-binary: M2-Planet | results
  337. test/test0100/hello-aarch64.sh
  338. test0101-aarch64-binary: M2-Planet | results
  339. test/test0101/hello-aarch64.sh
  340. test0102-aarch64-binary: M2-Planet | results
  341. test/test0102/hello-aarch64.sh
  342. test0103-aarch64-binary: M2-Planet | results
  343. test/test0103/hello-aarch64.sh
  344. test0104-aarch64-binary: M2-Planet | results
  345. test/test0104/hello-aarch64.sh
  346. test0105-aarch64-binary: M2-Planet | results
  347. test/test0105/hello-aarch64.sh
  348. test0106-aarch64-binary: M2-Planet | results
  349. test/test0106/hello-aarch64.sh
  350. test1000-aarch64-binary: M2-Planet | results
  351. test/test1000/hello-aarch64.sh
  352. test0000-amd64-binary: M2-Planet | results
  353. test/test0000/hello-amd64.sh
  354. test0001-amd64-binary: M2-Planet | results
  355. test/test0001/hello-amd64.sh
  356. test0002-amd64-binary: M2-Planet | results
  357. test/test0002/hello-amd64.sh
  358. test0003-amd64-binary: M2-Planet | results
  359. test/test0003/hello-amd64.sh
  360. test0004-amd64-binary: M2-Planet | results
  361. test/test0004/hello-amd64.sh
  362. test0005-amd64-binary: M2-Planet | results
  363. test/test0005/hello-amd64.sh
  364. test0006-amd64-binary: M2-Planet | results
  365. test/test0006/hello-amd64.sh
  366. test0007-amd64-binary: M2-Planet | results
  367. test/test0007/hello-amd64.sh
  368. test0008-amd64-binary: M2-Planet | results
  369. test/test0008/hello-amd64.sh
  370. test0009-amd64-binary: M2-Planet | results
  371. test/test0009/hello-amd64.sh
  372. test0010-amd64-binary: M2-Planet | results
  373. test/test0010/hello-amd64.sh
  374. test0011-amd64-binary: M2-Planet | results
  375. test/test0011/hello-amd64.sh
  376. test0012-amd64-binary: M2-Planet | results
  377. test/test0012/hello-amd64.sh
  378. test0013-amd64-binary: M2-Planet | results
  379. test/test0013/hello-amd64.sh
  380. test0014-amd64-binary: M2-Planet | results
  381. test/test0014/hello-amd64.sh
  382. test0015-amd64-binary: M2-Planet | results
  383. test/test0015/hello-amd64.sh
  384. test0016-amd64-binary: M2-Planet | results
  385. test/test0016/hello-amd64.sh
  386. test0017-amd64-binary: M2-Planet | results
  387. test/test0017/hello-amd64.sh
  388. test0018-amd64-binary: M2-Planet | results
  389. test/test0018/hello-amd64.sh
  390. test0019-amd64-binary: M2-Planet | results
  391. test/test0019/hello-amd64.sh
  392. test0020-amd64-binary: M2-Planet | results
  393. test/test0020/hello-amd64.sh
  394. test0021-amd64-binary: M2-Planet | results
  395. test/test0021/hello-amd64.sh
  396. test0022-amd64-binary: M2-Planet | results
  397. test/test0022/hello-amd64.sh
  398. test0023-amd64-binary: M2-Planet | results
  399. test/test0023/hello-amd64.sh
  400. test0100-amd64-binary: M2-Planet | results
  401. test/test0100/hello-amd64.sh
  402. test0101-amd64-binary: M2-Planet | results
  403. test/test0101/hello-amd64.sh
  404. test0102-amd64-binary: M2-Planet | results
  405. test/test0102/hello-amd64.sh
  406. test0103-amd64-binary: M2-Planet | results
  407. test/test0103/hello-amd64.sh
  408. test0104-amd64-binary: M2-Planet | results
  409. test/test0104/hello-amd64.sh
  410. test0105-amd64-binary: M2-Planet | results
  411. test/test0105/hello-amd64.sh
  412. test0106-amd64-binary: M2-Planet | results
  413. test/test0106/hello-amd64.sh
  414. test1000-amd64-binary: M2-Planet | results
  415. test/test1000/hello-amd64.sh
  416. test0000-knight-posix-binary: M2-Planet | results
  417. test/test0000/hello-knight-posix.sh
  418. test0001-knight-posix-binary: M2-Planet | results
  419. test/test0001/hello-knight-posix.sh
  420. test0002-knight-posix-binary: M2-Planet | results
  421. test/test0002/hello-knight-posix.sh
  422. test0003-knight-posix-binary: M2-Planet | results
  423. test/test0003/hello-knight-posix.sh
  424. test0004-knight-posix-binary: M2-Planet | results
  425. test/test0004/hello-knight-posix.sh
  426. test0005-knight-posix-binary: M2-Planet | results
  427. test/test0005/hello-knight-posix.sh
  428. test0006-knight-posix-binary: M2-Planet | results
  429. test/test0006/hello-knight-posix.sh
  430. test0007-knight-posix-binary: M2-Planet | results
  431. test/test0007/hello-knight-posix.sh
  432. test0008-knight-posix-binary: M2-Planet | results
  433. test/test0008/hello-knight-posix.sh
  434. test0009-knight-posix-binary: M2-Planet | results
  435. test/test0009/hello-knight-posix.sh
  436. test0010-knight-posix-binary: M2-Planet | results
  437. test/test0010/hello-knight-posix.sh
  438. test0011-knight-posix-binary: M2-Planet | results
  439. test/test0011/hello-knight-posix.sh
  440. test0012-knight-posix-binary: M2-Planet | results
  441. test/test0012/hello-knight-posix.sh
  442. test0013-knight-posix-binary: M2-Planet | results
  443. test/test0013/hello-knight-posix.sh
  444. test0014-knight-posix-binary: M2-Planet | results
  445. test/test0014/hello-knight-posix.sh
  446. test0015-knight-posix-binary: M2-Planet | results
  447. test/test0015/hello-knight-posix.sh
  448. test0016-knight-posix-binary: M2-Planet | results
  449. test/test0016/hello-knight-posix.sh
  450. test0017-knight-posix-binary: M2-Planet | results
  451. test/test0017/hello-knight-posix.sh
  452. test0018-knight-posix-binary: M2-Planet | results
  453. test/test0018/hello-knight-posix.sh
  454. test0019-knight-posix-binary: M2-Planet | results
  455. test/test0019/hello-knight-posix.sh
  456. test0020-knight-posix-binary: M2-Planet | results
  457. test/test0020/hello-knight-posix.sh
  458. test0021-knight-posix-binary: M2-Planet | results
  459. test/test0021/hello-knight-posix.sh
  460. test0022-knight-posix-binary: M2-Planet | results
  461. test/test0022/hello-knight-posix.sh
  462. test0023-knight-posix-binary: M2-Planet | results
  463. test/test0023/hello-knight-posix.sh
  464. test0100-knight-posix-binary: M2-Planet | results
  465. test/test0100/hello-knight-posix.sh
  466. test0101-knight-posix-binary: M2-Planet | results
  467. test/test0101/hello-knight-posix.sh
  468. test0102-knight-posix-binary: M2-Planet | results
  469. test/test0102/hello-knight-posix.sh
  470. test0103-knight-posix-binary: M2-Planet | results
  471. test/test0103/hello-knight-posix.sh
  472. test0106-knight-posix-binary: M2-Planet | results
  473. test/test0106/hello-knight-posix.sh
  474. test1000-knight-posix-binary: M2-Planet | results
  475. test/test1000/hello-knight-posix.sh
  476. test0000-knight-native-binary: M2-Planet | results
  477. test/test0000/hello-knight-native.sh
  478. test0001-knight-native-binary: M2-Planet | results
  479. test/test0001/hello-knight-native.sh
  480. test0002-knight-native-binary: M2-Planet | results
  481. test/test0002/hello-knight-native.sh
  482. test0003-knight-native-binary: M2-Planet | results
  483. test/test0003/hello-knight-native.sh
  484. test0004-knight-native-binary: M2-Planet | results
  485. test/test0004/hello-knight-native.sh
  486. test0005-knight-native-binary: M2-Planet | results
  487. test/test0005/hello-knight-native.sh
  488. test0006-knight-native-binary: M2-Planet | results
  489. test/test0006/hello-knight-native.sh
  490. test0007-knight-native-binary: M2-Planet | results
  491. test/test0007/hello-knight-native.sh
  492. test0008-knight-native-binary: M2-Planet | results
  493. test/test0008/hello-knight-native.sh
  494. test0009-knight-native-binary: M2-Planet | results
  495. test/test0009/hello-knight-native.sh
  496. test0010-knight-native-binary: M2-Planet | results
  497. test/test0010/hello-knight-native.sh
  498. test0011-knight-native-binary: M2-Planet | results
  499. test/test0011/hello-knight-native.sh
  500. test0012-knight-native-binary: M2-Planet | results
  501. test/test0012/hello-knight-native.sh
  502. test0013-knight-native-binary: M2-Planet | results
  503. test/test0013/hello-knight-native.sh
  504. test0017-knight-native-binary: M2-Planet | results
  505. test/test0017/hello-knight-native.sh
  506. test0018-knight-native-binary: M2-Planet | results
  507. test/test0018/hello-knight-native.sh
  508. test0020-knight-native-binary: M2-Planet | results
  509. test/test0020/hello-knight-native.sh
  510. test0106-knight-native-binary: M2-Planet | results
  511. test/test0106/hello-knight-native.sh
  512. test0000-armv7l-binary: M2-Planet | results
  513. test/test0000/hello-armv7l.sh
  514. test0001-armv7l-binary: M2-Planet | results
  515. test/test0001/hello-armv7l.sh
  516. test0002-armv7l-binary: M2-Planet | results
  517. test/test0002/hello-armv7l.sh
  518. test0003-armv7l-binary: M2-Planet | results
  519. test/test0003/hello-armv7l.sh
  520. test0004-armv7l-binary: M2-Planet | results
  521. test/test0004/hello-armv7l.sh
  522. test0005-armv7l-binary: M2-Planet | results
  523. test/test0005/hello-armv7l.sh
  524. test0006-armv7l-binary: M2-Planet | results
  525. test/test0006/hello-armv7l.sh
  526. test0007-armv7l-binary: M2-Planet | results
  527. test/test0007/hello-armv7l.sh
  528. test0008-armv7l-binary: M2-Planet | results
  529. test/test0008/hello-armv7l.sh
  530. test0009-armv7l-binary: M2-Planet | results
  531. test/test0009/hello-armv7l.sh
  532. test0010-armv7l-binary: M2-Planet | results
  533. test/test0010/hello-armv7l.sh
  534. test0011-armv7l-binary: M2-Planet | results
  535. test/test0011/hello-armv7l.sh
  536. test0012-armv7l-binary: M2-Planet | results
  537. test/test0012/hello-armv7l.sh
  538. test0013-armv7l-binary: M2-Planet | results
  539. test/test0013/hello-armv7l.sh
  540. test0014-armv7l-binary: M2-Planet | results
  541. test/test0014/hello-armv7l.sh
  542. test0015-armv7l-binary: M2-Planet | results
  543. test/test0015/hello-armv7l.sh
  544. test0016-armv7l-binary: M2-Planet | results
  545. test/test0016/hello-armv7l.sh
  546. test0017-armv7l-binary: M2-Planet | results
  547. test/test0017/hello-armv7l.sh
  548. test0018-armv7l-binary: M2-Planet | results
  549. test/test0018/hello-armv7l.sh
  550. test0019-armv7l-binary: M2-Planet | results
  551. test/test0019/hello-armv7l.sh
  552. test0020-armv7l-binary: M2-Planet | results
  553. test/test0020/hello-armv7l.sh
  554. test0021-armv7l-binary: M2-Planet | results
  555. test/test0021/hello-armv7l.sh
  556. test0022-armv7l-binary: M2-Planet | results
  557. test/test0022/hello-armv7l.sh
  558. test0023-armv7l-binary: M2-Planet | results
  559. test/test0023/hello-armv7l.sh
  560. test0100-armv7l-binary: M2-Planet | results
  561. test/test0100/hello-armv7l.sh
  562. test0101-armv7l-binary: M2-Planet | results
  563. test/test0101/hello-armv7l.sh
  564. test0102-armv7l-binary: M2-Planet | results
  565. test/test0102/hello-armv7l.sh
  566. test0103-armv7l-binary: M2-Planet | results
  567. test/test0103/hello-armv7l.sh
  568. test0104-armv7l-binary: M2-Planet | results
  569. test/test0104/hello-armv7l.sh
  570. test0105-armv7l-binary: M2-Planet | results
  571. test/test0105/hello-armv7l.sh
  572. test0106-armv7l-binary: M2-Planet | results
  573. test/test0106/hello-armv7l.sh
  574. test1000-armv7l-binary: M2-Planet | results
  575. test/test1000/hello-armv7l.sh
  576. test0000-x86-binary: M2-Planet | results
  577. test/test0000/hello-x86.sh
  578. test0001-x86-binary: M2-Planet | results
  579. test/test0001/hello-x86.sh
  580. test0002-x86-binary: M2-Planet | results
  581. test/test0002/hello-x86.sh
  582. test0003-x86-binary: M2-Planet | results
  583. test/test0003/hello-x86.sh
  584. test0004-x86-binary: M2-Planet | results
  585. test/test0004/hello-x86.sh
  586. test0005-x86-binary: M2-Planet | results
  587. test/test0005/hello-x86.sh
  588. test0006-x86-binary: M2-Planet | results
  589. test/test0006/hello-x86.sh
  590. test0007-x86-binary: M2-Planet | results
  591. test/test0007/hello-x86.sh
  592. test0008-x86-binary: M2-Planet | results
  593. test/test0008/hello-x86.sh
  594. test0009-x86-binary: M2-Planet | results
  595. test/test0009/hello-x86.sh
  596. test0010-x86-binary: M2-Planet | results
  597. test/test0010/hello-x86.sh
  598. test0011-x86-binary: M2-Planet | results
  599. test/test0011/hello-x86.sh
  600. test0012-x86-binary: M2-Planet | results
  601. test/test0012/hello-x86.sh
  602. test0013-x86-binary: M2-Planet | results
  603. test/test0013/hello-x86.sh
  604. test0014-x86-binary: M2-Planet | results
  605. test/test0014/hello-x86.sh
  606. test0015-x86-binary: M2-Planet | results
  607. test/test0015/hello-x86.sh
  608. test0016-x86-binary: M2-Planet | results
  609. test/test0016/hello-x86.sh
  610. test0017-x86-binary: M2-Planet | results
  611. test/test0017/hello-x86.sh
  612. test0018-x86-binary: M2-Planet | results
  613. test/test0018/hello-x86.sh
  614. test0019-x86-binary: M2-Planet | results
  615. test/test0019/hello-x86.sh
  616. test0020-x86-binary: M2-Planet | results
  617. test/test0020/hello-x86.sh
  618. test0021-x86-binary: M2-Planet | results
  619. test/test0021/hello-x86.sh
  620. test0022-x86-binary: M2-Planet | results
  621. test/test0022/hello-x86.sh
  622. test0023-x86-binary: M2-Planet | results
  623. test/test0023/hello-x86.sh
  624. test0100-x86-binary: M2-Planet | results
  625. test/test0100/hello-x86.sh
  626. test0101-x86-binary: M2-Planet | results
  627. test/test0101/hello-x86.sh
  628. test0102-x86-binary: M2-Planet | results
  629. test/test0102/hello-x86.sh
  630. test0103-x86-binary: M2-Planet | results
  631. test/test0103/hello-x86.sh
  632. test0104-x86-binary: M2-Planet | results
  633. test/test0104/hello-x86.sh
  634. test0105-x86-binary: M2-Planet | results
  635. test/test0105/hello-x86.sh
  636. test0106-x86-binary: M2-Planet | results
  637. test/test0106/hello-x86.sh
  638. test1000-x86-binary: M2-Planet | results
  639. test/test1000/hello-x86.sh
  640. # Generate test answers
  641. .PHONY: Generate-test-answers
  642. Generate-test-answers:
  643. sha256sum test/results/* >| test/test.answers
  644. DESTDIR:=
  645. PREFIX:=/usr/local
  646. bindir:=$(DESTDIR)$(PREFIX)/bin
  647. .PHONY: install
  648. install: M2-Planet
  649. mkdir -p $(bindir)
  650. cp $^ $(bindir)
  651. ### dist
  652. .PHONY: dist
  653. COMMIT=$(shell git describe --dirty)
  654. TARBALL_VERSION=$(COMMIT:Release_%=%)
  655. TARBALL_DIR:=$(PACKAGE)-$(TARBALL_VERSION)
  656. TARBALL=$(TARBALL_DIR).tar.gz
  657. # Be friendly to Debian; avoid using EPOCH
  658. MTIME=$(shell git show HEAD --format=%ct --no-patch)
  659. # Reproducible tarball
  660. TAR_FLAGS=--sort=name --mtime=@$(MTIME) --owner=0 --group=0 --numeric-owner --mode=go=rX,u+rw,a-s
  661. $(TARBALL):
  662. (git ls-files \
  663. --exclude=$(TARBALL_DIR); \
  664. echo $^ | tr ' ' '\n') \
  665. | tar $(TAR_FLAGS) \
  666. --transform=s,^,$(TARBALL_DIR)/,S -T- -cf- \
  667. | gzip -c --no-name > $@
  668. dist: $(TARBALL)