[project @ 2004-01-09 12:36:54 by simonmar]
[ghc-hetmet.git] / ghc / includes / Makefile
index 132c07c..11e4e1b 100644 (file)
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.20 2002/03/02 17:49:42 sof Exp $
+# $Id: Makefile,v 1.22 2003/09/04 09:56:16 simonmar Exp $
 #
 
 TOP = ..
@@ -43,22 +43,26 @@ $(H_CONFIG) :
        @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 "#define TargetPlatform_TYPE $(TargetPlatform_CPP)" >> $@
+       @echo "#define BuildPlatform_TYPE  $(BuildPlatform_CPP)" >> $@
        @echo >> $@
        @echo "#define $(HostPlatform_CPP)_HOST         1" >> $@
-       @echo "#define $(HostPlatform_CPP)_TARGET       1" >> $@
-       @echo "#define $(HostPlatform_CPP)_BUILD        1" >> $@
+       @echo "#define $(TargetPlatform_CPP)_TARGET     1" >> $@
+       @echo "#define $(BuildPlatform_CPP)_BUILD       1" >> $@
        @echo >> $@
        @echo "#define $(HostArch_CPP)_HOST_ARCH        1" >> $@
-       @echo "#define $(HostArch_CPP)_TARGET_ARCH      1" >> $@
-       @echo "#define $(HostArch_CPP)_BUILD_ARCH       1" >> $@
+       @echo "#define $(TargetArch_CPP)_TARGET_ARCH    1" >> $@
+       @echo "#define $(BuildArch_CPP)_BUILD_ARCH      1" >> $@
        @echo "#define HOST_ARCH                        \"$(HostArch_CPP)\"" >> $@
+       @echo "#define TARGET_ARCH                      \"$(TargetArch_CPP)\"" >> $@
+       @echo "#define BUILD_ARCH                       \"$(BuildArch_CPP)\"" >> $@
        @echo >> $@
        @echo "#define $(HostOS_CPP)_HOST_OS            1" >> $@
-       @echo "#define $(HostOS_CPP)_TARGET_OS          1" >> $@  
-       @echo "#define $(HostOS_CPP)_BUILD_OS           1" >> $@
+       @echo "#define $(TargetOS_CPP)_TARGET_OS        1" >> $@  
+       @echo "#define $(BuildOS_CPP)_BUILD_OS          1" >> $@
        @echo "#define HOST_OS                          \"$(HostOS_CPP)\"" >> $@
+       @echo "#define TARGET_OS                        \"$(TargetOS_CPP)\"" >> $@
+       @echo "#define BUILD_OS                         \"$(BuildOS_CPP)\"" >> $@
 ifeq "$(HostOS_CPP)" "irix"
        @echo "#ifndef $(IRIX_MAJOR)_TARGET_OS           " >> $@  
        @echo "#define $(IRIX_MAJOR)_TARGET_OS          1" >> $@  
@@ -66,8 +70,8 @@ ifeq "$(HostOS_CPP)" "irix"
 endif
        @echo >> $@
        @echo "#define $(HostVendor_CPP)_HOST_VENDOR    1" >> $@
-       @echo "#define $(HostVendor_CPP)_TARGET_VENDOR  1" >> $@
-       @echo "#define $(HostVendor_CPP)_BUILD_VENDOR   1" >> $@
+       @echo "#define $(TargetVendor_CPP)_TARGET_VENDOR  1" >> $@
+       @echo "#define $(BuildVendor_CPP)_BUILD_VENDOR  1" >> $@
        @cat $(FPTOOLS_TOP)/mk/$@ >> $@
        @echo "#endif /* __FPTOOLS_CONFIG_H__ */"          >> $@
        @echo "Done."
@@ -85,7 +89,7 @@ mkDerivedConstantsHdr : mkDerivedConstants.o
 DerivedConstants.h : mkDerivedConstantsHdr
        ./mkDerivedConstantsHdr >DerivedConstants.h
 
-CLEAN_FILES += mkDerivedConstantsHdr DerivedConstants.h
+CLEAN_FILES += mkDerivedConstantsHdr$(exeext) DerivedConstants.h
 
 # ---------------------------------------------------------------------------
 # Make NativeDefs.h for the NCG
@@ -100,7 +104,7 @@ mkNativeHdr : mkNativeHdr.o
 NativeDefs.h : mkNativeHdr
        ./mkNativeHdr >NativeDefs.h
 
-CLEAN_FILES += mkNativeHdr NativeDefs.h
+CLEAN_FILES += mkNativeHdr$(exeext) NativeDefs.h
 
 # ---------------------------------------------------------------------------
 # boot setup: