📄 makefile
字号:
## Makefile# OS : Linux, QNX, Solaris, HPUX# Tool : gcc or native complier## Copyright (c) 2001-2007 McObject LLC.#### # Please, type:## $ make# $ make samples - to build or rebuild sample applications# $ make tools - to build mcocomp, pickmem and libraries# $ make mcocomp - to build mcocomp# $ make mcolib - to build DB-libraries# $ make mcosql - to build SQL-libraries# $ make mcoodbc - to build ODBC-library# $ make all - to build samples and tools# $ make clean - to remove all temporary and intermediate files# $ make distclean - to remove all binary, temporary and intermediate files## Note: You can rebuild any sample by typing "make" inside the sample directory### Build control switches ---------------------------------# Remove the comment from follows switches or type:# make SHOW_BUILD_LOG=on - to see building progress# make DEBUG=on - to make a debug version of the runtime# make OPTIMIZE=size - to minimize the runtime size# make OPTIMIZE=speed - to maximize the runtime perfomance# make STATIC=on - to enable static linkage of executables# make COMPILER=gcc - to use gcc for building the runtime, tools and samples# make COMPILER=native - to use a native compiler to build the runtime, tools and samples# make HOST_PLATFORM= - to build tools and utilites for specified host platform# make HOST_FLAGS= - to specify additional flags for host platform# make TARGET_PLATFORM= - to build runtime and samples for specified target platform (mipsel,arm,etc)# make TARGET_FLAGS= - to specify additional flags for target platform (ex -mcpu=XXXX)# make TARGET_OS_HINT= - to tune up the runtime for specified target OS (ex. uCLinux or LynxOS)# make MCO_LIB_DYNAMIC= - to build dynamic version (.so) of the runtime# make MCO_LIB_STATIC= - to build static version (.a) of the runtime# make GENERIC=enabled - to build the runtime and binaries using generic (POSIX) syncronization # and shared memory interface# make TARGET_ARCH= - to override target's and/or# make HOST_ARCH= - host's cpu architecture# possible values: arm|mips|ix86|ppc|m68k|sparc64# make TARGET_CPUNO= - to override target's and/or # make HOST_CPUNO= - host's number of cpu(s)#SHOW_BUILD_LOG=on#DEBUG=on#OPTIMIZE=speed#OPTIMIZE=size#STATIC=on#COMPILER=gnu (default)#COMPILER=native#HOST_PLATFORM=#HOST_FLAGS=-g#TARGET_PLATFORM=mipsel-linux|arm-linux#TARGET_OS_HINT=uCLinux#TARGET_FLAGS=-mips2|-m5307#TARGET_FLAGS=-g#MCO_LIB_DYNAMIC=enabled#MCO_LIB_DYNAMIC=disabled#MCO_LIB_STATIC=enabled#MCO_LIB_STATIC=disabled#GENERIC=enabled#TARGET_ARCH=arm|mips|ix86|ppc|m68k|sparc64#HOST_ARCH=arm|mips|ix86|ppc|m68k|sparc64#TARGET_CPUNO=1|2|3|4|5...#HOST_CPUNO=1|2|3|4|5....PHONY : samples tools clean distclean allMAKEFLAGS += --no-print-directoryMCO_HAFRAMEWORK=$(shell if test -d haframework; then echo present; else echo absent; fi )samples: @$(MAKE) -C samplesifeq ($(MCO_HAFRAMEWORK),present) @$(MAKE) -C haframeworkendiftools: @$(MAKE) -C host @$(MAKE) -C targetclean: @$(MAKE) -C host clean @$(MAKE) -C target clean @$(MAKE) -C samples cleanifeq ($(MCO_HAFRAMEWORK),present) @$(MAKE) -C haframework cleanendifdistclean: @$(MAKE) -C host distclean @$(MAKE) -C target distclean @$(MAKE) -C samples distcleanifeq ($(MCO_HAFRAMEWORK),present) @$(MAKE) -C haframework distcleanendifmcocomp: @$(MAKE) -C host mcocompmcolib: @$(MAKE) -C target mcolibmcosql: @$(MAKE) -C target mcosqlmcoodbc: @$(MAKE) -C target mcoodbcall: tools samples
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -