File indexing completed on 2024-12-15 05:10:27

0001 C_DIR := $(patsubst %/,%,$(realpath C:/))
0002 
0003 MINGW_DIR = $(C_DIR)/MinGW
0004 MINGW_BIN_DIR = $(MINGW_DIR)/bin
0005 MINGW_GET = $(MINGW_BIN_DIR)/mingw-get.exe
0006 
0007 MSYS_DIR = $(MINGW_DIR)/msys/1.0
0008 MSYS_BIN_DIR = $(MSYS_DIR)/bin
0009 
0010 PATH := $(MSYS_BIN_DIR):$(PATH)
0011 MAKE_BUILD_JOBS = 1
0012 
0013 # msysCORE-bin
0014 ERROR-MODE = $(MSYS_BIN_DIR)/error-mode.exe
0015 MSYSMNT = $(MSYS_BIN_DIR)/msysmnt.exe
0016 PS = $(MSYS_BIN_DIR)/ps.exe
0017 
0018 # msysCORE-ext
0019 CLS = $(MSYS_BIN_DIR)/cls
0020 CLSB = $(MSYS_BIN_DIR)/clsb
0021 CMD = $(MSYS_BIN_DIR)/cmd
0022 FTP = $(MSYS_BIN_DIR)/ftp
0023 LNKCNV = $(MSYS_BIN_DIR)/lnkcnv
0024 MOUNT = $(MSYS_BIN_DIR)/mount
0025 MSYSINFO = $(MSYS_BIN_DIR)/msysinfo
0026 START = $(MSYS_BIN_DIR)/start
0027 UMOUNT = $(MSYS_BIN_DIR)/umount
0028 WHICH = $(MSYS_BIN_DIR)/which
0029 
0030 # msys-awk-bin
0031 AWK = $(MSYS_BIN_DIR)/awk.exe
0032 GAWK = $(MSYS_BIN_DIR)/gawk.exe
0033 PGAWK = $(MSYS_BIN_DIR)/pgawk.exe
0034 
0035 # msys-bash-bin
0036 SH = $(MSYS_BIN_DIR)/sh.exe
0037 BASH = $(MSYS_BIN_DIR)/bash.exe
0038 
0039 # msys-bzip2-bin
0040 BUNZIP2 = $(MSYS_BIN_DIR)/bunzip2.exe
0041 BZCAT = $(MSYS_BIN_DIR)/bzcat.exe
0042 BZIP2 = $(MSYS_BIN_DIR)/bzip2.exe
0043 BZIP2RECOVER = $(MSYS_BIN_DIR)/bzip2recover.exe
0044 
0045 # msys-coreutils-bin
0046 BASENAME = $(MSYS_BIN_DIR)/basename.exe
0047 CAT = $(MSYS_BIN_DIR)/cat.exe
0048 CHMOD = $(MSYS_BIN_DIR)/chmod.exe
0049 CP = $(MSYS_BIN_DIR)/cp.exe
0050 CUT = $(MSYS_BIN_DIR)/cut.exe
0051 DATE = $(MSYS_BIN_DIR)/date.exe
0052 DIRNAME = $(MSYS_BIN_DIR)/dirname.exe
0053 ECHO = $(MSYS_BIN_DIR)/echo.exe
0054 ENV = $(MSYS_BIN_DIR)/env.exe
0055 EXPR = $(MSYS_BIN_DIR)/expr.exe
0056 FALSE = $(MSYS_BIN_DIR)/false.exe
0057 FOLD = $(MSYS_BIN_DIR)/fold.exe
0058 HEAD = $(MSYS_BIN_DIR)/head.exe
0059 ID = $(MSYS_BIN_DIR)/id.exe
0060 INSTALL = $(MSYS_BIN_DIR)/install.exe
0061 JOIN = $(MSYS_BIN_DIR)/join.exe
0062 LN = $(MSYS_BIN_DIR)/ln.exe
0063 LS = $(MSYS_BIN_DIR)/ls.exe
0064 MD5SUM = $(MSYS_BIN_DIR)/md5sum.exe
0065 MKDIR = $(MSYS_BIN_DIR)/mkdir.exe
0066 MV = $(MSYS_BIN_DIR)/mv.exe
0067 PASTE = $(MSYS_BIN_DIR)/paste.exe
0068 PRINTF = $(MSYS_BIN_DIR)/printf.exe
0069 PWD = $(MSYS_BIN_DIR)/pwd.exe
0070 RM = $(MSYS_BIN_DIR)/rm.exe
0071 RMDIR = $(MSYS_BIN_DIR)/rmdir.exe
0072 SLEEP = $(MSYS_BIN_DIR)/sleep.exe
0073 SORT = $(MSYS_BIN_DIR)/sort.exe
0074 SPLIT = $(MSYS_BIN_DIR)/split.exe
0075 STTY = $(MSYS_BIN_DIR)/stty.exe
0076 TAIL = $(MSYS_BIN_DIR)/tail.exe
0077 TEE = $(MSYS_BIN_DIR)/tee.exe
0078 TOUCH = $(MSYS_BIN_DIR)/touch.exe
0079 TR = $(MSYS_BIN_DIR)/tr.exe
0080 TRUE = $(MSYS_BIN_DIR)/true.exe
0081 UNAME = $(MSYS_BIN_DIR)/uname.exe
0082 UNIQ = $(MSYS_BIN_DIR)/uniq.exe
0083 WC = $(MSYS_BIN_DIR)/wc.exe
0084 
0085 # msys-coreutils-ext
0086 [ = $(MSYS_BIN_DIR)/[.exe
0087 CHGRP = $(MSYS_BIN_DIR)/chgrp.exe
0088 CHOWN = $(MSYS_BIN_DIR)/chown.exe
0089 CHROOT = $(MSYS_BIN_DIR)/chroot.exe
0090 CKSUM = $(MSYS_BIN_DIR)/cksum.exe
0091 CSPLIT = $(MSYS_BIN_DIR)/csplit.exe
0092 DD = $(MSYS_BIN_DIR)/dd.exe
0093 DF = $(MSYS_BIN_DIR)/df.exe
0094 DIR = $(MSYS_BIN_DIR)/dir.exe
0095 DIRCOLORS = $(MSYS_BIN_DIR)/dircolors.exe
0096 DU = $(MSYS_BIN_DIR)/du.exe
0097 EXPAND = $(MSYS_BIN_DIR)/expand.exe
0098 FACTOR = $(MSYS_BIN_DIR)/factor.exe
0099 FMT = $(MSYS_BIN_DIR)/fmt.exe
0100 GROUPS = $(MSYS_BIN_DIR)/groups
0101 HOSTNAME = $(MSYS_BIN_DIR)/hostname.exe
0102 KILL = $(MSYS_BIN_DIR)/kill.exe
0103 LINK = $(MSYS_BIN_DIR)/link.exe
0104 LOGNAME = $(MSYS_BIN_DIR)/logname.exe
0105 MKFIFO = $(MSYS_BIN_DIR)/mkfifo.exe
0106 MKNOD = $(MSYS_BIN_DIR)/mknod.exe
0107 NICE = $(MSYS_BIN_DIR)/nice.exe
0108 NL = $(MSYS_BIN_DIR)/nl.exe
0109 NOHUP = $(MSYS_BIN_DIR)/nohup.exe
0110 PATHCHK = $(MSYS_BIN_DIR)/pathchk.exe
0111 PINKY = $(MSYS_BIN_DIR)/pinky.exe
0112 PR = $(MSYS_BIN_DIR)/pr.exe
0113 PRINTENV = $(MSYS_BIN_DIR)/printenv.exe
0114 PTX = $(MSYS_BIN_DIR)/ptx.exe
0115 READLINK = $(MSYS_BIN_DIR)/readlink.exe
0116 SEQ = $(MSYS_BIN_DIR)/seq.exe
0117 SHA1SUM = $(MSYS_BIN_DIR)/sha1sum.exe
0118 SHRED = $(MSYS_BIN_DIR)/shred.exe
0119 STAT = $(MSYS_BIN_DIR)/stat.exe
0120 SU = $(MSYS_BIN_DIR)/su.exe
0121 SUM = $(MSYS_BIN_DIR)/sum.exe
0122 SYNC = $(MSYS_BIN_DIR)/sync.exe
0123 TAC = $(MSYS_BIN_DIR)/tac.exe
0124 TEST = $(MSYS_BIN_DIR)/test.exe
0125 TSORT = $(MSYS_BIN_DIR)/tsort.exe
0126 TTY = $(MSYS_BIN_DIR)/tty.exe
0127 UNEXPAND = $(MSYS_BIN_DIR)/unexpand.exe
0128 UNLINK = $(MSYS_BIN_DIR)/unlink.exe
0129 USERS = $(MSYS_BIN_DIR)/users.exe
0130 VDIR = $(MSYS_BIN_DIR)/vdir.exe
0131 WHO = $(MSYS_BIN_DIR)/who.exe
0132 WHOAMI = $(MSYS_BIN_DIR)/whoami.exe
0133 YES = $(MSYS_BIN_DIR)/yes.exe
0134 
0135 # msys-diffutils-bin
0136 CMP = $(MSYS_BIN_DIR)/cmp.exe
0137 DIFF = $(MSYS_BIN_DIR)/diff.exe
0138 DIFF3 = $(MSYS_BIN_DIR)/diff3.exe
0139 SDIFF = $(MSYS_BIN_DIR)/sdiff.exe
0140 
0141 # msys-file-bin
0142 FILE = $(MSYS_BIN_DIR)/file.exe
0143 
0144 # msys-findutils-bin
0145 FIND = $(MSYS_BIN_DIR)/find.exe
0146 OLDFIND  = $(MSYS_BIN_DIR)/oldfind.exe
0147 XARGS = $(MSYS_BIN_DIR)/xargs.exe
0148 
0149 # msys-gzip-bin
0150 GZIP = $(MSYS_BIN_DIR)/gzip.exe
0151 
0152 # msys-grep-bin
0153 EGREP = $(MSYS_BIN_DIR)/egrep.exe
0154 FGREP = $(MSYS_BIN_DIR)/fgrep.exe
0155 GREP = $(MSYS_BIN_DIR)/grep.exe
0156 
0157 # msys-groff
0158 EQN = $(MSYS_BIN_DIR)/eqn.exe
0159 GROFF = $(MSYS_BIN_DIR)/groff.exe
0160 GROPS = $(MSYS_BIN_DIR)/grops.exe
0161 GROTTY = $(MSYS_BIN_DIR)/grotty.exe
0162 PIC = $(MSYS_BIN_DIR)/pic.exe
0163 PRECONV = $(MSYS_BIN_DIR)/preconv.exe
0164 SOELIM = $(MSYS_BIN_DIR)/soelim.exe
0165 TBL = $(MSYS_BIN_DIR)/tbl.exe
0166 TROFF = $(MSYS_BIN_DIR)/troff.exe
0167 
0168 # msys-less-bin
0169 LESS = $(MSYS_BIN_DIR)/less.exe
0170 LESSECHO = $(MSYS_BIN_DIR)/lessecho.exe
0171 LESSKEY = $(MSYS_BIN_DIR)/lesskey.exe
0172 
0173 # msys-make-bin
0174 MAKE = $(MSYS_BIN_DIR)/make.exe
0175 
0176 # msys-patch-bin
0177 PATCH = $(MSYS_BIN_DIR)/patch.exe
0178 
0179 # msys-perl-bin
0180 A2P = $(MSYS_BIN_DIR)/a2p.exe
0181 PERL = $(MSYS_BIN_DIR)/perl.exe
0182 
0183 # msys-sed-bin
0184 SED = $(MSYS_BIN_DIR)/sed.exe
0185 
0186 # msys-tar-bin
0187 TAR = $(MSYS_BIN_DIR)/tar.exe
0188 
0189 # msys-wget-bin
0190 WGET = $(MSYS_BIN_DIR)/wget.exe
0191 
0192 # msys-xz-bin
0193 LZCAT = $(MSYS_BIN_DIR)/lzcat.exe
0194 LZMA = $(MSYS_BIN_DIR)/lzma.exe
0195 LZMADEC = $(MSYS_BIN_DIR)/lzmadec.exe
0196 LZMAINFO = $(MSYS_BIN_DIR)/lzmainfo.exe
0197 UNLZMA = $(MSYS_BIN_DIR)/unlzma.exe
0198 UNXZ = $(MSYS_BIN_DIR)/unxz.exe
0199 XZ = $(MSYS_BIN_DIR)/xz.exe
0200 XZCAT = $(MSYS_BIN_DIR)/xzcat.exe
0201 XZDEC = $(MSYS_BIN_DIR)/xzdec.exe
0202 
0203 
0204 # Makefile.user may override variables defined elsewhere.
0205 -include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))Makefile.user 
0206 
0207 
0208 .PHONY: msys-awk-bin msys-bash-bin msys-bzip2-bin msys-coreutils-bin \
0209 msys-coreutils-ext msys-diffutils-bin msys-file-bin msys-findutils-bin \
0210 msys-grep-bin msys-groff-bin msys-gzip-bin msys-less-bin msys-make-bin \
0211 msys-patch-bin msys-perl-bin msys-sed-bin msys-tar-bin msys-wget-bin \
0212 msys-xz-bin msysCORE-bin \
0213 doublequotes_bug_check
0214 
0215 $(MINGW_GET):
0216         $(info --------------------------------------------------------------------------------)
0217         $(info Program 'mingw-get' not found!)
0218         $(info Download it from: https://sourceforge.net/projects/mingw/files/latest/download.)
0219         $(info If 'mingw-get' is installed in custom location, then override MINGW_DIR variable.)
0220         $(info MINGW_DIR = "$(MINGW_DIR)")
0221         $(error MINGW_GET = $(MINGW_GET) not found)
0222 
0223 msys-awk-bin $(AWK) $(GAWK) $(PGAWK): | $(MINGW_GET)
0224         $(MINGW_GET) install msys-awk-bin
0225 
0226 msys-bash-bin $(SH) $(BASH): | $(MINGW_GET)
0227         $(MINGW_GET) install msys-bash-bin
0228 
0229 msys-bzip2-bin $(BUNZIP2) $(BZCAT) $(BZIP2) $(BZIP2RECOVER): | $(MINGW_GET)
0230         $(MINGW_GET) install msys-bzip2-bin
0231 
0232 msys-coreutils-bin $(BASENAME) $(CAT) $(CHMOD) $(CP) $(CUT) $(DATE) $(DIRNAME) \
0233 $(ECHO) $(ENV) $(EXPR) $(FALSE) $(FOLD) $(HEAD) $(ID) $(INSTALL) $(JOIN) $(LN) \
0234 $(LS) $(MD5SUM) $(MKDIR) $(MV) $(PASTE) $(PRINTF) $(PWD) $(RM) $(RMDIR) \
0235 $(SLEEP) $(SORT) $(SPLIT) $(STTY) $(TAIL) $(TEE) $(TOUCH) $(TR) $(TRUE) \
0236 $(UNAME) $(UNIQ) $(WC): | $(MINGW_GET)
0237         $(MINGW_GET) install msys-coreutils-bin
0238 
0239 msys-coreutils-ext $([) $(CHGRP) $(CHOWN) $(CHROOT) $(CKSUM) $(CSPLIT) $(DD) \
0240 $(DF) $(DIR) $(DIRCOLORS) $(DU) $(EXPAND) $(FACTOR) $(FMT) $(GROUPS) \
0241 $(HOSTNAME) $(KILL) $(LINK) $(LOGNAME) $(MKFIFO) $(MKNOD) $(NICE) $(NL) \
0242 $(NOHUP) $(PATHCHK) $(PINKY) $(PR) $(PRINTENV) $(PTX) $(READLINK) $(SEQ) \
0243 $(SHA1SUM) $(SHRED) $(STAT) $(SU) $(SUM) $(SYNC) $(TAC) $(TEST) $(TSORT) \
0244 $(TTY) $(UNEXPAND) $(UNLINK) $(USERS) $(VDIR) $(WHO) $(WHOAMI) $(YES): | $(MINGW_GET)
0245         $(MINGW_GET) install msys-coreutils-ext
0246 
0247 msys-diffutils-bin $(CMP) $(DIFF) $(DIFF3) $(SDIFF): | $(MINGW_GET)
0248         $(MINGW_GET) install msys-diffutils-bin
0249 
0250 msys-file-bin $(FILE): | $(MINGW_GET)
0251         $(MINGW_GET) install msys-file-bin
0252 
0253 msys-findutils-bin $(FIND) $(OLDFIND) $(XARGS): | $(MINGW_GET)
0254         $(MINGW_GET) install msys-findutils-bin
0255 
0256 msys-grep-bin $(EGREP) $(FGREP) $(GREP): | $(MINGW_GET)
0257         $(MINGW_GET) install msys-grep-bin
0258 
0259 msys-groff-bin $(EQN) $(GROFF) $(GROPS) $(GROTTY) $(PIC) $(PRECONV) $(SOELIM) \
0260 $(TBL) $(TROFF): | $(MINGW_GET)
0261         $(MINGW_GET) install msys-groff-bin
0262 
0263 msys-gzip-bin $(GZIP): | $(MINGW_GET)
0264         $(MINGW_GET) install msys-gzip-bin
0265 
0266 msys-less-bin $(LESS) $(LESSECHO) $(LESSKEY): | $(MINGW_GET)
0267         $(MINGW_GET) install msys-less-bin
0268         
0269 msys-make-bin $(MAKE): | $(MINGW_GET)
0270         $(MINGW_GET) install msys-make-bin
0271 
0272 msys-patch-bin $(PATCH): | $(MINGW_GET)
0273         $(MINGW_GET) install msys-patch-bin
0274 
0275 msys-perl-bin $(A2P) $(PERL): | $(MINGW_GET)
0276         $(MINGW_GET) install msys-perl-bin
0277 
0278 msys-sed-bin $(SED): | $(MINGW_GET)
0279         $(MINGW_GET) install msys-sed-bin
0280 
0281 msys-tar-bin $(TAR): | $(MINGW_GET)
0282         $(MINGW_GET) install msys-tar-bin
0283 
0284 msys-wget-bin $(WGET): | $(MINGW_GET)
0285         $(MINGW_GET) install msys-wget-bin
0286 
0287 msys-xz-bin $(LZCAT) $(LZMA) $(LZMADEC) $(LZMAINFO) $(UNLZMA) $(UNXZ) $(XZ) \
0288 $(XZCAT) $(XZDEC): | $(MINGW_GET)
0289         $(MINGW_GET) install msys-xz-bin
0290 
0291 msysCORE-bin $(ERROR-MODE) $(MSYSMNT) $(PS): | $(MINGW_GET)
0292         $(MINGW_GET) install msysCORE-bin
0293 
0294 msysCORE-ext $(CLS) $(CLSB) $(CMD) $(FTP) $(LNKCNV) $(MOUNT) $(MSYSINFO) \
0295 $(START) $(UMOUNT) $(WHICH): | $(MINGW_GET)
0296         $(MINGW_GET) install msysCORE-ext
0297 
0298 doublequotes_bug_check: | $(ECHO)
0299 ifeq ($(shell $(ECHO) \"),\)
0300         $(info $(shell $(MAKE) --version) does not handle \" properly, which may cause build problems.)
0301         $(error Please use MSYS version of Make, which can be installed by 'msys-make-bin' target)
0302 endif
0303