Add short library names support to Windows linker
[ghc.git] / testsuite / tests / ghci / linking / dyn / Makefile
1 TOP=../../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 ifeq "$(WINDOWS)" "YES"
6 DLL = lib$1.dll
7 else ifeq "$(DARWIN)" "YES"
8 DLL = lib$1.dylib
9 else
10 DLL = lib$1.so
11 endif
12
13
14 .PHONY: load_short_name
15 load_short_name:
16 rm -rf bin_short
17 mkdir bin_short
18 gcc -shared A.c -o "bin_short/$(call DLL,A)"
19 echo ":q" | "$(TEST_HC)" --interactive -L"$(PWD)/bin_short" -lA -v0
20
21 .PHONY: compile_libAS
22 compile_libAS:
23 gcc -shared A.c -o $(call DLL,AS)