Mod aaa-12 修改Makefile脚本,根据编译器选择平台后缀

RCA:
SOL:
修改人:huangxin
检视人:huangxin
This commit is contained in:
黄昕 2019-08-29 15:57:15 +08:00
parent 9c3e989ff9
commit 90e68d7031
38 changed files with 86 additions and 46 deletions

View File

@ -21,20 +21,6 @@ ENABLE_MAKE_LOG ?= FALSE
# 调试信息分离开关,默认开启 # 调试信息分离开关,默认开启
TARGET_STRIP ?= TRUE TARGET_STRIP ?= TRUE
# 定义各个平台编译工具,建议设置编译工具路径到 PATH 环境变量
# CC : Cross Build Tools
# LD : Cross Link Tools
CC := gcc
OBJCOPY := objcopy
STRIP := strip
AR := ar
ARM64_CROSS_CC := aarch64-linux-gnu-gcc
ARM64_CROSS_OBJCOPY := aarch64-linux-gnu-objcopy
ARM64_CROSS_STRIP := aarch64-linux-gnu-strip
ARM64_CROSS_AR := aarch64-linux-gnu-ar
ARM64_CROSS_AS := aarch64-linux-gnu-as
ifeq ($(TARGET_TYPE), KO) ifeq ($(TARGET_TYPE), KO)
ARM64_CROSS_LD := aarch64-linux-gnu-ld ARM64_CROSS_LD := aarch64-linux-gnu-ld
LINUX_CROSS_LD := ld LINUX_CROSS_LD := ld
@ -336,8 +322,8 @@ BUILD_TARGET :=
ifneq ($(UNMAKE_PROCESS), TRUE) ifneq ($(UNMAKE_PROCESS), TRUE)
# 定义最终生成目标文件名 # 定义最终生成目标文件名
PLAT_ARM64_TARGET := $(TARGET_PREFIX)$(TARGET_NAME)-arm64$(TARGET_EXT) PLAT_ARM64_TARGET := $(TARGET_PREFIX)$(TARGET_NAME)-$(ARM64_OBJ_TARGET)$(TARGET_EXT)
PLAT_LINUX_TARGET := $(TARGET_PREFIX)$(TARGET_NAME)-linux$(TARGET_EXT) PLAT_LINUX_TARGET := $(TARGET_PREFIX)$(TARGET_NAME)-$(LINUX_OBJ_TARGET)$(TARGET_EXT)
# ARM64 平台生成目标、编译参数、链接参数、依赖库 # ARM64 平台生成目标、编译参数、链接参数、依赖库
ifeq ($(PLAT_ARM64), TRUE) ifeq ($(PLAT_ARM64), TRUE)

18
Common/def.Makefile Normal file
View File

