include components/host_micpower/Makefile.host_micpower

COMPSRCS += components/host_micpower/linux-host_micpower.c
COMPOBJS += linux-host_micpower.o

CFLAGS += -D MICACCESSAPI -D LINUX

# default install location
MPSSROOT ?= /opt/intel/mic
SYSMGT = $(MPSSROOT)/sysmgmt/sdk
LIBPATH = -L$(SYSMGT)/lib/Linux

#SCIF_LIBPATH=/usr/lib64

#LDFLAGS += $(LIBPATH) $(SCIF_LIBPATH) -lpthread -ldl
LDFLAGS += -pthread $(LDL) $(SYSMGMT_LIBS)
CFLAGS += $(SYSMGMT_CFLAGS)

linux-host_micpower.o: components/host_micpower/linux-host_micpower.c $(HEADERS) 
	$(CC) $(LIBCFLAGS) $(OPTFLAGS) -c components/host_micpower/linux-host_micpower.c -o linux-host_micpower.o 
