X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Flib%2FMakefile;h=ca08ea20bc2fc14bbe107a9903df46af6abcb02d;hb=8d16c87c0557b60d2f2f5c3fa1a1bfa1605f07c9;hp=006c38274984ad9082b9ba16aa80891eb2db6dfe;hpb=7a3bd641457666e10d0a47be9f22762e03defbf0;p=ghc-hetmet.git diff --git a/ghc/lib/Makefile b/ghc/lib/Makefile index 006c382..ca08ea2 100644 --- a/ghc/lib/Makefile +++ b/ghc/lib/Makefile @@ -1,51 +1,6 @@ -#----------------------------------------------------------------------------- -# $Id: Makefile,v 1.3 1996/12/19 09:13:55 simonpj Exp $ +TOP=.. +include $(TOP)/mk/boilerplate.mk -TOP = ../.. -include $(TOP)/ghc/mk/ghc.mk +SUBDIRS = compat -SUBDIRS = cbits -ifeq ($(IncludeTestDirsInBuild),YES) - SUBDIRS += tests -endif - -include $(TOP)/mk/subdir.mk - -# per-build options: shared with runtime system -include ../mk/buildflags.mk - -#----------------------------------------------------------------------------- -# libHS.a, in several different 'ways' - -all :: - @for i in $(WAY_SUFFIXES); do \ - echo; \ - echo =========== Making libraries for way $$i; \ - echo; \ - $(MAKE) -f Makefile.libHS suffix=$$i; \ - done - -# Shortcut for typical case when testing: just make the "normal" version -libHS.a :: - $(MAKE) -f Makefile.libHS suffix=norm - -install :: - @for i in $(WAY_SUFFIXES); do \ - $(MAKE) -f Makefile.libHS suffix=$$i install; \ - done - -clean :: - @for i in $(WAY_SUFFIXES); do \ - $(MAKE) -f Makefile.libHS suffix=$$i clean; \ - done - -# Dependencies are done by Makefile.libHS - -depend :: - @$(MAKE) -f Makefile.libHS depend - - -# install MODULES file - -install :: - $(INSTALL) $(INSTDATAFLAGS) MODULES $(INSTDATADIR_GHC)/imports +include $(TOP)/mk/target.mk