Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bldtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
autoreconf -i
./configure CFLAGS="-Wall -Werror -Wno-format"
make
make check
make tests
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
*.mod
Makefile.conf
config.h
diff_version.sh

config.log
config.status
90 changes: 90 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
SHELL = /bin/sh
###############################
include Makefile.conf

VPATH=$(SRCDIR)/mpi-serial
# SOURCE FILES

MODULE = mpi-serial

SRCS_F90 = fort.F90 \
mpif.F90

SRCS_C = mpi.c \
send.c \
recv.c \
collective.c \
req.c \
list.c \
handles.c \
comm.c \
error.c \
ic_merge.c \
group.c \
time.c \
pack.c \
type.c \
type_const.c \
copy.c \
op.c \
cart.c \
getcount.c \
probe.c \
info.c


OBJS_ALL = $(SRCS_C:.c=.o) \
$(SRCS_F90:.F90=.o)


INCPATH:= -I .


###############################

# TARGETS

default: lib$(MODULE).a


fort.o: mpif.h


lib$(MODULE).a: $(OBJS_ALL)
echo $(OBJS_ALL)
$(RM) $@
$(AR) $@ $(OBJS_ALL)
$(RANLIB) $@


LIB = lib$(MODULE).a


###############################
#RULES

.SUFFIXES:
.SUFFIXES: .F90 .c .o

.c.o:
$(CC) -c $(INCPATH) $(DEFS) $(CPPDEFS) $(CFLAGS) $<

.F90.o:
$(FC) -c $(INCFLAG) . $(INCPATH) $(DEFS) $(FPPDEFS) $(FCFLAGS) $(MPEUFLAGS) $<

MYF90FLAGS=$(INCPATH) $(DEFS) $(FCFLAGS) $(MPEUFLAGS)

.PHONY: clean tests install

clean:
/bin/rm -f *.o ctest ftest $(LIB) mpi.mod config.log config.status
cd tests ; $(MAKE) clean

tests: lib$(MODULE).a
cd tests; make

install: lib$(MODULE).a
$(MKINSTALLDIRS) $(libdir) $(includedir)
$(INSTALL) lib$(MODULE).a -m 644 $(libdir)
$(INSTALL) mpi.h -m 644 $(includedir)
$(INSTALL) mpif.h -m 644 $(includedir)
8 changes: 0 additions & 8 deletions Makefile.am

This file was deleted.

16 changes: 16 additions & 0 deletions Makefile.conf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CC = @CC@
FC = @FC@
FCFLAGS = @FCFLAGS@
INCLUDE = -I.
INCFLAG = @INCLUDEFLAG@
DEFS = @DEFS@
CFLAGS = @CFLAGS@
AR = @AR@
RANLIB = @RANLIB@
LIBS = @LIBS@
CRULE = .c.o
F90RULE = .F90.o

SHELL = /bin/sh

MODULE = mpi-serial
Loading