makefile 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  1. ## Copyright (C) 2017 Jeremiah Orians
  2. ## Copyright (C) 2020-2021 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_macro.c \
  39. cc.c \
  40. cc.h \
  41. cc_globals.c \
  42. gcc_req.h \
  43. -o bin/M2-Planet
  44. M2-minimal: bin results cc.h cc_reader.c cc_strings.c cc_types.c cc_core.c cc-minimal.c
  45. $(CC) $(CFLAGS) \
  46. functions/match.c \
  47. functions/in_set.c \
  48. functions/numerate_number.c \
  49. functions/file_print.c \
  50. functions/number_pack.c \
  51. functions/string.c \
  52. functions/require.c \
  53. functions/fixup.c \
  54. cc_reader.c \
  55. cc_strings.c \
  56. cc_types.c \
  57. cc_core.c \
  58. cc-minimal.c \
  59. cc.h \
  60. cc_globals.c \
  61. gcc_req.h \
  62. -o bin/M2-minimal
  63. # Clean up after ourselves
  64. .PHONY: clean
  65. clean:
  66. rm -rf bin/ test/results/
  67. ./test/cleanup_test.sh 0000
  68. ./test/cleanup_test.sh 0001
  69. ./test/cleanup_test.sh 0002
  70. ./test/cleanup_test.sh 0003
  71. ./test/cleanup_test.sh 0004
  72. ./test/cleanup_test.sh 0005
  73. ./test/cleanup_test.sh 0006
  74. ./test/cleanup_test.sh 0007
  75. ./test/cleanup_test.sh 0008
  76. ./test/cleanup_test.sh 0009
  77. ./test/cleanup_test.sh 0010
  78. ./test/cleanup_test.sh 0011
  79. ./test/cleanup_test.sh 0012
  80. ./test/cleanup_test.sh 0013
  81. ./test/cleanup_test.sh 0014
  82. ./test/cleanup_test.sh 0015
  83. ./test/cleanup_test.sh 0016
  84. ./test/cleanup_test.sh 0017
  85. ./test/cleanup_test.sh 0018
  86. ./test/cleanup_test.sh 0019
  87. ./test/cleanup_test.sh 0020
  88. ./test/cleanup_test.sh 0021
  89. ./test/cleanup_test.sh 0022
  90. ./test/cleanup_test.sh 0023
  91. ./test/cleanup_test.sh 0024
  92. ./test/cleanup_test.sh 0025
  93. ./test/cleanup_test.sh 0100
  94. ./test/cleanup_test.sh 0101
  95. ./test/cleanup_test.sh 0102
  96. ./test/cleanup_test.sh 0103
  97. ./test/cleanup_test.sh 0104
  98. ./test/cleanup_test.sh 0105
  99. ./test/cleanup_test.sh 0106
  100. ./test/cleanup_test.sh 1000
  101. # Directories
  102. bin:
  103. mkdir -p bin
  104. results:
  105. mkdir -p test/results
  106. # tests
  107. test: aarch64-tests amd64-tests knight-posix-tests knight-native-tests armv7l-tests x86-tests | results
  108. sha256sum -c test/test.answers
  109. aarch64-tests: \
  110. test0000-aarch64-binary \
  111. test0001-aarch64-binary \
  112. test0002-aarch64-binary \
  113. test0003-aarch64-binary \
  114. test0004-aarch64-binary \
  115. test0005-aarch64-binary \
  116. test0006-aarch64-binary \
  117. test0007-aarch64-binary \
  118. test0008-aarch64-binary \
  119. test0009-aarch64-binary \
  120. test0010-aarch64-binary \
  121. test0011-aarch64-binary \
  122. test0012-aarch64-binary \
  123. test0013-aarch64-binary \
  124. test0014-aarch64-binary \
  125. test0015-aarch64-binary \
  126. test0016-aarch64-binary \
  127. test0017-aarch64-binary \
  128. test0018-aarch64-binary \
  129. test0019-aarch64-binary \
  130. test0020-aarch64-binary \
  131. test0021-aarch64-binary \
  132. test0022-aarch64-binary \
  133. test0023-aarch64-binary \
  134. test0024-aarch64-binary \
  135. test0025-aarch64-binary \
  136. test0100-aarch64-binary \
  137. test0101-aarch64-binary \
  138. test0102-aarch64-binary \
  139. test0103-aarch64-binary \
  140. test0104-aarch64-binary \
  141. test0105-aarch64-binary \
  142. test0106-aarch64-binary \
  143. test1000-aarch64-binary | results
  144. amd64-tests: \
  145. test0000-amd64-binary \
  146. test0001-amd64-binary \
  147. test0002-amd64-binary \
  148. test0003-amd64-binary \
  149. test0004-amd64-binary \
  150. test0005-amd64-binary \
  151. test0006-amd64-binary \
  152. test0007-amd64-binary \
  153. test0008-amd64-binary \
  154. test0009-amd64-binary \
  155. test0010-amd64-binary \
  156. test0011-amd64-binary \
  157. test0012-amd64-binary \
  158. test0013-amd64-binary \
  159. test0014-amd64-binary \
  160. test0015-amd64-binary \
  161. test0016-amd64-binary \
  162. test0017-amd64-binary \
  163. test0018-amd64-binary \
  164. test0019-amd64-binary \
  165. test0020-amd64-binary \
  166. test0021-amd64-binary \
  167. test0022-amd64-binary \
  168. test0023-amd64-binary \
  169. test0024-amd64-binary \
  170. test0025-amd64-binary \
  171. test0100-amd64-binary \
  172. test0101-amd64-binary \
  173. test0102-amd64-binary \
  174. test0103-amd64-binary \
  175. test0104-amd64-binary \
  176. test0105-amd64-binary \
  177. test0106-amd64-binary \
  178. test1000-amd64-binary | results
  179. knight-posix-tests: \
  180. test0000-knight-posix-binary \
  181. test0001-knight-posix-binary \
  182. test0002-knight-posix-binary \
  183. test0003-knight-posix-binary \
  184. test0004-knight-posix-binary \
  185. test0005-knight-posix-binary \
  186. test0006-knight-posix-binary \
  187. test0007-knight-posix-binary \
  188. test0008-knight-posix-binary \
  189. test0009-knight-posix-binary \
  190. test0010-knight-posix-binary \
  191. test0011-knight-posix-binary \
  192. test0012-knight-posix-binary \
  193. test0013-knight-posix-binary \
  194. test0014-knight-posix-binary \
  195. test0015-knight-posix-binary \
  196. test0016-knight-posix-binary \
  197. test0017-knight-posix-binary \
  198. test0018-knight-posix-binary \
  199. test0019-knight-posix-binary \
  200. test0020-knight-posix-binary \
  201. test0021-knight-posix-binary \
  202. test0022-knight-posix-binary \
  203. test0023-knight-posix-binary \
  204. test0024-knight-posix-binary \
  205. test0100-knight-posix-binary \
  206. test0101-knight-posix-binary \
  207. test0102-knight-posix-binary \
  208. test0103-knight-posix-binary \
  209. test0106-knight-posix-binary \
  210. test1000-knight-posix-binary | results
  211. knight-native-tests: \
  212. test0000-knight-native-binary\
  213. test0001-knight-native-binary\
  214. test0002-knight-native-binary\
  215. test0003-knight-native-binary\
  216. test0004-knight-native-binary\
  217. test0005-knight-native-binary\
  218. test0006-knight-native-binary\
  219. test0007-knight-native-binary\
  220. test0008-knight-native-binary\
  221. test0009-knight-native-binary\
  222. test0010-knight-native-binary\
  223. test0011-knight-native-binary\
  224. test0012-knight-native-binary\
  225. test0013-knight-native-binary\
  226. test0017-knight-native-binary\
  227. test0018-knight-native-binary\
  228. test0020-knight-native-binary\
  229. test0024-knight-native-binary\
  230. test0106-knight-native-binary | results
  231. armv7l-tests: \
  232. test0000-armv7l-binary \
  233. test0001-armv7l-binary \
  234. test0002-armv7l-binary \
  235. test0003-armv7l-binary \
  236. test0004-armv7l-binary \
  237. test0005-armv7l-binary \
  238. test0006-armv7l-binary \
  239. test0007-armv7l-binary \
  240. test0008-armv7l-binary \
  241. test0009-armv7l-binary \
  242. test0010-armv7l-binary \
  243. test0011-armv7l-binary \
  244. test0012-armv7l-binary \
  245. test0013-armv7l-binary \
  246. test0014-armv7l-binary \
  247. test0015-armv7l-binary \
  248. test0016-armv7l-binary \
  249. test0017-armv7l-binary \
  250. test0018-armv7l-binary \
  251. test0019-armv7l-binary \
  252. test0020-armv7l-binary \
  253. test0021-armv7l-binary \
  254. test0022-armv7l-binary \
  255. test0023-armv7l-binary \
  256. test0024-armv7l-binary \
  257. test0025-armv7l-binary \
  258. test0100-armv7l-binary \
  259. test0101-armv7l-binary \
  260. test0102-armv7l-binary \
  261. test0103-armv7l-binary \
  262. test0104-armv7l-binary \
  263. test0105-armv7l-binary \
  264. test0106-armv7l-binary \
  265. test1000-armv7l-binary | results
  266. x86-tests: \
  267. test0000-x86-binary \
  268. test0001-x86-binary \
  269. test0002-x86-binary \
  270. test0003-x86-binary \
  271. test0004-x86-binary \
  272. test0005-x86-binary \
  273. test0006-x86-binary \
  274. test0007-x86-binary \
  275. test0008-x86-binary \
  276. test0009-x86-binary \
  277. test0010-x86-binary \
  278. test0011-x86-binary \
  279. test0012-x86-binary \
  280. test0013-x86-binary \
  281. test0014-x86-binary \
  282. test0015-x86-binary \
  283. test0016-x86-binary \
  284. test0017-x86-binary \
  285. test0018-x86-binary \
  286. test0019-x86-binary \
  287. test0020-x86-binary \
  288. test0021-x86-binary \
  289. test0022-x86-binary \
  290. test0023-x86-binary \
  291. test0024-x86-binary \
  292. test0025-x86-binary \
  293. test0100-x86-binary \
  294. test0101-x86-binary \
  295. test0102-x86-binary \
  296. test0103-x86-binary \
  297. test0104-x86-binary \
  298. test0105-x86-binary \
  299. test0106-x86-binary \
  300. test1000-x86-binary | results
  301. test0000-aarch64-binary: M2-Planet | results
  302. test/test0000/hello-aarch64.sh
  303. test0001-aarch64-binary: M2-Planet | results
  304. test/test0001/hello-aarch64.sh
  305. test0002-aarch64-binary: M2-Planet | results
  306. test/test0002/hello-aarch64.sh
  307. test0003-aarch64-binary: M2-Planet | results
  308. test/test0003/hello-aarch64.sh
  309. test0004-aarch64-binary: M2-Planet | results
  310. test/test0004/hello-aarch64.sh
  311. test0005-aarch64-binary: M2-Planet | results
  312. test/test0005/hello-aarch64.sh
  313. test0006-aarch64-binary: M2-Planet | results
  314. test/test0006/hello-aarch64.sh
  315. test0007-aarch64-binary: M2-Planet | results
  316. test/test0007/hello-aarch64.sh
  317. test0008-aarch64-binary: M2-Planet | results
  318. test/test0008/hello-aarch64.sh
  319. test0009-aarch64-binary: M2-Planet | results
  320. test/test0009/hello-aarch64.sh
  321. test0010-aarch64-binary: M2-Planet | results
  322. test/test0010/hello-aarch64.sh
  323. test0011-aarch64-binary: M2-Planet | results
  324. test/test0011/hello-aarch64.sh
  325. test0012-aarch64-binary: M2-Planet | results
  326. test/test0012/hello-aarch64.sh
  327. test0013-aarch64-binary: M2-Planet | results
  328. test/test0013/hello-aarch64.sh
  329. test0014-aarch64-binary: M2-Planet | results
  330. test/test0014/hello-aarch64.sh
  331. test0015-aarch64-binary: M2-Planet | results
  332. test/test0015/hello-aarch64.sh
  333. test0016-aarch64-binary: M2-Planet | results
  334. test/test0016/hello-aarch64.sh
  335. test0017-aarch64-binary: M2-Planet | results
  336. test/test0017/hello-aarch64.sh
  337. test0018-aarch64-binary: M2-Planet | results
  338. test/test0018/hello-aarch64.sh
  339. test0019-aarch64-binary: M2-Planet | results
  340. test/test0019/hello-aarch64.sh
  341. test0020-aarch64-binary: M2-Planet | results
  342. test/test0020/hello-aarch64.sh
  343. test0021-aarch64-binary: M2-Planet | results
  344. test/test0021/hello-aarch64.sh
  345. test0022-aarch64-binary: M2-Planet | results
  346. test/test0022/hello-aarch64.sh
  347. test0023-aarch64-binary: M2-Planet | results
  348. test/test0023/hello-aarch64.sh
  349. test0024-aarch64-binary: M2-Planet | results
  350. test/test0024/hello-aarch64.sh
  351. test0025-aarch64-binary: M2-Planet | results
  352. test/test0025/hello-aarch64.sh
  353. test0100-aarch64-binary: M2-Planet | results
  354. test/test0100/hello-aarch64.sh
  355. test0101-aarch64-binary: M2-Planet | results
  356. test/test0101/hello-aarch64.sh
  357. test0102-aarch64-binary: M2-Planet | results
  358. test/test0102/hello-aarch64.sh
  359. test0103-aarch64-binary: M2-Planet | results
  360. test/test0103/hello-aarch64.sh
  361. test0104-aarch64-binary: M2-Planet | results
  362. test/test0104/hello-aarch64.sh
  363. test0105-aarch64-binary: M2-Planet | results
  364. test/test0105/hello-aarch64.sh
  365. test0106-aarch64-binary: M2-Planet | results
  366. test/test0106/hello-aarch64.sh
  367. test1000-aarch64-binary: M2-Planet | results
  368. test/test1000/hello-aarch64.sh
  369. test0000-amd64-binary: M2-Planet | results
  370. test/test0000/hello-amd64.sh
  371. test0001-amd64-binary: M2-Planet | results
  372. test/test0001/hello-amd64.sh
  373. test0002-amd64-binary: M2-Planet | results
  374. test/test0002/hello-amd64.sh
  375. test0003-amd64-binary: M2-Planet | results
  376. test/test0003/hello-amd64.sh
  377. test0004-amd64-binary: M2-Planet | results
  378. test/test0004/hello-amd64.sh
  379. test0005-amd64-binary: M2-Planet | results
  380. test/test0005/hello-amd64.sh
  381. test0006-amd64-binary: M2-Planet | results
  382. test/test0006/hello-amd64.sh
  383. test0007-amd64-binary: M2-Planet | results
  384. test/test0007/hello-amd64.sh
  385. test0008-amd64-binary: M2-Planet | results
  386. test/test0008/hello-amd64.sh
  387. test0009-amd64-binary: M2-Planet | results
  388. test/test0009/hello-amd64.sh
  389. test0010-amd64-binary: M2-Planet | results
  390. test/test0010/hello-amd64.sh
  391. test0011-amd64-binary: M2-Planet | results
  392. test/test0011/hello-amd64.sh
  393. test0012-amd64-binary: M2-Planet | results
  394. test/test0012/hello-amd64.sh
  395. test0013-amd64-binary: M2-Planet | results
  396. test/test0013/hello-amd64.sh
  397. test0014-amd64-binary: M2-Planet | results
  398. test/test0014/hello-amd64.sh
  399. test0015-amd64-binary: M2-Planet | results
  400. test/test0015/hello-amd64.sh
  401. test0016-amd64-binary: M2-Planet | results
  402. test/test0016/hello-amd64.sh
  403. test0017-amd64-binary: M2-Planet | results
  404. test/test0017/hello-amd64.sh
  405. test0018-amd64-binary: M2-Planet | results
  406. test/test0018/hello-amd64.sh
  407. test0019-amd64-binary: M2-Planet | results
  408. test/test0019/hello-amd64.sh
  409. test0020-amd64-binary: M2-Planet | results
  410. test/test0020/hello-amd64.sh
  411. test0021-amd64-binary: M2-Planet | results
  412. test/test0021/hello-amd64.sh
  413. test0022-amd64-binary: M2-Planet | results
  414. test/test0022/hello-amd64.sh
  415. test0023-amd64-binary: M2-Planet | results
  416. test/test0023/hello-amd64.sh
  417. test0024-amd64-binary: M2-Planet | results
  418. test/test0024/hello-amd64.sh
  419. test0025-amd64-binary: M2-Planet | results
  420. test/test0025/hello-amd64.sh
  421. test0100-amd64-binary: M2-Planet | results
  422. test/test0100/hello-amd64.sh
  423. test0101-amd64-binary: M2-Planet | results
  424. test/test0101/hello-amd64.sh
  425. test0102-amd64-binary: M2-Planet | results
  426. test/test0102/hello-amd64.sh
  427. test0103-amd64-binary: M2-Planet | results
  428. test/test0103/hello-amd64.sh
  429. test0104-amd64-binary: M2-Planet | results
  430. test/test0104/hello-amd64.sh
  431. test0105-amd64-binary: M2-Planet | results
  432. test/test0105/hello-amd64.sh
  433. test0106-amd64-binary: M2-Planet | results
  434. test/test0106/hello-amd64.sh
  435. test1000-amd64-binary: M2-Planet | results
  436. test/test1000/hello-amd64.sh
  437. test0000-knight-posix-binary: M2-Planet | results
  438. test/test0000/hello-knight-posix.sh
  439. test0001-knight-posix-binary: M2-Planet | results
  440. test/test0001/hello-knight-posix.sh
  441. test0002-knight-posix-binary: M2-Planet | results
  442. test/test0002/hello-knight-posix.sh
  443. test0003-knight-posix-binary: M2-Planet | results
  444. test/test0003/hello-knight-posix.sh
  445. test0004-knight-posix-binary: M2-Planet | results
  446. test/test0004/hello-knight-posix.sh
  447. test0005-knight-posix-binary: M2-Planet | results
  448. test/test0005/hello-knight-posix.sh
  449. test0006-knight-posix-binary: M2-Planet | results
  450. test/test0006/hello-knight-posix.sh
  451. test0007-knight-posix-binary: M2-Planet | results
  452. test/test0007/hello-knight-posix.sh
  453. test0008-knight-posix-binary: M2-Planet | results
  454. test/test0008/hello-knight-posix.sh
  455. test0009-knight-posix-binary: M2-Planet | results
  456. test/test0009/hello-knight-posix.sh
  457. test0010-knight-posix-binary: M2-Planet | results
  458. test/test0010/hello-knight-posix.sh
  459. test0011-knight-posix-binary: M2-Planet | results
  460. test/test0011/hello-knight-posix.sh
  461. test0012-knight-posix-binary: M2-Planet | results
  462. test/test0012/hello-knight-posix.sh
  463. test0013-knight-posix-binary: M2-Planet | results
  464. test/test0013/hello-knight-posix.sh
  465. test0014-knight-posix-binary: M2-Planet | results
  466. test/test0014/hello-knight-posix.sh
  467. test0015-knight-posix-binary: M2-Planet | results
  468. test/test0015/hello-knight-posix.sh
  469. test0016-knight-posix-binary: M2-Planet | results
  470. test/test0016/hello-knight-posix.sh
  471. test0017-knight-posix-binary: M2-Planet | results
  472. test/test0017/hello-knight-posix.sh
  473. test0018-knight-posix-binary: M2-Planet | results
  474. test/test0018/hello-knight-posix.sh
  475. test0019-knight-posix-binary: M2-Planet | results
  476. test/test0019/hello-knight-posix.sh
  477. test0020-knight-posix-binary: M2-Planet | results
  478. test/test0020/hello-knight-posix.sh
  479. test0021-knight-posix-binary: M2-Planet | results
  480. test/test0021/hello-knight-posix.sh
  481. test0022-knight-posix-binary: M2-Planet | results
  482. test/test0022/hello-knight-posix.sh
  483. test0023-knight-posix-binary: M2-Planet | results
  484. test/test0023/hello-knight-posix.sh
  485. test0024-knight-posix-binary: M2-Planet | results
  486. test/test0024/hello-knight-posix.sh
  487. test0100-knight-posix-binary: M2-Planet | results
  488. test/test0100/hello-knight-posix.sh
  489. test0101-knight-posix-binary: M2-Planet | results
  490. test/test0101/hello-knight-posix.sh
  491. test0102-knight-posix-binary: M2-Planet | results
  492. test/test0102/hello-knight-posix.sh
  493. test0103-knight-posix-binary: M2-Planet | results
  494. test/test0103/hello-knight-posix.sh
  495. test0106-knight-posix-binary: M2-Planet | results
  496. test/test0106/hello-knight-posix.sh
  497. test1000-knight-posix-binary: M2-Planet | results
  498. test/test1000/hello-knight-posix.sh
  499. test0000-knight-native-binary: M2-Planet | results
  500. test/test0000/hello-knight-native.sh
  501. test0001-knight-native-binary: M2-Planet | results
  502. test/test0001/hello-knight-native.sh
  503. test0002-knight-native-binary: M2-Planet | results
  504. test/test0002/hello-knight-native.sh
  505. test0003-knight-native-binary: M2-Planet | results
  506. test/test0003/hello-knight-native.sh
  507. test0004-knight-native-binary: M2-Planet | results
  508. test/test0004/hello-knight-native.sh
  509. test0005-knight-native-binary: M2-Planet | results
  510. test/test0005/hello-knight-native.sh
  511. test0006-knight-native-binary: M2-Planet | results
  512. test/test0006/hello-knight-native.sh
  513. test0007-knight-native-binary: M2-Planet | results
  514. test/test0007/hello-knight-native.sh
  515. test0008-knight-native-binary: M2-Planet | results
  516. test/test0008/hello-knight-native.sh
  517. test0009-knight-native-binary: M2-Planet | results
  518. test/test0009/hello-knight-native.sh
  519. test0010-knight-native-binary: M2-Planet | results
  520. test/test0010/hello-knight-native.sh
  521. test0011-knight-native-binary: M2-Planet | results
  522. test/test0011/hello-knight-native.sh
  523. test0012-knight-native-binary: M2-Planet | results
  524. test/test0012/hello-knight-native.sh
  525. test0013-knight-native-binary: M2-Planet | results
  526. test/test0013/hello-knight-native.sh
  527. test0017-knight-native-binary: M2-Planet | results
  528. test/test0017/hello-knight-native.sh
  529. test0018-knight-native-binary: M2-Planet | results
  530. test/test0018/hello-knight-native.sh
  531. test0020-knight-native-binary: M2-Planet | results
  532. test/test0020/hello-knight-native.sh
  533. test0024-knight-native-binary: M2-Planet | results
  534. test/test0024/hello-knight-native.sh
  535. test0106-knight-native-binary: M2-Planet | results
  536. test/test0106/hello-knight-native.sh
  537. test0000-armv7l-binary: M2-Planet | results
  538. test/test0000/hello-armv7l.sh
  539. test0001-armv7l-binary: M2-Planet | results
  540. test/test0001/hello-armv7l.sh
  541. test0002-armv7l-binary: M2-Planet | results
  542. test/test0002/hello-armv7l.sh
  543. test0003-armv7l-binary: M2-Planet | results
  544. test/test0003/hello-armv7l.sh
  545. test0004-armv7l-binary: M2-Planet | results
  546. test/test0004/hello-armv7l.sh
  547. test0005-armv7l-binary: M2-Planet | results
  548. test/test0005/hello-armv7l.sh
  549. test0006-armv7l-binary: M2-Planet | results
  550. test/test0006/hello-armv7l.sh
  551. test0007-armv7l-binary: M2-Planet | results
  552. test/test0007/hello-armv7l.sh
  553. test0008-armv7l-binary: M2-Planet | results
  554. test/test0008/hello-armv7l.sh
  555. test0009-armv7l-binary: M2-Planet | results
  556. test/test0009/hello-armv7l.sh
  557. test0010-armv7l-binary: M2-Planet | results
  558. test/test0010/hello-armv7l.sh
  559. test0011-armv7l-binary: M2-Planet | results
  560. test/test0011/hello-armv7l.sh
  561. test0012-armv7l-binary: M2-Planet | results
  562. test/test0012/hello-armv7l.sh
  563. test0013-armv7l-binary: M2-Planet | results
  564. test/test0013/hello-armv7l.sh
  565. test0014-armv7l-binary: M2-Planet | results
  566. test/test0014/hello-armv7l.sh
  567. test0015-armv7l-binary: M2-Planet | results
  568. test/test0015/hello-armv7l.sh
  569. test0016-armv7l-binary: M2-Planet | results
  570. test/test0016/hello-armv7l.sh
  571. test0017-armv7l-binary: M2-Planet | results
  572. test/test0017/hello-armv7l.sh
  573. test0018-armv7l-binary: M2-Planet | results
  574. test/test0018/hello-armv7l.sh
  575. test0019-armv7l-binary: M2-Planet | results
  576. test/test0019/hello-armv7l.sh
  577. test0020-armv7l-binary: M2-Planet | results
  578. test/test0020/hello-armv7l.sh
  579. test0021-armv7l-binary: M2-Planet | results
  580. test/test0021/hello-armv7l.sh
  581. test0022-armv7l-binary: M2-Planet | results
  582. test/test0022/hello-armv7l.sh
  583. test0023-armv7l-binary: M2-Planet | results
  584. test/test0023/hello-armv7l.sh
  585. test0024-armv7l-binary: M2-Planet | results
  586. test/test0024/hello-armv7l.sh
  587. test0025-armv7l-binary: M2-Planet | results
  588. test/test0025/hello-armv7l.sh
  589. test0100-armv7l-binary: M2-Planet | results
  590. test/test0100/hello-armv7l.sh
  591. test0101-armv7l-binary: M2-Planet | results
  592. test/test0101/hello-armv7l.sh
  593. test0102-armv7l-binary: M2-Planet | results
  594. test/test0102/hello-armv7l.sh
  595. test0103-armv7l-binary: M2-Planet | results
  596. test/test0103/hello-armv7l.sh
  597. test0104-armv7l-binary: M2-Planet | results
  598. test/test0104/hello-armv7l.sh
  599. test0105-armv7l-binary: M2-Planet | results
  600. test/test0105/hello-armv7l.sh
  601. test0106-armv7l-binary: M2-Planet | results
  602. test/test0106/hello-armv7l.sh
  603. test1000-armv7l-binary: M2-Planet | results
  604. test/test1000/hello-armv7l.sh
  605. test0000-x86-binary: M2-Planet | results
  606. test/test0000/hello-x86.sh
  607. test0001-x86-binary: M2-Planet | results
  608. test/test0001/hello-x86.sh
  609. test0002-x86-binary: M2-Planet | results
  610. test/test0002/hello-x86.sh
  611. test0003-x86-binary: M2-Planet | results
  612. test/test0003/hello-x86.sh
  613. test0004-x86-binary: M2-Planet | results
  614. test/test0004/hello-x86.sh
  615. test0005-x86-binary: M2-Planet | results
  616. test/test0005/hello-x86.sh
  617. test0006-x86-binary: M2-Planet | results
  618. test/test0006/hello-x86.sh
  619. test0007-x86-binary: M2-Planet | results
  620. test/test0007/hello-x86.sh
  621. test0008-x86-binary: M2-Planet | results
  622. test/test0008/hello-x86.sh
  623. test0009-x86-binary: M2-Planet | results
  624. test/test0009/hello-x86.sh
  625. test0010-x86-binary: M2-Planet | results
  626. test/test0010/hello-x86.sh
  627. test0011-x86-binary: M2-Planet | results
  628. test/test0011/hello-x86.sh
  629. test0012-x86-binary: M2-Planet | results
  630. test/test0012/hello-x86.sh
  631. test0013-x86-binary: M2-Planet | results
  632. test/test0013/hello-x86.sh
  633. test0014-x86-binary: M2-Planet | results
  634. test/test0014/hello-x86.sh
  635. test0015-x86-binary: M2-Planet | results
  636. test/test0015/hello-x86.sh
  637. test0016-x86-binary: M2-Planet | results
  638. test/test0016/hello-x86.sh
  639. test0017-x86-binary: M2-Planet | results
  640. test/test0017/hello-x86.sh
  641. test0018-x86-binary: M2-Planet | results
  642. test/test0018/hello-x86.sh
  643. test0019-x86-binary: M2-Planet | results
  644. test/test0019/hello-x86.sh
  645. test0020-x86-binary: M2-Planet | results
  646. test/test0020/hello-x86.sh
  647. test0021-x86-binary: M2-Planet | results
  648. test/test0021/hello-x86.sh
  649. test0022-x86-binary: M2-Planet | results
  650. test/test0022/hello-x86.sh
  651. test0023-x86-binary: M2-Planet | results
  652. test/test0023/hello-x86.sh
  653. test0024-x86-binary: M2-Planet | results
  654. test/test0024/hello-x86.sh
  655. test0025-x86-binary: M2-Planet | results
  656. test/test0025/hello-x86.sh
  657. test0100-x86-binary: M2-Planet | results
  658. test/test0100/hello-x86.sh
  659. test0101-x86-binary: M2-Planet | results
  660. test/test0101/hello-x86.sh
  661. test0102-x86-binary: M2-Planet | results
  662. test/test0102/hello-x86.sh
  663. test0103-x86-binary: M2-Planet | results
  664. test/test0103/hello-x86.sh
  665. test0104-x86-binary: M2-Planet | results
  666. test/test0104/hello-x86.sh
  667. test0105-x86-binary: M2-Planet | results
  668. test/test0105/hello-x86.sh
  669. test0106-x86-binary: M2-Planet | results
  670. test/test0106/hello-x86.sh
  671. test1000-x86-binary: M2-Planet | results
  672. test/test1000/hello-x86.sh
  673. # Generate test answers
  674. .PHONY: Generate-test-answers
  675. Generate-test-answers:
  676. sha256sum test/results/* >| test/test.answers
  677. DESTDIR:=
  678. PREFIX:=/usr/local
  679. bindir:=$(DESTDIR)$(PREFIX)/bin
  680. .PHONY: install
  681. install: M2-Planet
  682. mkdir -p $(bindir)
  683. cp $^ $(bindir)
  684. ### dist
  685. .PHONY: dist
  686. COMMIT=$(shell git describe --dirty)
  687. TARBALL_VERSION=$(COMMIT:Release_%=%)
  688. TARBALL_DIR:=$(PACKAGE)-$(TARBALL_VERSION)
  689. TARBALL=$(TARBALL_DIR).tar.gz
  690. # Be friendly to Debian; avoid using EPOCH
  691. MTIME=$(shell git show HEAD --format=%ct --no-patch)
  692. # Reproducible tarball
  693. TAR_FLAGS=--sort=name --mtime=@$(MTIME) --owner=0 --group=0 --numeric-owner --mode=go=rX,u+rw,a-s
  694. $(TARBALL):
  695. (git ls-files \
  696. --exclude=$(TARBALL_DIR); \
  697. echo $^ | tr ' ' '\n') \
  698. | tar $(TAR_FLAGS) \
  699. --transform=s,^,$(TARBALL_DIR)/,S -T- -cf- \
  700. | gzip -c --no-name > $@
  701. dist: $(TARBALL)