BM-Lite/HAL_Driver/Linux/Linux.mk
Andrey Perminov 563f7c9f3a Added Linux HAL
BM-Lite HAL implementation for Linux use spidev for SPI access
and /sys/class/gpio for BM-Lite Reset & Status pin access
2021-07-07 14:30:30 -07:00

30 lines
819 B
Makefile

#
# Copyright (c) 2020 Andrey Perminov <andrey.ppp@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
HAL = $(ROOT)/HAL_Driver/Linux
CC := gcc
CFLAGS +=\
-D_DEFAULT_SOURCE
VPATH += $(HAL)
C_INC += -I$(HAL)/inc
# Source Folders
VPATH += $(HAL)/src/
# C Sources
C_SRCS += $(notdir $(wildcard $(HAL)/src/*.c))