Fix ffi023
[ghc.git] / testsuite / tests / ffi / should_run / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 ffi018_ghci_setup :
6 '$(TEST_HC)' $(TEST_HC_OPTS) -c ffi018_ghci_c.c
7
8 T1288_ghci_setup :
9 '$(TEST_HC)' $(TEST_HC_OPTS) $(ghciWayFlags) -c T1288_ghci_c.c
10
11 T2276_ghci_setup :
12 '$(TEST_HC)' $(TEST_HC_OPTS) $(ghciWayFlags) -c T2276_ghci_c.c
13
14 ffi002_setup :
15 '$(TEST_HC)' $(TEST_HC_OPTS) -c ffi002.hs
16
17 T5402_setup :
18 '$(TEST_HC)' $(TEST_HC_OPTS) -c T5402.hs
19
20 T5594_setup :
21 '$(TEST_HC)' $(TEST_HC_OPTS) -c T5594.hs
22
23 ffi023_setup :
24 '$(TEST_HC)' $(TEST_HC_OPTS) -c ffi023.hs
25
26 .PHONY: Capi_Ctype_001
27 Capi_Ctype_001:
28 '$(HSC2HS)' Capi_Ctype_A_001.hsc
29 '$(HSC2HS)' Capi_Ctype_001.hsc
30 '$(TEST_HC)' $(TEST_HC_OPTS) -c capi_ctype_001_c.c
31 '$(TEST_HC)' $(TEST_HC_OPTS) -c Capi_Ctype_A_001.hs
32 '$(TEST_HC)' $(TEST_HC_OPTS) -c Capi_Ctype_001.hs
33 '$(TEST_HC)' $(TEST_HC_OPTS) capi_ctype_001_c.o Capi_Ctype_A_001.o Capi_Ctype_001.o -o Capi_Ctype_001
34 ./Capi_Ctype_001
35
36 .PHONY: Capi_Ctype_002
37 Capi_Ctype_002:
38 '$(HSC2HS)' Capi_Ctype_A_002.hsc
39 '$(TEST_HC)' $(TEST_HC_OPTS) -c Capi_Ctype_A_002.hs
40 '$(TEST_HC)' $(TEST_HC_OPTS) -c Capi_Ctype_002.hs
41 '$(TEST_HC)' $(TEST_HC_OPTS) Capi_Ctype_A_002.o Capi_Ctype_002.o -o Capi_Ctype_002
42 ./Capi_Ctype_002
43