raw
ch2_truerandom          1 PROGRAM = tests
ch2_truerandom 2
ch2_truerandom 3 CXX = gcc
ch2_truerandom 4 OBJECTS := $(patsubst %.c,%.o,$(wildcard *.c))
ch2_truerandom 5 FLAGS = -g -Wall
ch2_truerandom 6 INCLUDE = -I ../include -I ../../mpi/include
ch2_truerandom 7 SMG_RSA = ../bin/smg_rsa.a
ch2_truerandom 8 MPI = ../../mpi/bin/mpi.a
ch2_truerandom 9 LIBS := $(SMG_RSA) $(MPI)
ch2_truerandom 10
ch2_truerandom 11 .SUFFIXES: .o .c
ch2_truerandom 12
ch2_truerandom 13 .c.o:
ch2_truerandom 14 $(CXX) $(FLAGS) $(INCLUDE) -c $< -o $@
ch2_truerandom 15
ch2_truerandom 16 all: $(PROGRAM)
ch2_truerandom 17
ch2_truerandom 18 $(PROGRAM): $(OBJECTS)
ch2_truerandom 19 $(CXX) $(FLAGS) $(INCLUDE) -o $(PROGRAM) $(OBJECTS) $(LIBS)
ch2_truerandom 20
ch2_truerandom 21 clean :
ch2_truerandom 22 rm -rf nul core *flymake* *.o $(PROGRAM) *~ bin obj
ch2_truerandom 23
ch2_truerandom 24 check-syntax:
ch2_truerandom 25 $(CXX) -c $(FLAGS) $(INCLUDE) -o nul -Wall -S $(CHK_SOURCES)