(0 . 0)(1 . 24)
7614 PROGRAM = test_mpi
7615
7616 CXX = gcc
7617 OBJECTS := $(patsubst %.c,%.o,$(wildcard *.c))
7618 FLAGS = -g -Wall
7619 INCLUDE = -I ../include
7620 MPI = ../bin/mpi.a
7621 LIBS := $(MPI)
7622
7623 .SUFFIXES: .o .c
7624
7625 .c.o:
7626 $(CXX) $(FLAGS) $(INCLUDE) -c $< -o $@
7627
7628 all: $(PROGRAM)
7629
7630 $(PROGRAM): $(OBJECTS)
7631 $(CXX) $(FLAGS) $(INCLUDE) -o $(PROGRAM) $(OBJECTS) $(LIBS)
7632
7633 clean :
7634 rm -rf nul core *flymake* *.o $(PROGRAM) *~ bin obj
7635
7636 check-syntax:
7637 $(CXX) -c $(FLAGS) $(INCLUDE) -o nul -Wall -S $(CHK_SOURCES)