X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdriver%2FJmakefile;fp=ghc%2Fdriver%2FJmakefile;h=4e7f653afd4f35f8f9c833fbd28a1064bde9fa8c;hb=e7d21ee4f8ac907665a7e170c71d59e13a01da09;hp=0000000000000000000000000000000000000000;hpb=e48474bff05e6cfb506660420f025f694c870d38;p=ghc-hetmet.git diff --git a/ghc/driver/Jmakefile b/ghc/driver/Jmakefile new file mode 100644 index 0000000..4e7f653 --- /dev/null +++ b/ghc/driver/Jmakefile @@ -0,0 +1,64 @@ +/* stuff to have before we get going */ +MsubNeededHere(ghc) +#if BuildDataParallelHaskell == YES +MsubNeededHere(dphc) +#endif +LitStuffNeededHere(depend) +InfoStuffNeededHere(docs) + +DYN_LOADABLE_BITS = \ + ghc-asm-sparc.prl \ + ghc-asm-solaris.prl \ + ghc-asm-m68k.prl \ + ghc-asm-iX86.prl \ + ghc-asm-alpha.prl \ + ghc-asm-hppa.prl \ + ghc-asm-mips.prl \ + ghc-consist.prl \ + ghc-split.prl + +/* Literate-pgmming suffix rules used herein */ +LitSuffixRule(.lprl,.prl) + +MsubMakefileDependentProgramScriptTarget(PerlCmd,ghc,ghc.prl,/*no flags*/,/*Makefile*/) +#if BuildDataParallelHaskell == YES +MsubMakefileDependentProgramScriptTarget(PerlCmd,dphc,dphc.prl,,/*Makefile*/) +#endif +AllTarget( $(DYN_LOADABLE_BITS) ) + +/* installation is hackish: because we may want to install w/ a diff name */ +#if DoInstallGHCSystem == YES +MakeDirectories(install, $(INSTBINDIR_GHC) $(INSTLIBDIR_GHC)) + +InstallMsubbedScriptTarget(PerlCmd,ghc-v-temp-name,ghc.prl,$(INSTBINDIR_GHC)) +/* and continuing ... */ +install:: + $(MV) $(INSTBINDIR_GHC)/ghc-v-temp-name $(INSTBINDIR_GHC)/$(GHC_DRIVER_INST_NAME) + $(RM) $(INSTBINDIR_GHC)/ghc-v-temp-name + +#if BuildDataParallelHaskell == YES +InstallMsubbedScriptTarget(PerlCmd,dphc-v-temp-name,dphc.prl,$(INSTBINDIR_GHC)) +install:: + $(MV) $(INSTBINDIR_GHC)/dphc-v-temp-name $(INSTBINDIR_GHC)/dphc + $(RM) $(INSTBINDIR_GHC)/dphc-v-temp-name +#endif /* DPH */ + +dyn_loadable_bits : $(DYN_LOADABLE_BITS) + +InstallMultNonExecTargets(dyn_loadable_bits, $(DYN_LOADABLE_BITS), $(INSTLIBDIR_GHC)) + +install :: install_dyn_loadable_bits + +#endif /* DoInstallGHCSystem */ + +depend:: + @echo make depend done in $(CURRENT_DIR) + +ExtraStuffToClean( ghc.prl $(DYN_LOADABLE_BITS) ) + +ClearTagsFile() + +DYN_LOADABLE_LPRLS = $(DYN_LOADABLE_BITS:.prl=.lprl) +PerlTagsTarget( ghc.lprl $(DYN_LOADABLE_LPRLS) ) + +LitDocRootTargetWithNamedOutput(driver,lit,driver-standalone)