@ -0,0 +1,18 @@
SHELL := /bin/sh
# 定义各个平台编译工具,建议设置编译工具路径到 PATH 环境变量
# CC : Cross Build Tools
# LD : Cross Link Tools
CC := gcc
OBJCOPY := objcopy
STRIP := strip
AR := ar
ARM64_CROSS_CC := aarch64-linux-gnu-gcc
ARM64_CROSS_OBJCOPY := aarch64-linux-gnu-objcopy
ARM64_CROSS_STRIP := aarch64-linux-gnu-strip
ARM64_CROSS_AR := aarch64-linux-gnu-ar
ARM64_CROSS_AS := aarch64-linux-gnu-as
ARM64_OBJ_TARGET = $(shell $(ARM64_CROSS_CC) -print-multiarch | awk -F '-' '{print $$1}')
LINUX_OBJ_TARGET = $(shell $(CC) -print-multiarch | awk -F '-' '{print $$1}')

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=cfgrcv TARGET_NAME=cfgrcv

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=conntrack_api TARGET_NAME=conntrack_api

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=demoA TARGET_NAME=demoA

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=test TARGET_NAME=test

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=klog_api TARGET_NAME=klog_api

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=test_klog_api TARGET_NAME=test_klog_api

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=netlink TARGET_NAME=netlink

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=pdeliv TARGET_NAME=pdeliv

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=rpdb TARGET_NAME=rpdb

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=trace_relay TARGET_NAME=trace_relay

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=cfgchannel_sample TARGET_NAME=cfgchannel_sample
@ -41,8 +42,8 @@ PLAT_LINUX_CFLAGS := $(PLAT_ARM64_CFLAGS)
PLAT_ARM64_LDFLAGS := PLAT_ARM64_LDFLAGS :=
PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS) PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS)
ARM64_LIBS := -lnetlinku-arm64 ARM64_LIBS := -lnetlinku-$(ARM64_OBJ_TARGET)
LINUX_LIBS := -lnetlinku-linux LINUX_LIBS := -lnetlinku-$(LINUX_OBJ_TARGET)
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=configm TARGET_NAME=configm
@ -60,10 +61,10 @@ PLAT_ARM64_LDFLAGS :=
PLAT_LINUX_LDFLAGS := PLAT_LINUX_LDFLAGS :=
#gcc libs #gcc libs
ARM64_LIBS := -lopenrpc-arm64 -lnetlinku-arm64 -lredismq-arm64 -lulogapi-arm64 -ldatabase-arm64 ARM64_LIBS := -lopenrpc-$(ARM64_OBJ_TARGET) -lnetlinku-$(ARM64_OBJ_TARGET) -lredismq-$(ARM64_OBJ_TARGET) -lulogapi-$(ARM64_OBJ_TARGET) -ldatabase-$(ARM64_OBJ_TARGET)
ARM64_LIBS += -lpthread -lm -lcjson -levent -ljson-c -lhiredis -lodbc -lev -ldl ARM64_LIBS += -lpthread -lm -lcjson -levent -ljson-c -lhiredis -lodbc -lev -ldl
LINUX_LIBS := -lopenrpc-linux -lnetlinku-linux -lredismq-linux -lulogapi-linux -ldatabase-linux LINUX_LIBS := -lopenrpc-$(LINUX_OBJ_TARGET) -lnetlinku-$(LINUX_OBJ_TARGET) -lredismq-$(LINUX_OBJ_TARGET) -lulogapi-$(LINUX_OBJ_TARGET) -ldatabase-$(LINUX_OBJ_TARGET)
LINUX_LIBS += -lpthread -lm -lcjson -levent -ljson-c -lhiredis -lodbc -lev -ldl LINUX_LIBS += -lpthread -lm -lcjson -levent -ljson-c -lhiredis -lodbc -lev -ldl

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=libconfigmapi TARGET_NAME=libconfigmapi
@ -43,8 +44,8 @@ PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS)
#gcc libs #gcc libs
ARM64_LIBS := -lopenrpc-arm64 -lpthread -lm -lev ARM64_LIBS := -lopenrpc-$(ARM64_OBJ_TARGET) -lpthread -lm -lev
LINUX_LIBS := -lopenrpc-linux -lpthread -lm -lev LINUX_LIBS := -lopenrpc-$(LINUX_OBJ_TARGET) -lpthread -lm -lev
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=configmtest TARGET_NAME=configmtest
@ -42,8 +43,8 @@ PLAT_ARM64_LDFLAGS :=
PLAT_LINUX_LDFLAGS := PLAT_LINUX_LDFLAGS :=
#gcc libs #gcc libs
ARM64_LIBS := -lopenrpc-arm64 -lconfigmapi-arm64 -lpthread -lm -lev ARM64_LIBS := -lopenrpc-$(ARM64_OBJ_TARGET) -lconfigmapi-$(ARM64_OBJ_TARGET) -lpthread -lm -lev
LINUX_LIBS := -lopenrpc-linux -lconfigmapi-linux -lpthread -lm -lev LINUX_LIBS := -lopenrpc-$(LINUX_OBJ_TARGET) -lconfigmapi-$(LINUX_OBJ_TARGET) -lpthread -lm -lev
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=libdatabase TARGET_NAME=libdatabase

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=freeauth TARGET_NAME=freeauth
@ -42,10 +43,10 @@ PLAT_ARM64_LDFLAGS := -L ../../Platform/build/debug
PLAT_LINUX_LDFLAGS := $(PLAT_LINUX_LDFLAGS) PLAT_LINUX_LDFLAGS := $(PLAT_LINUX_LDFLAGS)
#gcc libs #gcc libs
ARM64_LIBS := -lopenrpc-arm64 -lnetlinku-arm64 -lredismq-arm64 -lulogapi-arm64 -ldatabase-arm64 ARM64_LIBS := -lopenrpc-$(ARM64_OBJ_TARGET) -lnetlinku-$(ARM64_OBJ_TARGET) -lredismq-$(ARM64_OBJ_TARGET) -lulogapi-$(ARM64_OBJ_TARGET) -ldatabase-$(ARM64_OBJ_TARGET)
ARM64_LIBS += -lpthread -lm -lcjson -levent -ljson-c -lhiredis -lev ARM64_LIBS += -lpthread -lm -lcjson -levent -ljson-c -lhiredis -lev
LINUX_LIBS := -lopenrpc-linux -lnetlinku-linux -lredismq-linux -lulogapi-linux -ldatabase-linux LINUX_LIBS := -lopenrpc-$(LINUX_OBJ_TARGET) -lnetlinku-$(LINUX_OBJ_TARGET) -lredismq-$(LINUX_OBJ_TARGET) -lulogapi-$(LINUX_OBJ_TARGET) -ldatabase-$(LINUX_OBJ_TARGET)
LINUX_LIBS += -lpthread -lm -lcjson -levent -ljson-c -lhiredis -lev LINUX_LIBS += -lpthread -lm -lcjson -levent -ljson-c -lhiredis -lev
# this line must be at below of thus, because of... # this line must be at below of thus, because of...

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=logging TARGET_NAME=logging
@ -42,8 +43,8 @@ PLAT_ARM64_LDFLAGS :=
PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS) PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS)
#gcc libs #gcc libs
ARM64_LIBS := -lopenrpc-arm64 -lulogapi-arm64 -lconfigmapi-arm64 -lpthread -lcjson -lev -lm ARM64_LIBS := -lopenrpc-$(ARM64_OBJ_TARGET) -lulogapi-$(ARM64_OBJ_TARGET) -lconfigmapi-$(ARM64_OBJ_TARGET) -lpthread -lcjson -lev -lm
LINUX_LIBS := -lopenrpc-linux -lulogapi-linux -lconfigmapi-linux -lpthread -lcjson -lev -lm LINUX_LIBS := -lopenrpc-$(LINUX_OBJ_TARGET) -lulogapi-$(LINUX_OBJ_TARGET) -lconfigmapi-$(LINUX_OBJ_TARGET) -lpthread -lcjson -lev -lm
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=libnetlinku TARGET_NAME=libnetlinku

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=libopenrpc TARGET_NAME=libopenrpc

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=pdeliv_rcvtest TARGET_NAME=pdeliv_rcvtest
@ -41,8 +42,8 @@ PLAT_LINUX_CFLAGS := $(PLAT_ARM64_CFLAGS)
PLAT_ARM64_LDFLAGS := PLAT_ARM64_LDFLAGS :=
PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS) PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS)
ARM64_LIBS := -lnetlinku-arm64 ARM64_LIBS := -lnetlinku-$(ARM64_OBJ_TARGET)
LINUX_LIBS := -lnetlinku-linux LINUX_LIBS := -lnetlinku-$(LINUX_OBJ_TARGET)
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=pdeliv TARGET_NAME=pdeliv
@ -41,8 +42,8 @@ PLAT_LINUX_CFLAGS := $(PLAT_ARM64_CFLAGS)
PLAT_ARM64_LDFLAGS := PLAT_ARM64_LDFLAGS :=
PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS) PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS)
ARM64_LIBS := -lnetlinku-arm64 ARM64_LIBS := -lnetlinku-$(ARM64_OBJ_TARGET)
LINUX_LIBS := -lnetlinku-linux LINUX_LIBS := -lnetlinku-$(LINUX_OBJ_TARGET)
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=pdeliv TARGET_NAME=pdeliv

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=libredismq TARGET_NAME=libredismq

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=librpdb TARGET_NAME=librpdb

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=libtraceapi TARGET_NAME=libtraceapi
@ -43,8 +44,8 @@ PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS)
#gcc libs #gcc libs
ARM64_LIBS := -lnetlinku-arm64 ARM64_LIBS := -lnetlinku-$(ARM64_OBJ_TARGET)
LINUX_LIBS := -lnetlinku-linux LINUX_LIBS := -lnetlinku-$(LINUX_OBJ_TARGET)
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=test-trace TARGET_NAME=test-trace
@ -41,8 +42,8 @@ PLAT_ARM64_LDFLAGS :=
PLAT_LINUX_LDFLAGS := PLAT_LINUX_LDFLAGS :=
#gcc libs #gcc libs
ARM64_LIBS := -ltraceapi-arm64 -lnetlinku-arm64 -lpthread ARM64_LIBS := -ltraceapi-$(ARM64_OBJ_TARGET) -lnetlinku-$(ARM64_OBJ_TARGET) -lpthread
LINUX_LIBS := -ltraceapi-linux -lnetlinku-linux -lpthread LINUX_LIBS := -ltraceapi-$(LINUX_OBJ_TARGET) -lnetlinku-$(LINUX_OBJ_TARGET) -lpthread
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=libulogapi TARGET_NAME=libulogapi

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=log-sched TARGET_NAME=log-sched
@ -42,8 +43,8 @@ PLAT_ARM64_LDFLAGS :=
PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS) PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS)
#gcc libs #gcc libs
ARM64_LIBS := -lopenrpc-arm64 -lulogapi-arm64 -lpthread -lm -lev ARM64_LIBS := -lopenrpc-$(ARM64_OBJ_TARGET) -lulogapi-$(ARM64_OBJ_TARGET) -lpthread -lm -lev
LINUX_LIBS := -lopenrpc-linux -lulogapi-linux -lpthread -lm -lev LINUX_LIBS := -lopenrpc-$(LINUX_OBJ_TARGET) -lulogapi-$(LINUX_OBJ_TARGET) -lpthread -lm -lev
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=test_ulog_api TARGET_NAME=test_ulog_api
@ -42,8 +43,8 @@ PLAT_ARM64_LDFLAGS :=
PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS) PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS)
#gcc libs #gcc libs
ARM64_LIBS := -lopenrpc-arm64 -lulogapi-arm64 -lpthread -lm -lev ARM64_LIBS := -lopenrpc-$(ARM64_OBJ_TARGET) -lulogapi-$(ARM64_OBJ_TARGET) -lpthread -lm -lev
LINUX_LIBS := -lopenrpc-linux -lulogapi-linux -lpthread -lm -lev LINUX_LIBS := -lopenrpc-$(LINUX_OBJ_TARGET) -lulogapi-$(LINUX_OBJ_TARGET) -lpthread -lm -lev
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=demo TARGET_NAME=demo

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=khashtable TARGET_NAME=khashtable

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=matchrule TARGET_NAME=matchrule

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=demo TARGET_NAME=demo

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=libuserauthapi TARGET_NAME=libuserauthapi
@ -43,10 +44,10 @@ PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS)
PLATLIB_DIR := ../../Platform/build/debug PLATLIB_DIR := ../../Platform/build/debug
#gcc libs #gcc libs
ARM64_LIBS := -ldatabase-arm64 ARM64_LIBS := -ldatabase-$(ARM64_OBJ_TARGET)
ARM64_LIBS += -lcjson -lpthread -lm -lodbc ARM64_LIBS += -lcjson -lpthread -lm -lodbc
LINUX_LIBS := -ldatabase-linux LINUX_LIBS := -ldatabase-$(LINUX_OBJ_TARGET)
LINUX_LIBS += -lcjson -lpthread -lm -lodbc LINUX_LIBS += -lcjson -lpthread -lm -lodbc
# this line must be at below of thus, because of... # this line must be at below of thus, because of...

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=usermanager-test TARGET_NAME=usermanager-test
@ -54,10 +55,10 @@ PLATLIB_DIR := ../../Platform/build/debug
COMMON_LIBS := -lpthread -lm -lcjson -levent -ljson-c -lhiredis -lodbc -ldl COMMON_LIBS := -lpthread -lm -lcjson -levent -ljson-c -lhiredis -lodbc -ldl
#gcc libs #gcc libs
ARM64_LIBS := $(COMMON_LIBS) ARM64_LIBS := $(COMMON_LIBS)
ARM64_LIBS += -luserauthapi-arm64 -lredismq-arm64 -ldatabase-arm64 ARM64_LIBS += -luserauthapi-$(ARM64_OBJ_TARGET) -lredismq-$(ARM64_OBJ_TARGET) -ldatabase-$(ARM64_OBJ_TARGET)
LINUX_LIBS := $(COMMON_LIBS) LINUX_LIBS := $(COMMON_LIBS)
LINUX_LIBS += -luserauthapi-linux -lredismq-linux -ldatabase-linux LINUX_LIBS += -luserauthapi-$(LINUX_OBJ_TARGET) -lredismq-$(LINUX_OBJ_TARGET) -ldatabase-$(LINUX_OBJ_TARGET)
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile

View File

@ -1,3 +1,4 @@
include ../../Common/def.Makefile
# target name, the target name must have the same name of c source file # target name, the target name must have the same name of c source file
TARGET_NAME=webauth TARGET_NAME=webauth
@ -42,8 +43,8 @@ PLAT_ARM64_LDFLAGS := -L ../../Platform/build/debug
PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS) PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS)
#gcc libs #gcc libs
ARM64_LIBS := -luserauthapi-arm64 -ldatabase-arm64 ARM64_LIBS := -luserauthapi-$(ARM64_OBJ_TARGET) -ldatabase-$(ARM64_OBJ_TARGET)
LINUX_LIBS := -lcjson -luserauthapi-linux -ldatabase-linux LINUX_LIBS := -lcjson -luserauthapi-$(LINUX_OBJ_TARGET) -ldatabase-$(LINUX_OBJ_TARGET)
# this line must be at below of thus, because of... # this line must be at below of thus, because of...
include ../../Common/common.Makefile include ../../Common/common.Makefile