summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_run/Makefile
blob: 80ff28647e928bfa895c8fac508532de10a11556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

ffi018_ghci_setup :
	'$(TEST_HC)' $(TEST_HC_OPTS) -c ffi018_ghci_c.c

1288_ghci_setup :
	'$(TEST_HC)' $(TEST_HC_OPTS) -c 1288_ghci_c.c

2276_ghci_setup :
	'$(TEST_HC)' $(TEST_HC_OPTS) -c 2276_ghci_c.c

ffi002_setup :
	'$(TEST_HC)' $(TEST_HC_OPTS) -c ffi002.hs

5402_setup :
	'$(TEST_HC)' $(TEST_HC_OPTS) -c 5402.hs

5594_setup :
	'$(TEST_HC)' $(TEST_HC_OPTS) -c 5594.hs

.PHONY: Capi_Ctype_001
Capi_Ctype_001:
	'$(HSC2HS)' Capi_Ctype_A_001.hsc
	'$(HSC2HS)' Capi_Ctype_001.hsc
	'$(TEST_HC)' $(TEST_HC_OPTS) -c capi_ctype_001_c.c
	'$(TEST_HC)' $(TEST_HC_OPTS) -c Capi_Ctype_A_001.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) -c Capi_Ctype_001.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) capi_ctype_001_c.o Capi_Ctype_A_001.o Capi_Ctype_001.o -o Capi_Ctype_001
	./Capi_Ctype_001

.PHONY: Capi_Ctype_002
Capi_Ctype_002:
	'$(HSC2HS)' Capi_Ctype_A_002.hsc
	'$(TEST_HC)' $(TEST_HC_OPTS) -c Capi_Ctype_A_002.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) -c Capi_Ctype_002.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) Capi_Ctype_A_002.o Capi_Ctype_002.o -o Capi_Ctype_002
	./Capi_Ctype_002