From 9b6f49a25a636a2ab7e16d12c119e087c3caba77 Mon Sep 17 00:00:00 2001 From: panne <unknown> Date: Wed, 31 May 2000 12:04:49 +0000 Subject: [PATCH] [project @ 2000-05-31 12:04:49 by panne] Use new way of #including for packages --- ghc/lib/std/cbits/HsStd.h | 13 +++++++++++++ ghc/lib/std/cbits/Makefile | 18 ++++++++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 ghc/lib/std/cbits/HsStd.h diff --git a/ghc/lib/std/cbits/HsStd.h b/ghc/lib/std/cbits/HsStd.h new file mode 100644 index 000000000000..db58a6980cd4 --- /dev/null +++ b/ghc/lib/std/cbits/HsStd.h @@ -0,0 +1,13 @@ +/* ----------------------------------------------------------------------------- + * $Id: HsStd.h,v 1.1 2000/05/31 12:04:49 panne Exp $ + * + * Definitions for package `std' which are visible in Haskell land. + * + * ---------------------------------------------------------------------------*/ + +#ifndef HSSTD_H +#define HSSTD_H + +#include "stgio.h" + +#endif diff --git a/ghc/lib/std/cbits/Makefile b/ghc/lib/std/cbits/Makefile index 853da87df4e5..daa044e5e731 100644 --- a/ghc/lib/std/cbits/Makefile +++ b/ghc/lib/std/cbits/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.19 2000/05/12 11:48:30 rrt Exp $ +# $Id: Makefile,v 1.20 2000/05/31 12:04:49 panne Exp $ TOP = ../../.. include $(TOP)/mk/boilerplate.mk @@ -40,6 +40,17 @@ SRC_BLD_DLL_OPTS += -lwinmm -lwsock32 -lHSrts_imp -lgmp -L. -L../../../rts/gmp - # CC=$(GHC_INPLACE) +# ghc-inplace needs access to HsStd.h and its includes, so copy them into the +# standard place. +# NOTE 1: Installation of the header files into their final place is done via +# GHC_INCLUDE_DIR. This is not nice, but there is no easy way out. +# NOTE 2: Filtering out timezone.h is a little bit hacky, but we don't need it +# after compilation. +boot :: + cp $(filter-out timezone.h,$(wildcard *.h)) $(GHC_INCLUDE_DIR) + +CLEAN_FILES += $(foreach header_file, $(filter-out timezone.h,$(wildcard *.h)), $(GHC_INCLUDE_DIR)/$(header_file)) + SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) # ----------------------------------------------------------------------------- @@ -54,9 +65,4 @@ INSTALL_LIBS += $(patsubst %.a, %_imp.a, $(LIBRARY)) endif endif -# install header files for the I/O library. Other code might want to -# plug -override datadir:=$(libdir)/includes -INSTALL_DATAS += $(wildcard *.h) - include $(TOP)/mk/target.mk -- GitLab