diff --git a/src/STUBS/Makefile.mingw32-cross b/src/STUBS/Makefile.mingw32-cross new file mode 100644 index 0000000000..8bc6d62135 --- /dev/null +++ b/src/STUBS/Makefile.mingw32-cross @@ -0,0 +1,37 @@ +# Makefile for MPI stubs - edit this for your platform + +SHELL = /bin/sh +.IGNORE: + +# Files + +SRC = mpi.c +INC = mpi.h + +# Definitions + +EXE = libmpi_mingw32.a +OBJ = $(SRC:%.c=%_mingw32.o) + +# System-specific settings + +CC = i686-w64-mingw32-gcc +CCFLAGS = -O2 -Wall -march=i686 -mtune=generic -mfpmath=387 -mpc64 +ARCHIVE = i686-w64-mingw32-ar +ARCHFLAG = rs + +# Target + +$(EXE): $(OBJ) + $(ARCHIVE) $(ARCHFLAG) $(EXE) $(OBJ) + +# Clean + +clean: + rm $(EXE) $(OBJ) + +# Compilation rules + +$(OBJ): $(SRC) $(INC) + $(CC) $(CCFLAGS) -c $< -o $@ + diff --git a/src/STUBS/Makefile.mingw64-cross b/src/STUBS/Makefile.mingw64-cross new file mode 100644 index 0000000000..2ef8d7fd6e --- /dev/null +++ b/src/STUBS/Makefile.mingw64-cross @@ -0,0 +1,37 @@ +# Makefile for MPI stubs - edit this for your platform + +SHELL = /bin/sh +.IGNORE: + +# Files + +SRC = mpi.c +INC = mpi.h + +# Definitions + +EXE = libmpi_mingw64.a +OBJ = $(SRC:%.c=%_mingw64.o) + +# System-specific settings + +CC = x86_64-w64-mingw32-gcc +CCFLAGS = -O2 -Wall -march=core2 -mtune=core2 -msse2 -mpc64 +ARCHIVE = x86_64-w64-mingw32-ar +ARCHFLAG = rs + +# Target + +$(EXE): $(OBJ) + $(ARCHIVE) $(ARCHFLAG) $(EXE) $(OBJ) + +# Clean + +clean: + rm $(EXE) $(OBJ) + +# Compilation rules + +$(OBJ): $(SRC) $(INC) + $(CC) $(CCFLAGS) -c $< -o $@ +