-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (37 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
##############################################################################
# Copyright (c) 2013, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# Written by:
# Nikhil Jain <nikhil.jain@acm.org>
# Abhinav Bhatele <bhatele@llnl.gov>
#
# LLNL-CODE-678958. All rights reserved.
#
# This file is part of BGQNCL. For details, see:
# https://github.com/LLNL/bgqncl
# Please also read the LICENSE file for our notice and the LGPL.
##############################################################################
# Common Variables
CC = mpixlc
CXX = mpixlcxx
COPTS = -c -O3
CXXOPTS = -c -O3
LOPTS =
INC = -I./
BGPM = /bgsys/drivers/ppcfloor/bgpm
#BGPM = /soft/perftools/bgpm
LIBS = libprofiler.a -L $(BGPM)/lib -lbgpm -lrt -lstdc++
all: libprofiler.a
test-all: simple
libprofiler.a: intercepts.o profiler.o
ar cr $@ $^
profiler.o: profiler.c profiler.h
$(CC) $(COPTS) -o $@ $< ${INC}
intercepts.o: intercepts.c intercepts.h profiler.h
$(CC) $(COPTS) -o $@ $< ${INC}
simple: simple.c libprofiler.a
$(CC) $(COPTS) $< -o simple.o $(INC)
$(CXX) -o $@ simple.o $(LIBS)
clean:
rm -f *.o libprofiler.a simple