2 # .NET interop for GHC.
7 include $(TOP)/mk/boilerplate.mk
9 all :: Invoker.dll Invoke.o
12 # To compile the dotnet interop bits, you need to have the
13 # .NET Framework SDK or VS.NET installed. The following
21 Invoker.dll : Invoker.obj
22 $(MCPP) /LD /clr /o Invoker.dll Invoker.obj
25 $(GACUTIL) /i Invoker.dll
27 Invoker.obj : Invoker.cpp Invoker.h
28 $(MCPP) /LD /clr /c Invoker.cpp
30 CLEAN_FILES += $(wildcard *.obj *.dll *.tlb)
33 # - switch to /ir (i.e., copy it into the GAC.)
34 # - sort out installation story.
41 # NOTE: For DotnetCc a version of gcc later than gcc-2.95 is
42 # required (I'm using the gcc-3.2 snapshot that comes with mingw-2)
47 DotnetCcOpts=$(CC_OPTS) $(DOTNET_EXTRA_CC_OPTS)
48 SRC_CC_OPTS += -I$(TOP)/includes
51 $(DotnetCc) $(DotnetCcOpts) -c $< -o $@
53 include $(TOP)/mk/target.mk