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

📄 makefile

📁 国外网站上的一些精典的C程序
💻
📖 第 1 页 / 共 3 页
字号:
#  SNIPPETS master makefile##  Due to the lack of standard syntax between various make utilities, this#  generic makefile template is provided as a starting point. It may be used#  as-is with most reasonably standard Unix-style make utilties. For further#  ideas on customizing it for your system, see MAKE.INI.##  Public domain by Bob Stoutver=9707#  Uncomment one set of the following for DOS real mode or add your own...#cmm=s#amm=SMALLcmm=camm=COMPACT#cmm=m#amm=MEDIUM#cmm=l#amm=LARGE#cmm=h#amm=HUGE#  Uncomment one of the following or add your own...cc=sc -m$(cmm)		# Symanteclc=lib /C /Blb=sls$(cmm)$(ver)lr=lib.rsp#cc=wcl -m$(cmm)	# Watcom#lc=wlib#lb=slw$(cmm)$(ver)#lr=wlib.rsp#cc=cl /A$(cmm)		# Microsoft#lc=lib#lb=slm$(cmm)$(ver)#lr=lib.rsp#cc=bcc -m$(cmm)	# Borland#lc=tlib#lb=slb$(cmm)$(ver)#lr=tlib.rsp#cc=ztc -m$(cmm)	# Zortech#lc=zorlib#lb=slz$(cmm)$(ver)#lr=zorlib.rsp#cc=pc /m$(cmm)		# Mix#cc=gcc			# Gnuct=$(cc) -DTEST         # For files which include an "#ifdef TEST" section                        # when compiling to an executable#  Uncomment one of each of the following sets, or add your own...as=MASM /Mx /z /Dmemodel=$(amm)#as=TASM /jMASM /mx /z /Dmemodel=$(amm)rm=del#rm=rmmv=move#mv=mvo=obj#o=ox=exe#x=com#.SUFFIXES: .c .cpp .asm        # For make utilities which require                                # .SUFFIXES be set for implicit rulesl=lib$(lb).$(l)	: allobj	$(lc) $(lb).$(l) @$(lr)#  The following macros provides for post processing after compilation.##  The first macro aids debugging when using a compiler (e.g. Watcom) which#  outputs errors to individual .err files. Files which include a test main()#  function, and which include functions which are themselves linked into#  other executables, may have errors in the test main() function which go#  undetected when the file is recompiled without the test main() being#  enabled. In such a case, the .err file written when first compiled as an#  executable may be erased when recompiled as a linkable object. Invoking#  the $(extra1) macro renames the .err file resulting from compilation to#  an executable to a .erx file.##  The second and third macroa are for use with the DJGPP port of gcc, to#  convert COFF output files to DOS executables.extra1=if exist $*.err $(mv) $*.err $*.erx#extra2=$(mv) a.out $*#extra3=coff2exe $*#  Default rules.c.$(o):	$(cc) -c $*.c.cpp.$(o):	$(cc) -c $*.cpp.c.$(x):	$(cc) $*.c.cpp.$(x):	$(cc) $*.cpp.asm.$(o):	$(as) $*.asm;#  Clean the directory, start from scratchclean :	$(rm) *.$(o)	$(rm) *.$(x)	$(rm) *.er*#  Executable dependencies begin herebastrngs.$(x)	: bastrngs.c sniptype.h bastrngs.h	$(ct) bastrngs.c	$(rm) bastrngs.$(o)	$(extra1)cards.$(x)	: cards.cpp cards.hpp	$(ct) cards.cpp	$(rm) cards.$(o)	$(extra1)ccard.$(x)	: ccard.c ccard.h ccardplv.h	$(ct) ccard.c	$(rm) ccard.$(o)	$(extra1)ctrlprnt.$(x)	: ctrlprnt.c ctrlprnt.h	$(ct) ctrlprnt.c	$(rm) ctrlprnt.$(o)	$(extra1)err_exit.$(x)	: err_exit.c errors.h	$(ct) err_exit.c	$(rm) err_exit.$(o)	$(extra1)ferrorf.$(x) : ferrorf.c errors.h	$(ct) ferrorf.c	$(rm) ferrorf.$(o)	$(extra1)initvars.$(x)	: initvars.c initvars.h errors.h ferrorf.$(o)	$(ct) initvars.c ferrorf.$(o)	$(rm) initvars.$(o)	$(extra1)isisbn.$(x)	: isisbn.c isisbn.h	$(ct) isisbn.c	$(rm) isisbn.$(o)	$(extra1)whicharc.$(x)	: whicharc.cpp whicharc.h archive.$(o) archive.hpp	$(ct) whicharc.cpp	$(rm) whicharc.$(o)	$(extra1)ansiflen.$(x)	: ansiflen.c snipfile.h	$(ct) ansiflen.c	$(rm) ansiflen.$(o)	$(extra1)existsx.$(x)	: existsx.c snipfile.h snip_str.h stptok.$(o) unix2dos.$(o)	$(ct) existsx.c stptok.$(o) unix2dos.$(o)	$(rm) existsx.$(o)	$(extra1)fcompare.$(x)	: fcompare.c snipfile.h sniptype.h	$(ct) fcompare.c	$(rm) fcompare.$(o)	$(extra1)srchfile.$(x)	: srchfile.c sniptype.h snipfile.h ferrorf.$(o)	$(ct) srchfile.c ferrorf.$(o)	$(rm) srchfile.$(o)	$(extra1)textmod.$(x)	: textmod.c snipfile.h ferrorf.$(o)	$(cc) textmod.c ferrorf.$(o)	$(rm) textmod.$(o)update.$(x)	: update.c update.h	$(ct) update.c	$(rm) update.$(o)	$(extra1)memmem.$(x)	: memmem.c snip_str.h	$(ct) memmem.c	$(rm) memmem.$(o)	$(extra1)fmemmem.$(x)	: fmemmem.c fptr_add.$(o) snip_str.h snpdosys.h	$(ct) fmemmem.c fptr_add.$(o)	$(rm) fmemmem.$(o)	$(extra1)sstrdel.$(x) : sstrdel.c snip_str.h	$(ct) sstrdel.c	$(rm) sstrdel.$(o)	$(extra1)stptok.$(x)	: stptok.c snip_str.h	$(ct) stptok.c	$(rm) stptok.$(o)	$(extra1)strchcat.$(x)	: strchcat.c snip_str.h	$(ct) strchcat.c	$(rm) strchcat.$(o)	$(extra1)strdel.$(x)	: strdel.c snip_str.h	$(ct) strdel.c	$(rm) strdel.$(o)	$(extra1)strdelch.$(x)	: strdelch.c snip_str.h	$(ct) strdelch.c	$(rm) strdelch.$(o)	$(extra1)stristr.$(x) : stristr.c snip_str.h	$(ct) stristr.c	$(rm) stristr.$(o)	$(extra1)strrepl.$(x) : strrepl.c snip_str.h	$(ct) strrepl.c	$(rm) strrepl.$(o)	$(extra1)strrev.$(x)	: strrev.c snip_str.h	$(ct) strrev.c	$(rm) strrev.$(o)	$(extra1)strrpbrk.$(x)	: strrpbrk.c snip_str.h	$(ct) strrpbrk.c	$(rm) strrpbrk.$(o)	$(extra1)strupr.$(x)	: strupr.c snip_str.h	$(ct) strupr.c	$(rm) strupr.$(o)	$(extra1)ruleline.$(x)	: ruleline.c snip_str.h	$(ct) ruleline.c	$(rm) ruleline.$(o)	$(extra1)trim.$(x)	: trim.c snip_str.h	$(ct) trim.c	$(rm) trim.$(o)	$(extra1)hugesort.$(x)	: hugesort.c snipsort.h extkword.h err_exit.$(o)	$(ct) hugesort.c err_exit.$(o)	$(rm) hugesort.$(o)	$(extra1)ll_msort.$(x)	: ll_msort.c snipsort.h	$(cc) ll_msort.c	$(rm) ll_msort.$(o)index.$(x)	: index.c ferrorf.$(o)	$(cc) index.c ferrorf.$(o)	$(rm) index.$(o)lookup.$(x)	: lookup.c ferrorf.$(o)	$(cc) lookup.c ferrorf.$(o)	$(rm) lookup.$(o)dtotp6.$(x)	: dtotp6.c dtotp6.h	$(ct) dtotp6.c	$(rm) dtotp6.$(o)	$(extra1)bcdl.$(x)	: bcdl.c sniptype.h snipmath.h	$(ct) bcdl.c	$(rm) bcdl.$(o)	$(extra1)bcdd.$(x)	: bcdd.c sniptype.h snipmath.h	$(ct) bcdd.c	$(rm) bcdd.$(o)	$(extra1)combin.$(x)	: combin.c snipmath.h	$(ct) combin.c	$(rm) combin.$(o)	$(extra1)cubic.$(x)	: cubic.c snipmath.h	$(ct) cubic.c	$(rm) cubic.$(o)	$(extra1)dbl2long.$(x)	: dbl2long.c snipmath.h	$(ct) dbl2long.c	$(rm) dbl2long.$(o)	$(extra1)dblround.$(x)	: dblround.c snipmath.h	$(ct) dblround.c	$(rm) dblround.$(o)	$(extra1)etphi.$(x)	: etphi.c isqrt.$(o)	$(ct) etphi.c isqrt.$(o)	$(rm) etphi.$(o)	$(extra1)factoryl.$(x)	: factoryl.c snipmath.h dblround.$(o)	$(ct) factoryl.c dblround.$(o)	$(rm) factoryl.$(o)	$(extra1)fibo.$(x)	: fibo.c snipmath.h dblround.$(o)	$(ct) fibo.c dblround.$(o)	$(rm) fibo.$(o)	$(extra1)ipow.$(x)	: ipow.c snipmath.h	$(ct) ipow.c	$(rm) ipow.$(o)	$(extra1)ispow2.$(x)	: ispow2.c snipmath.h	$(ct) ispow2.c	$(rm) ispow2.$(o)	$(extra1)isqrt.$(x)	: isqrt.c snipmath.h	$(ct) isqrt.c	$(rm) isqrt.$(o)	$(extra1)rad2deg.$(x) : rad2deg.c snipmath.h	$(ct) rad2deg.c	$(rm) rad2deg.$(o)	$(extra1)spigot.$(x)	: spigot.c	$(cc) spigot.c	$(rm) spigot.$(o)pi.$(x)	: pi.c extkword.h big_mall.h	$(cc) pi.c	$(rm) pi.$(o)pi8.$(x)	: pi8.c	$(cc) pi6.c	$(rm) pi6.$(o)pi_agm.$(x)	: pi_agm.c ispow2.$(o) snipmath.h	$(cc) pi_agm.c ispow2.$(o)	$(rm) pi_agm.$(o)rand1.$(x)	: rand1.c	$(cc) rand1.c	$(rm) rand1.$(o)rg_rand.$(x) : rg_rand.c	$(ct) rg_rand.c	$(rm) rg_rand.$(o)	$(extra1)bigtest.exe	: bigtest.c bignum.h bignum1.$(o) bignum2.$(o)	$(cc) bigtest.c bignum1.$(o) bignum2.$(o)	$(rm) bigtest.$(o)bascnvrt.$(x)	: bascnvrt.c numcnvrt.h extkword.h ltostr.$(o)	$(ct) bascnvrt.c ltostr.$(o)	$(rm) bascnvrt.$(o)	$(extra1)commaflt.$(x)	: commaflt.c numcnvrt.h snip_str.h	$(ct) commaflt.c	$(rm) commaflt.$(o)	$(extra1)commafmt.$(x)	: commafmt.c numcnvrt.h	$(ct) commafmt.c	$(rm) commafmt.$(o)	$(extra1)eng.$(x)	: eng.c snipmath.h	$(ct) eng.c	$(rm) eng.$(o)	$(extra1)eval.$(x)	: eval.c sniptype.h snip_str.h snipmath.h rmallws.$(o)	$(ct) eval.c rmallws.$(o)	$(rm) eval.$(o)	$(extra1)fmtmoney.$(x)	: fmtmoney.c snipmath.h	$(ct) fmtmoney.c	$(rm) fmtmoney.$(o)	$(extra1)hexorint.$(x)	: hexorint.c sniptype.h numcnvrt.h	$(ct) hexorint.c	$(rm) hexorint.$(o)	$(extra1)hstr_i.$(x)	: hstr_i.c numcnvrt.h	$(ct) hstr_i.c	$(rm) hstr_i.$(o)	$(extra1)ltoa.$(x)	: ltoa.c numcnvrt.h	$(ct) ltoa.c	$(rm) ltoa.$(o)	$(extra1)ltostr.$(x)	: ltostr.c numcnvrt.h	$(ct) ltostr.c	$(rm) ltostr.$(o)	$(extra1)ord_text.$(x)	: ord_text.c numcnvrt.h	$(ct) ord_text.c	$(rm) ord_text.$(o)	$(extra1)scanfrac.$(x)	: scanfrac.c snipmath.h	$(ct) scanfrac.c	$(rm) scanfrac.$(o)	$(extra1)l2roman.$(x)	: l2roman.c sniptype.h	$(ct) l2roman.c	$(rm) l2roman.$(o)	$(extra1)roman2l.$(x)	: roman2l.c sniptype.h	$(ct) roman2l.c	$(rm) roman2l.$(o)	$(extra1)str27seg.$(x)	: str27seg.c numcnvrt.h	$(ct) str27seg.c	$(rm) str27seg.$(o)	$(extra1)amalloc.$(x)	: amalloc.c snparray.h	$(ct) amalloc.c	$(rm) amalloc.$(o)	$(extra1)mdasort.$(x)	: mdasort.c amalloc.$(o) mdalloc.$(o) snparray.h	$(cc) mdasort.c amalloc.$(o) mdalloc.$(o)	$(rm) mdasort.$(o)bitcnt_1.$(x)	: bitcnt_1.c bitops.h snip_str.h	$(ct) bitcnt_1.c	$(rm) bitcnt_1.$(o)	$(extra1)bitcnt_2.$(x)	: bitcnt_2.c bitops.h snip_str.h	$(ct) bitcnt_2.c	$(rm) bitcnt_2.$(o)	$(extra1)bitcnt_3.$(x)	: bitcnt_3.c bitops.h snip_str.h	$(ct) bitcnt_3.c	$(rm) bitcnt_3.$(o)	$(extra1)bitcnt_4.$(x)	: bitcnt_4.c bitops.h snip_str.h	$(ct) bitcnt_4.c	$(rm) bitcnt_4.$(o)	$(extra1)bitcnts.$(x)	: bitcnts.c bitops.h bitcnt_1.$(o) bitcnt_2.$(o) \		  bitcnt_3.$(o) bitcnt_4.$(o)	$(cc) bitcnts.c bitcnt_1.$(o) bitcnt_2.$(o) bitcnt_3.$(o) \		bitcnt_4.$(o)	$(rm) bitcnts.$(o)bitfiles.$(x)	: bitfiles.c bitops.h	$(ct) bitfiles.c	$(rm) bitfiles.$(o)	$(extra1)bitstrng.$(x)	: bitstrng.c bitops.h	$(ct) bitstrng.c	$(rm) bitstrng.$(o)	$(extra1)bstr_i.$(x)	: bstr_i.c bitops.h	$(ct) bstr_i.c	$(rm) bstr_i.$(o)	$(extra1)hash.$(x)	: hash.c hash.h	$(ct) hash.c	$(rm) hash.$(o)	$(extra1)match.$(x)	: match.c match.h	$(ct) match.c	$(rm) match.$(o)	$(extra1)soundex.$(x) : soundex.c phonetic.h	$(ct) soundex.c	$(rm) soundex.$(o)	$(extra1)soundex4.$(x)	: soundex4.c phonetic.h snip_str.h	$(ct) soundex4.c	$(rm) soundex4.$(o)	$(extra1)soundex5.$(x)	: soundex5.c phonetic.h	$(ct) soundex5.c	$(rm) soundex5.$(o)	$(extra1)metaphon.$(x)	: metaphon.c phonetic.h dirent.h vfname.$(o) strchcat.$(o) \			  posixdir.$(o) unix2dos.$(o)	$(ct) metaphon.c vfname.$(o) strchcat.$(o) posixdir.$(o) unix2dos.$(o)	$(rm) metaphon.$(o)	$(extra1)approx.$(x)	: approx.c phonetic.h	$(ct) approx.c	$(rm) approx.$(o)	$(extra1)getcmt.$(x)	: getcmt.c	$(cc) getcmt.c	$(rm) getcmt.$(o)testcmt.$(x) : testcmt.c	$(cc) testcmt.c	$(rm) testcmt.$(o)c_cmnt.$(x)	: c_cmnt.c	$(cc) c_cmnt.c	$(rm) c_cmnt.$(o)cmtconvr.$(x)	: cmtconvr.cpp cmtparsr.cpp	$(cc) cmtconvr.cpp cmtparsr.cpp	$(rm) cmtconvr.$(o)	$(rm) cmtparsr.$(o)cmtcount.$(x)	: cmtcount.cpp cmtparsr.cpp	$(cc) cmtcount.cpp cmtparsr.cpp	$(rm) cmtcount.$(o)	$(rm) cmtparsr.$(o)cmtremov.$(x)	: cmtremov.cpp cmtparsr.cpp	$(cc) cmtremov.cpp cmtparsr.cpp	$(rm) cmtremov.$(o)	$(rm) cmtparsr.$(o)cmtxtrac.$(x)	: cmtxtrac.cpp cmtparsr.cpp	$(cc) cmtxtrac.cpp cmtparsr.cpp	$(rm) cmtxtrac.$(o)	$(rm) cmtparsr.$(o)commconv.$(x)	: commconv.c	$(cc) commconv.c	$(rm) commconv.$(o)remcmmnt.$(x)	: remcmmnt.c	$(cc) remcmmnt.c	$(rm) remcmmnt.$(o)csplit.$(x)	: csplit.c	$(cc) csplit.c	$(rm) csplit.$(o)daynum.$(x)	: daynum.c scaldate.h scaldate.$(o)	$(ct) daynum.c scaldate.$(o)	$(rm) daynum.$(o)	$(extra1)isdst.$(x)	: isdst.c sniptype.h scaldate.h datetime.h scaldate.$(o) \		  parsdate.$(o) daynum.$(o)	$(ct) isdst.c scaldate.$(o) parsdate.$(o) daynum.$(o)	$(rm) isdst.$(o)	$(extra1)today.$(x)	: today.c scaldate.h scaldate.$(o)	$(ct) today.c scaldate.$(o)	$(rm) today.$(o)	$(extra1)dow.$(x)	: dow.c scaldate.h	$(ct) dow.c	$(rm) dow.$(o)	$(extra1)fdate.$(x)	: fdate.c ftime.h dirport.h scaldate.h scaldate.$(o) \		  ftime.$(o)	$(ct) fdate.c scaldate.$(o) ftime.$(o)	$(rm) fdate.$(o)	$(extra1)cal.$(x)	: cal.c scaldate.h scaldate.$(o) today.$(o)	$(cc) cal.c scaldate.$(o) today.$(o)	$(rm) cal.$(o)jdn_l.$(x)	: jdn_l.c datetime.h	$(ct) jdn_l.c	$(rm) jdn_l.$(o)	$(extra1)easter.$(x)	: easter.c datetime.h	$(ct) easter.c	$(rm) easter.$(o)	$(extra1)addtime.$(x) : addtime.c datetime.h	$(ct) addtime.c	$(rm) addtime.$(o)	$(extra1)moon_age.$(x)	: moon_age.c datetime.h	$(ct) moon_age.c	$(rm) moon_age.$(o)	$(extra1)parsdate.$(x)	: parsdate.c datetime.h	$(ct) parsdate.c	$(rm) parsdate.$(o)	$(extra1)parstime.$(x)	: parstime.c datetime.h	$(ct) parstime.c	$(rm) parstime.$(o)	$(extra1)strftime.$(x)	: strftime.c	$(ct) strftime.c	$(rm) strftime.$(o)	$(extra1)datedemo.$(x)	: datedemo.cpp date.hpp date.$(o)	$(cc) datedemo.cpp date.$(o)	$(rm) datedemo.$(o)w_wrap.$(x)	: w_wrap.c w_wrap.h	$(ct) w_wrap.c	$(rm) w_wrap.$(o)	$(extra1)center.$(x)	: center.c w_wrap.h w_wrap.$(o)

⌨️ 快捷键说明

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