cournape / cross-mingw-w64
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
c3572bd
David Cournapeau (author)
Fri Apr 24 03:13:33 -0700 2009
cross-mingw-w64 / Makefile.mingw32
| d253b393 » | cournape | 2008-12-08 | 1 | ROOT_DIR = $(PWD) | |
| 9ee9b009 » | Cournapeau David | 2008-12-15 | 2 | ARCHIVE_DIR = $(ROOT_DIR)/archives | |
| d253b393 » | cournape | 2008-12-08 | 3 | BUILD_DIR = $(ROOT_DIR)/build | |
| 4 | INSTALL_DIR = $(ROOT_DIR)/install | ||||
| 5 | |||||
| 6 | TARGET = i586-mingw32msvc | ||||
| 7 | |||||
| 1c040038 » | cournape | 2009-02-27 | 8 | BINUTILS_SRC = $(ARCHIVE_DIR)/binutils-2.19 | |
| 9 | BINUTILS_BLD = $(BUILD_DIR)/binutils-2.19 | ||||
| d253b393 » | cournape | 2008-12-08 | 10 | ||
| 1c040038 » | cournape | 2009-02-27 | 11 | MINGW32_SRC = $(ARCHIVE_DIR)/mingwrt-3.15.2-mingw32 | |
| 12 | MINGW32_BLD = $(BUILD_DIR)/mingwrt-3.15.2-mingw32 | ||||
| d253b393 » | cournape | 2008-12-08 | 13 | ||
| 1c040038 » | cournape | 2009-02-27 | 14 | W32API_SRC = $(ARCHIVE_DIR)/w32api-3.13-mingw32 | |
| 15 | W32API_BLD = $(BUILD_DIR)/w32api-3.13-mingw32 | ||||
| d253b393 » | cournape | 2008-12-08 | 16 | ||
| 1c040038 » | cournape | 2009-02-27 | 17 | GMP_SRC = $(ARCHIVE_DIR)/gmp-4.2.4 | |
| 18 | GMP_BLD = $(BUILD_DIR)/gmp-4.2.4 | ||||
| d253b393 » | cournape | 2008-12-08 | 19 | ||
| 1c040038 » | cournape | 2009-02-27 | 20 | MPFR_SRC = $(ARCHIVE_DIR)/mpfr-2.3.2 | |
| 21 | MPFR_BLD = $(BUILD_DIR)/mpfr-2.3.2 | ||||
| d253b393 » | cournape | 2008-12-08 | 22 | ||
| 23 | MAKE = make -j4 | ||||
| 24 | |||||
| 25 | GCC_CONFIGURE_OPTS = --with-gmp=$(HOME)/local --with-mpfr=$(HOME)/local \ | ||||
| 26 | --with-sysroot=$(INSTALL_DIR) --with-gnu-ld --with-gnu-as | ||||
| 27 | |||||
| 1c040038 » | cournape | 2009-02-27 | 28 | GCC_SRC = $(ARCHIVE_DIR)/gcc-4.3.3 | |
| 29 | GCC_BLD = $(BUILD_DIR)/gcc-4.3.3 | ||||
| d253b393 » | cournape | 2008-12-08 | 30 | ||
| 1c040038 » | cournape | 2009-02-27 | 31 | GCC_LANGUAGES = c,fortran,c++ | |
| d253b393 » | cournape | 2008-12-08 | 32 | ||
| 33 | export PATH:=$(INSTALL_DIR)/bin:$(PATH) | ||||
| 34 | |||||
| 35 | mpfr_install: mpfr_build $(MPFR_BLD)/install.done | ||||
| 36 | |||||
| 37 | $(MPFR_BLD)/install.done: | ||||
| 38 | (cd $(MPFR_BLD) && make install) | ||||
| 39 | touch $@ | ||||
| 40 | |||||
| 41 | mpfr_build: mpfr_configure $(MPFR_BLD)/build.done | ||||
| 42 | |||||
| 43 | $(MPFR_BLD)/build.done: | ||||
| 44 | (cd $(MPFR_BLD) && $(MAKE)) | ||||
| 45 | touch $@ | ||||
| 46 | |||||
| 47 | mpfr_configure: gmp_install $(MPFR_BLD)/configure.done | ||||
| 48 | |||||
| 49 | $(MPFR_BLD)/configure.done: | ||||
| 50 | mkdir -p $(MPFR_BLD) | ||||
| 51 | (cd $(MPFR_BLD) && $(MPFR_SRC)/configure \ | ||||
| 52 | --prefix=$(INSTALL_DIR)/$(TARGET) \ | ||||
| 53 | --host=$(TARGET) --with-gmp=$(INSTALL_DIR)/$(TARGET)) | ||||
| 54 | touch $@ | ||||
| 55 | |||||
| 56 | gmp_install: gmp_build $(GMP_BLD)/install.done | ||||
| 57 | |||||
| 58 | $(GMP_BLD)/install.done: | ||||
| 59 | (cd $(GMP_BLD) && make install) | ||||
| 60 | touch $@ | ||||
| 61 | |||||
| 62 | gmp_build: gmp_configure $(GMP_BLD)/build.done | ||||
| 63 | |||||
| 64 | $(GMP_BLD)/build.done: | ||||
| 65 | (cd $(GMP_BLD) && $(MAKE)) | ||||
| 66 | touch $@ | ||||
| 67 | |||||
| 1c040038 » | cournape | 2009-02-27 | 68 | gmp_configure: mingw32_install $(GMP_BLD)/configure.done | |
| d253b393 » | cournape | 2008-12-08 | 69 | ||
| 70 | $(GMP_BLD)/configure.done: | ||||
| 71 | mkdir -p $(GMP_BLD) | ||||
| 72 | (cd $(GMP_BLD) && $(GMP_SRC)/configure \ | ||||
| 73 | --prefix=$(INSTALL_DIR)/$(TARGET) \ | ||||
| 74 | --host=$(TARGET)) | ||||
| 75 | touch $@ | ||||
| 76 | |||||
| 77 | gcc_install: gcc_build $(GCC_BLD)/install.done | ||||
| 78 | |||||
| 79 | $(GCC_BLD)/install.done: | ||||
| 80 | (cd $(GCC_BLD) && make install) | ||||
| 81 | touch $@ | ||||
| 82 | |||||
| 1c040038 » | cournape | 2009-02-27 | 83 | #gcc_build: mingw32_install $(GCC_BLD)/configure.done | |
| 84 | gcc_build: w32api_install $(GCC_BLD)/build.done | ||||
| d253b393 » | cournape | 2008-12-08 | 85 | ||
| 86 | $(GCC_BLD)/build.done: | ||||
| 87 | (cd $(GCC_BLD) && $(MAKE)) | ||||
| 88 | touch $@ | ||||
| 89 | |||||
| 90 | mingw32_install: mingw32_build $(MINGW32_BLD)/install.done | ||||
| 91 | |||||
| 92 | $(MINGW32_BLD)/install.done: | ||||
| 93 | (cd $(MINGW32_BLD) && make install) | ||||
| 94 | touch $@ | ||||
| 95 | |||||
| 96 | mingw32_build: mingw32_configure $(MINGW32_BLD)/build.done | ||||
| 97 | |||||
| 98 | $(MINGW32_BLD)/build.done: | ||||
| 99 | (cd $(MINGW32_BLD) && $(MAKE)) | ||||
| 100 | touch $@ | ||||
| 101 | |||||
| 1c040038 » | cournape | 2009-02-27 | 102 | mingw32_configure: $(MINGW32_BLD)/configure.done | |
| d253b393 » | cournape | 2008-12-08 | 103 | ||
| 104 | $(MINGW32_BLD)/configure.done: | ||||
| 105 | mkdir -p $(MINGW32_BLD) | ||||
| 106 | (cd $(MINGW32_BLD) && $(MINGW32_SRC)/configure \ | ||||
| 107 | --prefix=$(INSTALL_DIR)/$(TARGET) \ | ||||
| 108 | --host=$(TARGET)) | ||||
| 109 | touch $@ | ||||
| 110 | |||||
| 111 | w32api_install: w32api_build $(W32API_BLD)/install.done | ||||
| 112 | |||||
| 113 | $(W32API_BLD)/install.done: | ||||
| 114 | (cd $(W32API_BLD) && make install) | ||||
| 115 | touch $@ | ||||
| 116 | |||||
| 117 | w32api_build: w32api_configure $(W32API_BLD)/build.done | ||||
| 118 | |||||
| 119 | $(W32API_BLD)/build.done: | ||||
| 120 | (cd $(W32API_BLD) && $(MAKE)) | ||||
| 121 | touch $@ | ||||
| 122 | |||||
| 123 | w32api_configure: gcc_bootstrap_install $(W32API_BLD)/configure.done | ||||
| 124 | |||||
| 125 | $(W32API_BLD)/configure.done: | ||||
| 126 | mkdir -p $(W32API_BLD) | ||||
| 127 | (cd $(W32API_BLD) && $(W32API_SRC)/configure \ | ||||
| 128 | --prefix=$(INSTALL_DIR) \ | ||||
| 129 | --host=$(TARGET)) | ||||
| 130 | touch $@ | ||||
| 131 | |||||
| 1c040038 » | cournape | 2009-02-27 | 132 | gcc_bootstrap_install: gcc_bootstrap_build $(GCC_BLD)/install.bootstrap.done | |
| d253b393 » | cournape | 2008-12-08 | 133 | ||
| 1c040038 » | cournape | 2009-02-27 | 134 | $(GCC_BLD)/install.bootstrap.done: | |
| 135 | (cd $(GCC_BLD) && make install-gcc) | ||||
| d253b393 » | cournape | 2008-12-08 | 136 | touch $@ | |
| 137 | |||||
| 1c040038 » | cournape | 2009-02-27 | 138 | gcc_bootstrap_build: gcc_bootstrap_configure $(GCC_BLD)/build.bootstrap.done | |
| d253b393 » | cournape | 2008-12-08 | 139 | ||
| 1c040038 » | cournape | 2009-02-27 | 140 | $(GCC_BLD)/build.bootstrap.done: | |
| 141 | (cd $(GCC_BLD) && $(MAKE) all-gcc) | ||||
| d253b393 » | cournape | 2008-12-08 | 142 | touch $@ | |
| 143 | |||||
| 1c040038 » | cournape | 2009-02-27 | 144 | gcc_bootstrap_configure: sysheader_install $(GCC_BLD)/configure.done | |
| d253b393 » | cournape | 2008-12-08 | 145 | ||
| 1c040038 » | cournape | 2009-02-27 | 146 | $(GCC_BLD)/configure.done: | |
| 147 | mkdir -p $(GCC_BLD) | ||||
| 148 | (cd $(GCC_BLD) && $(GCC_SRC)/configure \ | ||||
| 149 | --prefix=$(INSTALL_DIR) --target=$(TARGET) --enable-languages=$(GCC_LANGUAGES) \ | ||||
| 150 | $(GCC_CONFIGURE_OPTS)) | ||||
| d253b393 » | cournape | 2008-12-08 | 151 | touch $@ | |
| 152 | |||||
| 153 | sysheader_install: binutils $(BUILD_DIR)/sys.done | ||||
| 154 | |||||
| 155 | $(BUILD_DIR)/sys.done: | ||||
| 156 | mkdir -p $(INSTALL_DIR)/$(TARGET)/include | ||||
| 157 | cp -r $(MINGW32_SRC)/include/* $(INSTALL_DIR)/$(TARGET)/include | ||||
| 158 | cp -r $(W32API_SRC)/include/* $(INSTALL_DIR)/$(TARGET)/include | ||||
| 159 | ln -s $(INSTALL_DIR)/$(TARGET) $(INSTALL_DIR)/mingw | ||||
| 160 | touch $@ | ||||
| 161 | |||||
| 162 | binutils: binutils_install | ||||
| 163 | |||||
| 164 | binutils_install: binutils_build $(BINUTILS_BLD)/install.done | ||||
| 165 | |||||
| 166 | $(BINUTILS_BLD)/install.done: | ||||
| 167 | (cd $(BINUTILS_BLD) && make install) | ||||
| 168 | touch $@ | ||||
| 169 | |||||
| 170 | binutils_build: binutils_configure $(BINUTILS_BLD)/build.done | ||||
| 171 | |||||
| 172 | $(BINUTILS_BLD)/build.done: | ||||
| 173 | (cd $(BINUTILS_BLD) && $(MAKE)) | ||||
| 174 | touch $@ | ||||
| 175 | |||||
| 176 | binutils_configure: $(BINUTILS_BLD)/configure.done | ||||
| 177 | |||||
| 178 | $(BINUTILS_BLD)/configure.done: | ||||
| 179 | mkdir -p $(BINUTILS_BLD) | ||||
| 180 | (cd $(BINUTILS_BLD) && $(BINUTILS_SRC)/configure \ | ||||
| 181 | --prefix=$(INSTALL_DIR) --target=$(TARGET) \ | ||||
| 182 | --with-sysroot=$(INSTALL_DIR)/$(TARGET)) | ||||
| 183 | touch $@ | ||||
| 184 | |||||
| 185 | clean: | ||||
| 186 | rm -rf $(BUILD_DIR) | ||||
| 187 | rm -rf $(INSTALL_DIR) | ||||
