# Copyright (c) 2016-2020 by UNISOC Technology(Shanghai), Inc.  ALL RIGHTS RESERVED.
#
# These coded instructions, statements, and computer programs are the
# copyrighted works and confidential proprietary information of
# UNISOC Technology(Shanghai), Inc. They may not be modified, copied, reproduced,
# distributed, or disclosed to third parties in any manner, medium, or form,
# in whole or in part, without the prior written consent of UNISOC Technology(Shanghai), Inc.

CFLAGS = -Wall -g -O -fPIC

INCLUDE_DIRS =
TARGET = sensorhub-cm4
LIBS = -lpthread
OBJS = main.o
SRCS = main.c

all:$(OBJS)
	bash ./envsetup.sh
	$(CC) -o $(TARGET) $(OBJS)  $(LIBS)

$(OBJS):$(SRCS)
	$(CC) $(CFLAGS) -c $^

install:
	cp $(TARGET) $(INSTALL_MOD_PATH)/usr/bin

clean:
	rm -f *.bin
	rm -f *.o
	rm -f $(TARGET)

