35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
# SPDX-FileCopyrightText: 2021 Unisoc (Shanghai) Technologies Co., Ltd.
|
|||
|
|
#
|
||
|
|
# SPDX-License-Identifier: LicenseRef-UNISOC
|
||
|
|
DESTDIR=
|
||
|
|
bindir=/usr/bin
|
||
|
|
CXXFLAGS=-Wall -g -std=c++11
|
||
|
|
LIBS=-lpthread -lrt -ldl -liniparser -lsessionqueue -llvgl -llvdrv -llvinit
|
||
|
|
INCLUDE_DIRS=-I ./ui/inc/ -I ./server/common/ -I ./server/ctrl/ -I ./server/include/ -I ./server/menu/ -I ./server/testitem/ -I ./server/testitem/items -I ./server/view/
|
||
|
|
LIBS=-lrt -lpthread -ldl -liniparser -lsessionqueue -llvgl -llvdrv -llvinit
|
||
|
|
|
||
|
|
SRCS=$(wildcard ./*.cpp ./ui/src/*.cpp ./server/common/*.cpp ./server/ctrl/*.cpp ./server/menu/*.cpp ./server/testitem/*.cpp ./server/testitem/items/*.cpp ./server/view/*.cpp)
|
||
|
|
OBJ=$(patsubst %.cpp,%.o,$(SRCS))
|
||
|
|
OBJS=$(notdir $(OBJ))
|
||
|
|
|
||
|
|
TARGET=nativemmi
|
||
|
|
|
||
|
|
ifeq ($(strip $(MMI_REMOVE_MODEM_FLAG)), true)
|
||
|
|
CXXFLAGS += -DREMOVE_SPRD_MODEM
|
||
|
|
endif
|
||
|
|
|
||
|
|
all:$(OBJS)
|
||
|
|
$(CXX) -o $(TARGET) $(OBJS) $(LIBS)
|
||
|
|
|
||
|
|
$(OBJS):$(SRCS)
|
||
|
|
$(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $^
|
||
|
|
|
||
|
|
install:
|
||
|
|
install -d $(DESTDIR)${bindir}
|
||
|
|
install -m 0755 $(TARGET) $(DESTDIR)${bindir}
|
||
|
|
|
||
|
|
clean:
|
||
|
|
rm -f $(OBJS)
|
||
|
|
rm -f $(TARGET)
|
||
|
|
|