Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > 93684f073f0b5b647ce86776c3d7f1bd > files > 14

otf2-1.4-2.fc20.x86_64.rpm

## -*- mode: makefile -*-

##
## This file is part of the Score-P software (http://www.score-p.org)
##
## Copyright (c) 2014,
## Technische Universitaet Dresden, Germany
##
## This software may be modified and distributed under the terms of
## a BSD-style license.  See the COPYING file in the package base
## directory for details.
##

ALL = \
    otf2_reader_example \
    otf2_writer_example

ALL_MPI = \
    otf2_mpi_reader_example \
    otf2_mpi_reader_example_cc \
    otf2_mpi_writer_example

all: $(ALL)

mpi: $(ALL_MPI)

otf2_reader_example.o: otf2_reader_example.c
	gcc -std=c99 `otf2-config --cflags` \
            -c otf2_reader_example.c \
            -o otf2_reader_example.o

otf2_reader_example: otf2_reader_example.o
	gcc otf2_reader_example.o \
            `otf2-config --ldflags` \
            `otf2-config --libs` \
            -o otf2_reader_example

otf2_writer_example.o: otf2_writer_example.c
	gcc -std=c99 `otf2-config --cflags` \
            -c otf2_writer_example.c \
            -o otf2_writer_example.o

otf2_writer_example: otf2_writer_example.o
	gcc otf2_writer_example.o \
            `otf2-config --ldflags` \
            `otf2-config --libs` \
            -o otf2_writer_example

otf2_mpi_reader_example.o: otf2_mpi_reader_example.c
	mpicc -std=c99 `otf2-config --cflags` \
            -c otf2_mpi_reader_example.c \
            -o otf2_mpi_reader_example.o

otf2_mpi_reader_example: otf2_mpi_reader_example.o
	mpicc otf2_mpi_reader_example.o \
            `otf2-config --ldflags` \
            `otf2-config --libs` \
            -o otf2_mpi_reader_example

otf2_mpi_reader_example_cc.o: otf2_mpi_reader_example.cc
	mpic++ `otf2-config --cflags` \
            -c otf2_mpi_reader_example.cc \
            -o otf2_mpi_reader_example_cc.o

otf2_mpi_reader_example_cc: otf2_mpi_reader_example_cc.o
	mpic++ otf2_mpi_reader_example_cc.o \
            `otf2-config --ldflags` \
            `otf2-config --libs` \
            -o otf2_mpi_reader_example_cc

otf2_mpi_writer_example.o: otf2_mpi_writer_example.c
	mpicc -std=c99 `otf2-config --cflags` \
            -c otf2_mpi_writer_example.c \
            -o otf2_mpi_writer_example.o

otf2_mpi_writer_example: otf2_mpi_writer_example.o
	mpicc otf2_mpi_writer_example.o \
            `otf2-config --ldflags` \
            `otf2-config --libs` \
            -o otf2_mpi_writer_example

clean:
	$(RM) $(ALL) $(ALL_MPI) *.o