e7c5342479
- In my MSYS environment, gcc/g++ are the MinGW compilers that target Win32. We really need compilers that target the MSYS environment. Add a config-unix.mk for building the unix-adapter. - My MSYS environment lacks a pipe2 function, but I can get the same effect using pipe and fcntl, so do that instead.
14 lines
323 B
Makefile
14 lines
323 B
Makefile
UNAME_S = $(shell uname -s)
|
|
|
|
ifneq (,$(findstring MINGW,$(UNAME_S)))
|
|
# MSYS/MINGW environment
|
|
CC = i686-pc-msys-gcc
|
|
CXX = i686-pc-msys-g++
|
|
else ifneq (,$(findstring CYGWIN,$(UNAME_S)))
|
|
# Cygwin environment
|
|
CC = gcc
|
|
CXX = g++
|
|
else
|
|
$(error Could not detect CYGWIN or MSYS/MINGW environment)
|
|
endif
|