# Makefile.in COPYRIGHT FUJITSU LIMITED 2015-2016
CC=@CC@
MCC=mpicc
BINDIR=@BINDIR@
SBINDIR=@SBINDIR@
prefix=@prefix@
exec_prefix=@exec_prefix@
LIBDIR=@libdir@
MANDIR=@MANDIR@
KDIR ?= @KDIR@
ARCH=@ARCH@
VPATH=@abs_srcdir@
IHKDIR ?= $(VPATH)/../../../ihk/linux/include/
CFLAGS=-Wall -O -I. -I${IHKDIR} -I@abs_srcdir@/../../executer/include
LDFLAGS=@LDFLAGS@
TARGET=mcstat

.PHONY: all clean install

all: $(TARGET)

mcstat: mcstat.c
	$(CC) -I${KDIR} $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ $^

clean::
	$(RM) $(TARGET) *.o

install::
	install -m 755 mcstat $(BINDIR)
