Makefile.darshan 1.08 KB
Newer Older
Sudheer Chunduri's avatar
Sudheer Chunduri committed
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
# 
# AutoPerf MPI make rules for Darshan
#

VPATH += :$(srcdir)/../modules/autoperf/apmpi/util

DARSHAN_MOD_LOG_FORMATS += $(srcdir)/../modules/autoperf/apmpi/darshan-apmpi-log-format.h
DARSHAN_MOD_LOGUTIL_HEADERS += darshan-apmpi-logutils.h
DARSHAN_STATIC_MOD_OBJS += darshan-apmpi-logutils.o
DARSHAN_DYNAMIC_MOD_OBJS += darshan-apmpi-logutils.po

CFLAGS += \
          -DDARSHAN_USE_apmpi \
          -I$(srcdir)/../modules/autoperf/apmpi \
          -I$(srcdir)/../modules/autoperf/apmpi/util

CFLAGS_SHARED += \
         -DDARSHAN_USE_apmpi \
         -I$(srcdir)/../modules/autoperf/apmpi \
         -I$(srcdir)/../modules/autoperf/apmpi/util

darshan-apmpi-logutils.o: darshan-apmpi-logutils.c darshan-logutils.h darshan-apmpi-logutils.h $(DARSHAN_LOG_FORMAT) $(srcdir)/../modules/autoperf/apmpi/darshan-apmpi-log-format.h | uthash-1.9.2
	$(CC) $(CFLAGS) -c  $< -o $@

darshan-apmpi-logutils.po: darshan-apmpi-logutils.c darshan-logutils.h darshan-apmpi-logutils.h $(DARSHAN_LOG_FORMAT) $(srcdir)/../modules/autoperf/apmpi/darshan-apmpi-log-format.h | uthash-1.9.2
	$(CC) $(CFLAGS_SHARED) -c  $< -o $@