#!/usr/bin/make -f
# ------------------------------------------------------------------------------
# COHWRAID(LNX) sample utility
# cohwraid : contec hwraid console sample
# 
# Copyright (c) Since 2021 CONTEC Co.,Ltd. All Rights reserved.
# ------------------------------------------------------------------------------

LDFLAGS +=
CFLAGS += -Wall
LDLIBS += -lCoHwRaid
CC = gcc
OBJS = cohwraidctl.o
INCFLAGS ?= #-I../../library/include
#../../library/x86_64/libCoHwRaid.so.x.x
ADDITIONAL_LIBS ?= #$(shell find ../../library/x86_64 -type f -name libCoHwRaid.so.* -printf '%p\n' | sort -r | head -n1)

all : cohwraidctl

cohwraidctl :
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.c $(ADDITIONAL_LIBS) $(INCFLAGS) $(LDLIBS)

clean :
	rm -f *.o cohwraidctl
