From 22584fda405fbf88eed7132d372ce2b404a96329 Mon Sep 17 00:00:00 2001 From: sof Date: Wed, 21 Nov 2001 16:56:19 +0000 Subject: [PATCH] [project @ 2001-11-21 16:56:19 by sof] #ifdef protect generated config.h file. --- ghc/includes/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ghc/includes/Makefile b/ghc/includes/Makefile index c6d7309..a6374e2 100644 --- a/ghc/includes/Makefile +++ b/ghc/includes/Makefile @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.17 2001/10/19 18:33:11 qrczak Exp $ +# $Id: Makefile,v 1.18 2001/11/21 16:56:19 sof Exp $ # TOP = .. @@ -32,7 +32,10 @@ $(H_CONFIG) : $(FPTOOLS_TOP)/mk/config.h $(FPTOOLS_TOP)/mk/config.mk $(H_CONFIG) : @echo "Creating $@..." @$(RM) $@ - @echo "#define HostPlatform_TYPE $(HostPlatform_CPP)" > $@ + @echo "#ifndef __FPTOOLS_CONFIG_H__" >$@ + @echo "#define __FPTOOLS_CONFIG_H__" >>$@ + @echo >> $@ + @echo "#define HostPlatform_TYPE $(HostPlatform_CPP)" >> $@ @echo "#define TargetPlatform_TYPE $(HostPlatform_CPP)" >> $@ @echo "#define BuildPlatform_TYPE $(HostPlatform_CPP)" >> $@ @echo >> $@ @@ -59,6 +62,7 @@ endif @echo "#define $(HostVendor_CPP)_TARGET_VENDOR 1" >> $@ @echo "#define $(HostVendor_CPP)_BUILD_VENDOR 1" >> $@ @cat $(FPTOOLS_TOP)/mk/$@ >> $@ + @echo "#endif /* __FPTOOLS_CONFIG_H__ */" >> $@ @echo "Done." # --------------------------------------------------------------------------- -- 1.7.10.4