common.mk
来自「QNX ADS BSP code for i.MX27 chips」· MK 代码 · 共 74 行
MK
74 行
# # Copyright 2007, QNX Software Systems. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not reproduce, modify or distribute this software except in # compliance with the License. You may obtain a copy of the License # at: http://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 OF ANY KIND, either express or implied.# # This file may contain contributions from others, either as # contributors under the License or as licensors under other terms. # Please review this entire file for other proprietary rights or license # notices, as well as the QNX Development Suite License Guide at # http://licensing.qnx.com/license-guide/ for other information.# # General purpose makefile for building a Neutrino IPL#ifndef QCONFIGQCONFIG=qconfig.mkendifinclude $(QCONFIG)LIB_VARIANT = $(subst .o,,a.$(COMPOUND_VARIANT))INSTALLDIR = boot/sysLIBS = iplNAME = ipl-$(SECTION)EXTRA_SILENT_VARIANTS+=$(subst -, ,$(SECTION))USEFILE = EXTRA_INCVPATH = $(LIBIPL_ROOT)/$(CPU)/$(LIB_VARIANT) $(LIBIPL_ROOT)/$(CPU) $(LIBIPL_ROOT)EXTRA_LIBVPATH = $(LIBIPL_ROOT)/$(CPU)/$(LIB_VARIANT)## DEFFILE = $(LIBIPL_ROOT)/$(CPU)/$(LIB_VARIANT)/asmoff.def LDF_ += -nostartfiles -T$(PROJECT_ROOT)/$(SECTION)/$(SECTION).lnkLDF_qcc += -M -nostartup -Wl,-T$(PROJECT_ROOT)/$(SECTION)/$(SECTION).lnkLDFLAGS += -nostdlib $(LDF_$(COMPILER_DRIVER))include $(MKFILES_ROOT)/qmacros.mk-include $(PROJECT_ROOT)/roots.mkifndef LIBIPL_ROOTLIBIPL_ROOT=$(PRODUCT_ROOT)/libendifinclude $(PROJECT_ROOT)/$(SECTION)/pinfo.mk# Don't try to add usage messages to ipl's.define ADD_USAGEendef## Make sure *_reset.o gets linked _first_.#old_OBJS := $(OBJS)OBJS := $(filter %_reset.o, $(old_OBJS)) $(filter-out %_reset.o, $(old_OBJS))include $(MKFILES_ROOT)/qtargets.mkCCF_gcc_ = -O2 -fomit-frame-pointerCCF_gcc_qcc = -O2 -Wc,-fomit-frame-pointerCCFLAGS += $(CCFLAGS_$(COMPILER_TYPE)_$(COMPILER_DRIVER))## This particular little kludge is to stop GCC from using F.P. instructions# to move 8 byte quantities around. #CC_nto_ppc_gcc += -msoft-floatCC_nto_ppc_gcc_qcc += -Wc,-msoft-float
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?