?? makefile
字號:
# %W% %G% %U%## 1993 makefile## Copyright (c) 1993, Landon Curt Noll & Larry Bassel.# All Rights Reserved. Permission for personal, educational 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=ln# 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 -Xa#CFLAGS=-XaCFLAGS= -ansi#CFLAGS=# ANSI compiler## Set CC to the name of your ANSI compiler.#CC=ccCC=gcc# 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= ant cmills dgibson ejb jonth leo lmfjyh plummer rince schnitzi vanbALT_NAMES= ag ag.doc chris mind jkball: $(WINNERS) $(ALT_NAMES)ant: ant.c ${CC} ${CFLAGS} ant.c -o antcmills: cmills.c ${CC} ${CFLAGS} cmills.c -o cmills -lX11dgibson: dgibson.c dgibson.sh dgibson.data1 -@if [ ! -f life.d ] ; then \ echo "cp dgibson.data1 life.d"; \ cp dgibson.data1 life.d; \ echo "rm -f data.name"; \ rm -f data.name; \ echo "echo dgibson.data1 > data.name"; \ echo dgibson.data1 > data.name; \ fi ${CC} ${CFLAGS} dgibson.c -o dgibson -${CHMOD} +x dgibson.shejb: ejb.c ${CC} ${CFLAGS} ejb.c -o ejbjonth: jonth.c ${RM} -f jonth.tmp.c ${SED} -e s/\^\ /#define/ -e 's/@/Window(D,/g' jonth.c > jonth.tmp.c ${CC} ${CFLAGS} \ -DXX1='H 19;}M(J,4)}N H 20;}M(T,4)}q(m,w,' \ -DXX='XKeycodeToKeysym(D,o[13],0);K 12:Y();}R;}d XX1' \ jonth.tmp.c -o jonth -lX11leo: leo.c ${CC} ${CFLAGS} leo.c -o leolmfjyh: lmfjyh.c ${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c ${CP} lmfjyh.c \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c ${CC} ${CFLAGS} \ \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c \ -o lmfjyhplummer: plummer.c ${CC} ${CFLAGS} plummer.c -o plummerrince: rince.c ${CC} ${CFLAGS} rince.c -lcurses -ltermcap -o rince# NOTE: this is the original source that won#rince.orig: rince.orig.c $(CC) $(CFLAGS) rince.orig.c -lcurses -ltermcap -o rince.origschnitzi: schnitzi.c ${CC} ${CFLAGS} schnitzi.c -o schnitzivanb: vanb.c ${CC} ${CFLAGS} -DO5=main vanb.c -o vanb# alternate names for selected entries#ag: ant $(RM) -f ag $(LN) ant agag.doc: ant.doc $(RM) -f ag.doc $(LN) ant.doc ag.docchris: cmills $(RM) -f chris $(LN) cmills chrismind: leo $(RM) -f mind $(LN) leo mindjkb: rince $(RM) -f jkb $(LN) rince jkbtidy: ${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".cclean: $(RM) -f *.o a.out core clobber: clean tidy $(RM) -f $(WINNERS) $(RM) -f $(ALT_NAMES) ${RM} -f jonth.tmp.c life.d rince.orig data.name data.name2nuke: clobber @trueinstall: all cat $(WINNERS) > /dev/null
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -