⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Calc Software Package for Number Calc
💻
📖 第 1 页 / 共 2 页
字号:
## sample - makefile for calc sample programs## Copyright (C) 1999-2006  Landon Curt Noll## Calc is open software; you can redistribute it and/or modify it under# the terms of the version 2.1 of the GNU Lesser General Public License# as published by the Free Software Foundation.## Calc is distributed in the hope that it will be useful, but WITHOUT# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY# or FITNESS FOR A PARTICULAR PURPOSE.	See the GNU Lesser General# Public License for more details.## A copy of version 2.1 of the GNU Lesser General Public License is# distributed with calc under the filename COPYING-LGPL.  You should have# received a copy with calc; if not, write to Free Software Foundation, Inc.# 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.## @(#) $Revision: 29.23 $# @(#) $Id: Makefile,v 29.23 2006/09/18 13:13:25 chongo Exp $# @(#) $Source: /usr/local/src/cmd/calc/sample/RCS/Makefile,v $## Under source code control:	1997/04/19 22:46:49# File existed as early as:	1997## chongo <was here> /\oo/\	http://www.isthe.com/chongo/# Share and enjoy!  :-)		http://www.isthe.com/chongo/tech/comp/calc/## calculator by David I. Bell with help/mods from others# Makefile by Landon Curt Noll###############################################################################-=-=-=-=-=-=-=-=- You may want to change some values below -=-=-=-=-=-=-=-=-################################################################################ Any .h files that are needed by programs that use libcustcalc.a## Put any .h files that you add which might be useful to other# programs here.#SAMPLE_H_SRC=# Any .c files that are needed to build libcustcalc.a.## There MUST be a .c in SAMPLE_SRC for every .o in SAMPLE_OBJ.## Put your sample .c files here.#SAMPLE_SRC= many_random.c test_random.c# Any .o files that are needed by program that use libcustcalc.a.## There MUST be a .c in SAMPLE_SRC for every .o in SAMPLE_OBJ.## Put your sample .o files here.#SAMPLE_OBJ= many_random.o test_random.o###############################################################################-=-=-=-=-=-=- Defaults in case you want to build from this dir -=-=-=-=-=-=-################################################################################ Normally, the upper level makefile will set these values.  We provide# a default here just in case you want to build from this directory.## Makefile debug## Q=@	do not echo internal makefile actions (quiet mode)# Q=	echo internal makefile actions (debug / verbose mode)##Q=Q=@##### Normally, the upper level makefile will set these values.  We provide# a default here just in case you want to build from this directory.##### Where the system include (.h) files are kept## For DJGPP, select:##	INCDIR= /dev/env/DJDIR/include## If in doubt, set:##	INCDIR= /usr/include##INCDIR= /usr/local/include#INCDIR= /dev/env/DJDIR/includeINCDIR= /usr/include# where to install calc realted things## ${BINDIR}		where to install calc binary files# ${LIBDIR}		where calc link library (*.a) files are installed# ${CALC_SHAREDIR}	where to install calc help, .cal, startup, config files## NOTE: The install rule prepends installation paths with ${T}, which#	by default is empty.  If ${T} is non-empty, then installation#	locations will be relative to the ${T} directory.## For DJGPP, select:##	BINDIR= /dev/env/DJDIR/bin#	LIBDIR= /dev/env/DJDIR/lib#	CALC_SHAREDIR= /dev/env/DJDIR/share/calc## If in doubt, set:##	BINDIR= /usr/bin#	LIBDIR= /usr/lib#	CALC_SHAREDIR= /usr/share/calc##BINDIR= /usr/local/bin#BINDIR= /dev/env/DJDIR/binBINDIR= /usr/bin#LIBDIR= /usr/local/lib#LIBDIR= /dev/env/DJDIR/libLIBDIR= /usr/lib#CALC_SHAREDIR= /usr/local/lib/calc#CALC_SHAREDIR= /dev/env/DJDIR/share/calcCALC_SHAREDIR= /usr/share/calc# By default, these values are based CALC_SHAREDIR, INCDIR, BINDIR# ---------------------------------------------------------------# ${HELPDIR}		where the help directory is installed# ${CALC_INCDIR}	where the calc include files are installed# ${CUSTOMCALDIR}	where custom *.cal files are installed# ${CUSTOMHELPDIR}	where custom help files are installed# ${CUSTOMINCDIR}	where custom .h files are installed# ${SCRIPTDIR}		where calc shell scripts are installed## NOTE: The install rule prepends installation paths with ${T}, which#	by default is empty.  If ${T} is non-empty, then installation#	locations will be relative to the ${T} directory.## If in doubt, set:##	HELPDIR= ${CALC_SHAREDIR}/help#	CALC_INCDIR= ${INCDIR}/calc#	CUSTOMCALDIR= ${CALC_SHAREDIR}/custom#	CUSTOMHELPDIR= ${CALC_SHAREDIR}/custhelp#	CUSTOMINCDIR= ${CALC_INCDIR}/custom#	SCRIPTDIR= ${BINDIR}/cscript#HELPDIR= ${CALC_SHAREDIR}/helpCALC_INCDIR= ${INCDIR}/calcCUSTOMCALDIR= ${CALC_SHAREDIR}/customCUSTOMHELPDIR= ${CALC_SHAREDIR}/custhelpCUSTOMINCDIR= ${CALC_INCDIR}/customSCRIPTDIR= ${BINDIR}/cscript# T - top level directory under which calc will be installed## The calc install is performed under ${T}, the calc build is# performed under /.	The purpose for ${T} is to allow someone# to install calc somewhere other than into the system area.## For example, if:##     BINDIR= /usr/bin#     LIBDIR= /usr/lib#     CALC_SHAREDIR= /usr/share/calc## and if:##     T= /var/tmp/testing## Then the installation locations will be:##     calc binary files:	/var/tmp/testing/usr/bin#     calc link library:	/var/tmp/testing/usr/lib#     calc help, .cal ...:	/var/tmp/testing/usr/share/calc#     ... etc ...		/var/tmp/testing/...## If ${T} is empty, calc is installed under /, which is the same# top of tree for which it was built.  If ${T} is non-empty, then# calc is installed under ${T}, as if one had to chroot under# ${T} for calc to operate.## If in doubt, use T=#T=# Normally, the upper level makefile will set these values.  We provide# a default here just in case you want to build from this directory.## Debug/Optimize options for ${CC}#DEBUG= -O#DEBUG= -O -g#DEBUG= -O -g3#DEBUG= -O1#DEBUG= -O1 -g#DEBUG= -O1 -g3#DEBUG= -O2#DEBUG= -O2 -g#DEBUG= -O2 -g3#DEBUG= -O2 -ipa#DEBUG= -O2 -g3 -ipa#DEBUG= -O3#DEBUG= -O3 -g#DEBUG= -O3 -g3#DEBUG= -O3 -ipa#DEBUG= -O3 -g3 -ipa#DEBUG= -g#DEBUG= -g3#DEBUG= -gx#DEBUG= -WM,-g#DEBUG=# Normally, the upper level makefile will set these values.  We provide# a default here just in case you want to build from this directory.## On systems that have dynamic shared libs, you may want want to disable them# for faster calc startup.##    System type    NO_SHARED recommendation##	BSD	    NO_SHARED=#	SYSV	    NO_SHARED= -dn#	IRIX	    NO_SHARED= -non_shared#	disable	    NO_SHARED=## If in doubt, use NO_SHARED=#NO_SHARED=#NO_SHARED= -dn#NO_SHARED= -non_shared# On some systems where you are disabling dynamic shared link libs, you may# need to pass a special flag to ${CC} and ${LCC} during linking stage.##    System type			    NO_SHARED recommendation##	IRIX with NO_SHARED= -non_shared    LD_NO_SHARED= -Wl,-rdata_shared#	IRIX with NO_SHARED=		    LD_NO_SHARED=#	others				    LD_NO_SHARED=## If in doubt, use LD_NO_SHARED=#LD_NO_SHARED=#LD_NO_SHARED= -Wl,-rdata_shared# Normally, the upper level makefile will set these values.  We provide# a default here just in case you want to build from this directory.## Some systems require one to use ranlib to add a symbol table to# a *.a link library.  Set RANLIB to the utility that performs this action.# Set RANLIB to : if your system does not need such a utility.##RANLIB=ranlibRANLIB=:# Normally, the upper level makefile will set these values.  We provide# a default here just in case you want to build from this directory.## Normally certain files depend on the Makefile.  If the Makefile is# changed, then certain steps should be redone.	 If MAKE_FILE is# set to Makefile, then these files will depend on Makefile.  If# MAKE_FILE is empty, they they wont.## If in doubt, set MAKE_FILE to Makefile#MAKE_FILE= Makefile#MAKE_FILE=# Normally, the upper level makefile will set these values.  We provide# a default here just in case you want to build from this directory.## If you do not wish to use purify, set PURIFY to an empty string.## If in doubt, use PURIFY=##PURIFY= purify -logfile=pure.out#PURIFY= purifyPURIFY=# If you want to use a debugging link library such as a malloc debug link# library, or need to add special ld flags after the calc link libraries# are included, set ${LD_DEBUG} below.## If in doubt, set LD_DEBUG to empty.##LD_DEBUG= -lmalloc_cvLD_DEBUG=# Normally, the upper level makefile will set these values.  We provide# a default here just in case you want to build from this directory.## By default, custom builtin functions may only be executed if calc# is given the -C option.  This is because custom builtin functions# may invoke non-standard or non-portable code.	 One may completely# disable custom builtin functions by not compiling any of code## ALLOW_CUSTOM= -DCUSTOM	# allow custom only if -C is given# ALLOW_CUSTOM=			# disable custom even if -C is given## If in doubt, use ALLOW_CUSTOM= -DCUSTOM#ALLOW_CUSTOM= -DCUSTOM#ALLOW_CUSTOM=# Normally, the upper level makefile will set these values.  We provide# a default here just in case you want to build from this directory.## The sample routines need to be compiled with libcalc.a.  The ${CALC_LIBS}# variable tells where this link library may be found## CALC_LIBS= ../libcalc.a ...	       # compile with libcalc.a in dir above# CALC_LIBS= ${LIBDIR}/libcalc.a ...   # compile the installed libcalc.a# CALC_LIBS= -lcalc ...		       # compile with the system libcalc.a## If in doubt, use CALC_LIBS= ../libcalc.a#CALC_LIBS= ../libcalc.a ../custom/libcustcalc.a#CALC_LIBS= ${LIBDIR}/libcalc.a ${LIBDIR}/libcustcalc.a#CALC_LIBS= -lcalc -lcustcalc##### CCOPT are flags given to ${CC} for optimization# CCWARN are flags given to ${CC} for warning message control# CCMISC are misc flags given to ${CC}## CFLAGS are all flags given to ${CC} [[often includes CCOPT, CCWARN, CCMISC]]# ICFLAGS are given to ${CC} for intermediate progs## LDFLAGS are flags given to ${CC} for linking .o files# ILDFLAGS are flags given to ${CC} for linking .o files for intermediate progs

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -