?? makefile
字號:
# %W% %G% %U%## 1992 makefile## Copyright (c) 1992, Landon Curt Noll & Larry Bassel.# All Rights Reserved. Permission for personal, education or non-profit use is# granted provided this this copyright and notice are included in its entirety# and remains unaltered. All other uses must receive prior permission in # writing from both Landon Curt Noll and Larry Bassel.SHELL=/bin/shCHMOD=chmodCP=cpRM=rmSED=sedLN=lnUNIQ=uniqCB=cb GREP=grep# set this to where your C Processor resides## On some systems:# CPP=/lib/cpp#CPP=/usr/ccs/lib/acpp# flags for ansi compiles## NOTE: Some ANSI compilers make use of -Xa to turn on ANSI mode,# others such as gcc may want -ansi, others may want nothing# at all. Adjust the CFLAGS line as needed.## NOTE: Some compilers cannot optimize, or optimize some entries# entries incorrectly. You might want need to turn on -O # to see if your compiler can handle them.##CFLAGS=-O -XaCFLAGS=-XaCC=cc# misc shell babble#NOINCLUDE=$(SED) -e 's/^.\([ ]*\)include/%include/'SPACECLEAN=$(SED) -e 's/\([^ ]\)\([ ]\)[ ][ ]*/\1\2/g'CPPCLEAN=$(GREP) -v '^. [0-9][0-9]*'# winners that compile under ANSI C#WINNERS= adrian albert ant buzzard.1 buzzard.2 gson kivinen imc \ lush marangon nathan vern westleyALT_NAMES= adgrep am babble first ag whereamiall: $(WINNERS) $(ALT_NAMES)adrian: adrian.c $(CC) $(CFLAGS) adrian.c -o adrian $(RM) -f ad.temp adwc.c adbasename.c adecho.c adhead.c adsleep.c $(SED) '1s/\..*\./. wc ./' adrian.c > ad.temp -./adrian ad.temp <ad.temp >adwc.c $(CC) -o adwc adwc.c $(SED) '1s/\..*\./. basename ./' adrian.c > ad.temp -./adrian ad.temp <ad.temp >adbasename.c $(CC) -o adbasename adbasename.c $(SED) '1s/\..*\./. echo| ./' adrian.c > ad.temp -./adrian ad.temp <ad.temp >adecho.c $(CC) -o adecho adecho.c $(SED) '1s/\..*\./. head; ./' adrian.c > ad.temp -./adrian ad.temp <ad.temp >adhead.c $(CC) -o adhead adhead.c $(SED) '1s/\..*\./. sleep ./' adrian.c > ad.temp -./adrian ad.temp <ad.temp >adsleep.c $(CC) -o adsleep adsleep.c $(RM) -f ad.temp# NOTE: this is the original source that won#adrian.orig: adrian.orig.c $(CC) $(CFLAGS) adrian.orig.c -o adrian.origalbert: albert.c $(CC) $(CFLAGS) albert.c -o albert# NOTE: this is the original source that won#albert.orig: albert.orig.c $(CC) $(CFLAGS) albert.orig.c -o albert.origant: ant.c $(CC) $(CFLAGS) ant.c -o antbuzzard.1: buzzard.1.c $(CC) $(CFLAGS) buzzard.1.c -o buzzard.1babble.cppcb: buzzard.1.c $(NOINCLUDE) buzzard.1.c | \ $(CPP) $(CPPFLAGS) | \ $(CPPCLEAN) | \ $(CB) $(CBFLAGS) | \ $(UNIQ) | \ $(SPACECLEAN) > babble.cppcb 2>&1buzzard.2: buzzard.2.c $(CC) $(CFLAGS) buzzard.2.c -o buzzard.2# NOTE: this is the original source that won#buzzard.2.orig: buzzard.2.orig.c $(CC) $(CFLAGS) buzzard.2.orig.c -o buzzard.2.origgson: gson.c $(CC) $(CFLAGS) gson.c -o gson# NOTE: some systems may only need:## $(CC) $(CFLAGS) kivinen.c -o kivinen -lX11#kivinen: kivinen.c $(CC) $(CFLAGS) kivinen.c -o kivinen -lX11 -lsocket -lresolv -lnsl# NOTE: this is the original program that won## NOTE: some systems may only need:## $(CC) $(CFLAGS) kivinen.c -o kivinen -lX11#kivinen.orig: kivinen.orig.c $(CC) $(CFLAGS) kivinen.orig.c -o kivinen.orig -lX11 \ -lsocket -lresolv -lnslimc: imc.c $(CC) $(CFLAGS) imc.c -o imc# NOTE: this is the original program that won#imc.orig: imc.orig.c $(CC) $(CFLAGS) imc.orig.c -o imc.origlush: lush.c $(CC) $(CFLAGS) lush.c -o lushlush.again: lush.c $(CC) $(CFLAGS) lush.c -o lush.again $(RM) -f lush.again# NOTE: this is the original program that won#lush.orig: lush.orig.c $(CC) $(CFLAGS) lush.orig.c -o lush.orig# NOTE: some systems may need:## $(CC) $(CFLAGS) marangon.c -o marangon -lcurses -ltermcap#marangon: marangon.c $(CC) $(CFLAGS) marangon.c -o marangon -lcurses# NOTE: this is the original program that won## NOTE: some systems may need:## $(CC) $(CFLAGS) marangon.orig.c -o marangon.orig -lcurses -ltermcap#marangon.orig: marangon.orig.c $(CC) $(CFLAGS) marangon.orig.c -o marangon.orig -lcursesnathan: nathan.c $(CC) $(CFLAGS) nathan.c -o nathan# NOTE: this is the original program that won#nathan.orig: nathan.orig.c $(CC) $(CFLAGS) nathan.orig.c -o nathan.origvern: vern.tmp.c $(CC) $(CFLAGS) vern.tmp.c -o vernvern.tmp.c: vern.c $(RM) -f vern.tmp.c $(SED) <vern.c 's/{ /(/g;s/} /)/g;s/; /#define /' | \ $(SED) 's/} /=/g;s/{ /i/g' >vern.tmp.c# NOTE: this is the original program that won#vern.orig: vern.orig.tmp.c $(CC) $(CFLAGS) vern.orig.tmp.c -o vern.origvern.orig.tmp.c: vern.orig.c $(RM) -f vern.orig.tmp.c $(SED) <vern.orig.c 's/{ /(/g;s/} /)/g;s/; /#define /' | \ $(SED) 's/} /=/g;s/{ /i/g' >vern.orig.tmp.cwestley: westley.c $(CC) $(CFLAGS) westley.c -o westley# alternate names for selected entries#adgrep: adrian $(RM) -f adgrep $(LN) adrian adgrepam: ant $(RM) -f am $(LN) ant ambabble: buzzard.1 $(RM) -f babble $(LN) buzzard.1 babblefirst: buzzard.2 $(RM) -f first $(LN) buzzard.2 firstag: gson $(RM) -f ag $(LN) gson agwhereami: westley $(RM) -f whereami $(LN) westley whereamiclean: $(RM) -f *.o a.out core $(RM) -f vern.tmp.c lush.again babble.cppcb vern.orig.tmp.c $(RM) -f ad.temp adwc.c adbasename.c adecho.c adhead.c adsleep.cclobber: clean $(RM) -f $(WINNERS) a.out $(RM) -f $(ALT_NAMES) $(RM) -f adwc adbasename adecho adhead adsleep $(RM) -f adrian.orig lush.orig nathan.orig buzzard.2.orig $(RM) -f kivinen.orig imc.orig albert.orig marangon.orig vern.origam_clobber: clean am $(RM) -f am.safe $(CP) am am.safe $(RM) -f $(WINNERS) a.out $(RM) -f $(ALT_NAMES) $(RM) -f adwc adbasename adecho adhead adsleep $(RM) -f adrian.orig lush.orig nathan.orig buzzard.2.orig $(RM) -f kivinen.orig imc.orig albert.orig marangon.orig vern.orig $(CP) am.safe am $(RM) -f am.safenuke: clobber @trueinstall: all cat $(WINNERS) > /dev/null
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -