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

📄 makefile

📁 Calc Software Package for Number Calc
💻
📖 第 1 页 / 共 2 页
字号:
## LCC how the the C compiler is invoked on locally executed intermediate progs# CC is how the the C compiler is invoked (with an optional Purify)###### default set## Normally these values are passed in from the upper level Makefile.# Change these as needed if you intend to build directly in this directory.## for better performance, set the following above:#     DEBUG= -O2#CCWARN= -Wall -Wno-implicit -Wno-commentCCOPT= ${DEBUG} ${NO_SHARED}CCMISC=#CFLAGS= ${CCWARN} ${CCOPT} ${CCMISC}ICFLAGS= ${CCWARN} ${CCMISC}#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}ILDFLAGS=#LCC= gccCC= ${PURIFY} ${LCC}###############################################################################-=-=-=-=-=-=-=-=- Be careful if you change something below -=-=-=-=-=-=-=-=-################################################################################ These .c files are used to build the dependency list#C_SRC= ${SAMPLE_SRC}# These .h files are used to build the dependecy list#H_SRC= ${SAMPLE_H_SRC}# These files are found (but not built) in the distribution## The SAMPLE_CAL and HOW_TO_ADD are files distributed from this# directory but are installed as help files from the help/Makefile.#DISTLIST= ${C_SRC} ${H_SRC} ${MAKE_FILE} README_SAMPLE# These files are used to make (but not built) a calc .a link library#CALCLIBLIST= ${C_SRC} ${H_SRC} ${MAKE_FILE} README_SAMPLE# complete list of targets## NOTE: This list MUST be coordinated with the ${SAMPLE_TARGETS} variable#	in the upper level ../Makefile#SAMPLE_TARGETS= many_random test_randomTARGETS= ${SAMPLE_TARGETS}# required vars#SHELL= /bin/sh# standard tools#SED= sedMAKEDEPEND= makedependCHMOD= chmodSORT= sortCMP= cmpTRUE= trueRM= rmTOUCH= touchMKDIR= mkdirMV= mvCO= co#### Standard rules and targets###all: ${TARGETS} .all	@${TRUE}test_random.o: test_random.c	${CC} ${CFLAGS} ${ALLOW_CUSTOM} test_random.c -ctest_random: test_random.o ../libcalc.a	${CC} ${LDFLAGS} test_random.o ${CALC_LIBS} ${LD_DEBUG} -o test_randommany_random.o: many_random.c	${CC} ${CFLAGS} ${ALLOW_CUSTOM} many_random.c -cmany_random: many_random.o ../libcalc.a	${CC} ${LDFLAGS} many_random.o ${CALC_LIBS} ${LD_DEBUG} -o many_random#### used by the upper level Makefile#### to determine of we have done all#.all:	${RM} -f .all	${TOUCH} .all#### File list generation.	 You can ignore this section.### We will form the names of source files as if they were in a# sub-directory called calc/lib.## NOTE: Due to bogus shells found on one common system we must have#	an non-emoty else clause for every if condition.  *sigh*###distlist: ${DISTLIST}	${Q} for i in ${DISTLIST} /dev/null; do \	    if [ X"$$i" != X"/dev/null" ]; then \		echo sample/$$i; \	    fi; \	donedistdir:	${Q} echo samplecalcliblist:	${Q} for i in ${CALCLIBLIST} /dev/null; do \	    if [ X"$$i" != X"/dev/null" ]; then \		echo sample/$$i; \	    fi; \	done#### Home grown make dependency rules.  Your system make not support# or have the needed tools.  You can ignore this section.## We will form a skelaton tree of *.c files containing only #include "foo.h"# lines and .h files containing the same lines surrounded by multiple include# prevention lines.  This allows us to build a static depend list that will# satisfy all possible cpp symbol definition combinations.###depend:	${Q} if [ -f Makefile.bak ]; then \		echo "Makefile.bak exists, remove or move it out of the way"; \		exit 1; \	else \	    ${TRUE}; \	fi	${Q} echo forming sample/skel	-${Q} ${RM} -rf skel	${Q} ${MKDIR} skel	${Q} ${MKDIR} skel/sample	-${Q} for i in ${C_SRC} /dev/null; do \	    if [ X"$$i" != X"/dev/null" ]; then \		${SED} -n '/^#[	 ]*include[	 ]*"/p' \		    "$$i" > "skel/sample/$$i"; \	    fi; \	done	-${Q} for i in ${H_SRC} /dev/null; do \	    if [ X"$$i" != X"/dev/null" ]; then \		if [ X"$$i" != X"/dev/null" ]; then \		    tag="`echo $$i | ${SED} 's/[\.+,:]/_/g'`"; \		    echo "#if !defined($$tag)" > "skel/sample/$$i"; \		    echo "#define $$tag" >> "skel/sample/$$i"; \		    ${SED} -n '/^#[	 ]*include[	 ]*"/p' "$$i" \			>> "skel/sample/$$i"; \		    echo '#endif /* '"$$tag"' */' >> "skel/sample/$$i"; \		fi; \	    fi; \	done	${Q} (cd ..; $(MAKE) hsrc)	${Q} for i in `cd ..; $(MAKE) h_list 2>&1 | \	    ${SED} -e '/Entering directory/d' \		   -e '/Nothing to be done/d' \		   -e '/Leaving directory/d'` /dev/null; do \	    if [ X"$$i" != X"/dev/null" ]; then \		tag="`echo $$i | ${SED} 's/[\.+,:]/_/g'`"; \		echo "#if !defined($$tag)" > "skel/$$i"; \		echo "#define $$tag" >> "skel/$$i"; \		${SED} -n '/^#[	 ]*include[	 ]*"/p' "../$$i" \		    >> "skel/$$i"; \		echo '#endif /* '"$$tag"' */' >> "skel/$$i"; \	    fi; \	done	-${Q} ${RM} -f skel/sample/makedep.out	${Q} echo sample/skel formed	${Q} echo forming sample dependency list	${Q} echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > \	    skel/sample/makedep.out	${Q} cd skel/sample; ${MAKEDEPEND} -w 1 -f makedep.out -I.. ${C_SRC}	-${Q} for i in ${C_SRC} /dev/null; do \	    if [ X"$$i" != X"/dev/null" ]; then \		echo "$$i" | ${SED} 's/^\(.*\)\.c/\1.o: \1.c/'; \	    fi; \	done >> skel/sample/makedep.out	${Q} echo sample dependency list formed	${Q} echo forming new sample/Makefile	-${Q} ${RM} -f Makefile.bak	${Q} ${MV} Makefile Makefile.bak	${Q} ${SED} -n '1,/^# DO NOT DELETE THIS LINE/p' Makefile.bak > Makefile	${Q} echo "" >> Makefile	${Q} ${SED} -n '3,$$p' skel/sample/makedep.out | \		LANG=C ${SORT} -u >> Makefile	-${Q} ${RM} -rf skel	-${Q} if ${CMP} -s Makefile.bak Makefile; then \	    echo 'sample Makefile was already up to date'; \	    ${MV} -f Makefile.bak Makefile; \	else \	    ${RM} -f Makefile.tmp; \	    ${MV} Makefile Makefile.tmp; \	    if [ -d RCS ]; then \		${CO} -l Makefile; \	    fi; \	    ${MV} Makefile.tmp Makefile; \	    if [ -d RCS ]; then \		echo new sample Makefile formed, you need to check it in; \	    fi; \	fi#### rpm rules###echo_inst_files: Makefile#### Utility rules###clean:	-${RM} -f ${SAMPLE_OBJ} coreclobber:	-${RM} -f ${SAMPLE_OBJ}	-${RM} -f ${TARGETS}	${RM} -f .all Makefile.tmp sample# install everything## NOTE: Keep the uninstall rule in reverse order to the install rule## NOTE: for right now we will not install anything#install: all	@${TRUE}# Try to remove everything that was installed## NOTE: Keep the uninstall rule in reverse order to the install rule## NOTE: nothing installed, nothing to uninstall#uninstall:	@${TRUE}#### make depend stuff#### DO NOT DELETE THIS LINEmany_random.o: ../alloc.hmany_random.o: ../block.hmany_random.o: ../byteswap.hmany_random.o: ../calc.hmany_random.o: ../calcerr.hmany_random.o: ../cmath.hmany_random.o: ../config.hmany_random.o: ../endian_calc.hmany_random.o: ../hash.hmany_random.o: ../have_const.hmany_random.o: ../have_malloc.hmany_random.o: ../have_memmv.hmany_random.o: ../have_newstr.hmany_random.o: ../have_stdlib.hmany_random.o: ../have_string.hmany_random.o: ../lib_util.hmany_random.o: ../longbits.hmany_random.o: ../md5.hmany_random.o: ../nametype.hmany_random.o: ../qmath.hmany_random.o: ../shs.hmany_random.o: ../shs1.hmany_random.o: ../string.hmany_random.o: ../value.hmany_random.o: ../win32dll.hmany_random.o: ../zmath.hmany_random.o: ../zrandom.hmany_random.o: many_random.ctest_random.o: ../alloc.htest_random.o: ../block.htest_random.o: ../byteswap.htest_random.o: ../calc.htest_random.o: ../calcerr.htest_random.o: ../cmath.htest_random.o: ../config.htest_random.o: ../endian_calc.htest_random.o: ../hash.htest_random.o: ../have_const.htest_random.o: ../have_malloc.htest_random.o: ../have_memmv.htest_random.o: ../have_newstr.htest_random.o: ../have_stdlib.htest_random.o: ../have_string.htest_random.o: ../lib_util.htest_random.o: ../longbits.htest_random.o: ../md5.htest_random.o: ../nametype.htest_random.o: ../qmath.htest_random.o: ../shs.htest_random.o: ../shs1.htest_random.o: ../string.htest_random.o: ../value.htest_random.o: ../win32dll.htest_random.o: ../zmath.htest_random.o: ../zrandom.htest_random.o: test_random.c

⌨️ 快捷键说明

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