当前位置:网站首页>Local makefile compile other folder files specify obj directory
Local makefile compile other folder files specify obj directory
2022-07-19 06:32:00 【xp5xp6】
PRJ_HOME := $(shell pwd)
PRJ := car
VERSION := 1.0.0.0
NAME_LIB := libu.a
DIR_LIB := $(PRJ_HOME)/lib
DIR_OBJ := $(PRJ_HOME)/obj
DIR_INC_CUR_BPS := $(PRJ_HOME)/bpslib
DIR_INC_CUR := ./
DIR_UI := $(PRJ_HOME)/../MDS
DIR_UI_API := $(DIR_UI)/api
DIR_UI_LOG := $(DIR_UI)/log
DIR_INC_SUBS := -I$(DIR_UI_API) -I$(DIR_UI_LOG)/native -I$(DIR_UI)/interface
SRCS := $(DIR_UI_API)/api_call.o \
$(DIR_UI_API)/api_common.o \
$(DIR_UI_API)/empty_fun.o \
$(DIR_UI_LOG)/native/log.o \
$(info $(PRJ_HOME))
$(info $(DIR_UI))
$(info $(SRCS))
$(info "debug info---------------1----------")
#echo "debug info---------------1e-------------------"
CC = arm-none-linux-gnueabi-gcc
AR = arm-none-linux-gnueabi-ar
RANLIB = arm-none-linux-gnueabi-ranlib
MAKE := make --no-print-directory
CPPFLAGS = -Os -ggdb -c -Wall -DLINUX -I$(DIR_INC_CUR) -I$(DIR_INC_CUR_BPS) $(DIR_INC_SUBS)
CFLAGS += -D QT_CAR2
SRCS_NAME := $(notdir $(SRCS))
#OBJS = $(SRCS_NAME:%.o=$(DIR_OBJ)/%.o)
OBJS := $(addprefix $(DIR_OBJ)/,$(SRCS_NAME))
$(info $(SRCS_NAME))
$(info $(OBJS))
$(info "debug info---------------2----------")
#echo "debug info--------------2e-------------------"
TARGET = $(DIR_LIB)/$(NAME_LIB)
all: $(DIR_OBJ) $(DIR_LIB) $(TARGET)
$(info "debug info------3-------------------")
@echo "debug info------3e-------------------"
$(DIR_OBJ):
@test -d [email protected] || mkdir [email protected]
$(DIR_LIB):
@test -d [email protected] || mkdir [email protected]
%.o: %.c
$(info "--------------4--here add the debug info")
#@echo "--------------4--here add the debug info"
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(DIR_OBJ)/$(notdir [email protected]) $<
$(info "--------------4e--here add the debug info")
#@echo "--------------4e--here add the debug info")
$(TARGET): $(SRCS)
$(info "debug info------5-------------------")
@echo "debug info------5e-------------------"
$(AR) rv $(TARGET) $(OBJS)
$(RANLIB) $(TARGET)
$(info "debug info------6-------------------")
@echo "debug info------6e-------------------"
cp ./lib/libu.a ../qt
$(info "debug info------7-------------------")
@echo "debug info------7e-------------------"
clean:
@rm -rf $(DIR_LIB)
@rm -rf $(DIR_OBJ)
$(info "debug info------clean-------------------")
@echo "debug info------clean e-------------------"
边栏推荐
- Introduction to basic knowledge of Minio
- Peerless good problem (bit operation optimization DP)
- 三角形牧场 (0/1背包)
- XOR gun (bit operation, thinking, interval violence)
- Perception de l’état d’attention des utilisateurs sur les smartphones
- [force buckle] the same tree
- 你见过的最差的程序员是怎样的?
- 无80和443端口下申请域名SSL证书(适用于 acme.sh 和 certbot)
- 【力扣】另一棵树的子树
- Baby Ehab Partitions Again(dp,构造,位运算)
猜你喜欢
![[force buckle] symmetric binary tree](/img/a4/31e936fb242aa8a3243ea257f5fd29.png)
[force buckle] symmetric binary tree

用头部运动学习无姿态注视偏差
![Open source online markdown editor -- [editor.md]](/img/f3/b37acf934aa2526d99c8f585b6f229.png)
Open source online markdown editor -- [editor.md]
![[force buckle] flip binary tree](/img/9f/d0c5f624ae455c5c010f9a6df5df64.png)
[force buckle] flip binary tree

【力扣】括号匹配

通过VOR深度估计解决三维注视交互中的目标模糊问题

2022/07/11 group 5 Ding Shuai's study notes day04

Interview review nth time

Salgaze: personalized gaze estimation using visual saliency

What kind of deep learning is most suitable for your enterprise?
随机推荐
Computational geometry (4.17)
Quantum three body problem: an overview of numerical computation
Longest bracket match (linear DP)
SalGaze:使用视觉显著性的个性化注视估计
LeetCode树
2022/07/12 学习笔记 (day05)JS内置函数
Serial port circular buffer is simple and initialization free, without heap, pointer and segmented memcpy
2022 RoboCom 世界机器人开发者大赛-本科组(省赛)
[force buckle] realize queue with stack
[force buckle] realize stack with queue
Common serial communication UART seen from pictures
[force buckle] design cycle queue
【力扣】单值二叉树
【力扣】另一棵树的子树
Qtss data type
Solutions to slow transmission speed of FileZilla virtual machine
从零开始的 Rust 语言 blas 库之预备篇(2)—— blas 矩阵格式详解
你见过的最差的程序员是怎样的?
Guess the string (dichotomy, interaction)
CUDA与大数组的双调排序