(0 . 0)(1 . 26)
685 PROGRAM = mpi.a
686
687 BUILD=obj
688 DIST=bin
689
690 CXX = gcc
691 OBJECTS = $(addprefix $(BUILD)/, $(patsubst %.c,%.o,$(wildcard *.c)))
692 FLAGS = -g -Wall
693 INCLUDE = -I include
694
695 .SUFFIXES: .o .c
696
697 $(BUILD)/%.o:
698 $(CXX) $(FLAGS) $(INCLUDE) -c $*.c -o $@
699
700 all: $(PROGRAM)
701
702 $(PROGRAM): $(OBJECTS)
703 ar rcs $(DIST)/$(PROGRAM) $(OBJECTS)
704 #ld -o $(DIST)/$(PROGRAM).o $(OBJECTS) -lc
705
706 clean :
707 rm -rf nul core *flymake* $(BUILD)/*.o $(DIST)/$(PROGRAM) *~ bin/*
708
709 check-syntax:
710 $(CXX) -c $(FLAGS) $(INCLUDE) -o nul -Wall -S $(CHK_SOURCES)