(0 . 0)(1 . 25)
123 PROGRAM = tests
124
125 CXX = gcc
126 OBJECTS := $(patsubst %.c,%.o,$(wildcard *.c))
127 FLAGS = -g -Wall
128 INCLUDE = -I ../include -I ../../mpi/include
129 SMG_RSA = ../bin/smg_rsa.a
130 MPI = ../../mpi/bin/mpi.a
131 LIBS := $(SMG_RSA) $(MPI)
132
133 .SUFFIXES: .o .c
134
135 .c.o:
136 $(CXX) $(FLAGS) $(INCLUDE) -c $< -o $@
137
138 all: $(PROGRAM)
139
140 $(PROGRAM): $(OBJECTS)
141 $(CXX) $(FLAGS) $(INCLUDE) -o $(PROGRAM) $(OBJECTS) $(LIBS)
142
143 clean :
144 rm -rf nul core *flymake* *.o $(PROGRAM) *~ bin obj
145
146 check-syntax:
147 $(CXX) -c $(FLAGS) $(INCLUDE) -o nul -Wall -S $(CHK_SOURCES)