📄 makefile
字号:
# Makefile for ...su/libSHELL = /bin/sh# Adapt the flags in the following paragraph to your systemSU = /files2/data5/zli/lfROOT = $(SU)/cwpOPTC = -xO3 -fast -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64B = $(ROOT)/binI = $(ROOT)/includeL = $(ROOT)/libCFLAGS= $(OPTC) -I$ILFLAGS= -L$L -lpar -lcwp -lmTFLAGS = -g -I$ICC = $(CC)LIB = $L/libsu.aARCH = $(LIB)(fgettra.o) $(LIB)(fgettr.o) $(LIB)(fputtr.o) \ $(LIB)(hdrpkge.o) $(LIB)(valpkge.o) \ $(LIB)(conv_float.o) \ $(LIB)(tabplot.o) \ $(LIB)(fgethdr.o) $(LIB)(fputhdr.o) \ $(LIB)(bhdrpkge.o) \ $(LIB)(auxgettr.o) \ $(LIB)(auxputtr.o) \ $(LIB)(auxgethdr.o) \ $(LIB)(auxputhdr.o) \ $(LIB)(fgtra64.o) \ $(LIB)(hdsearch.o) \ $(LIB)(idhdrs.o)INSTALL: $(LIB) @touch $@$(LIB) : $(ARCH) ar rvu $(LIB) ranlib $(LIB)remake : @rm -f $(LIB) @make ROOT=$(ROOT) OPTC=$(OPTC)list : ar tv $(LIB)depend: makedepend -I$I *.c# Testing routinestests: tgettr tputtr tarraytgettr: fgettr.c $(CC) $(TFLAGS) -DTEST -DGETTR fgettr.c $(LIB) $(LFLAGS) -o tgettr @echo tgettr ready--running benchmark suplane offset=-100 | sugethw offset @echo convert offset to absolute value suplane offset=-100 | tgettr | sugethw offsettputtr: fputtr.c $(CC) $(TFLAGS) -DTEST -DPUTTR fputtr.c $(LIB) $(LFLAGS) -o tputtr @echo tputtr ready--running benchmark suplane offset=-100 | sugethw offset @echo convert offset to absolute value suplane offset=-100 | tputtr | sugethw offsettarray: arraypkge.c $(CC) $(TFLAGS) -DTEST arraypkge.c $(LIB) $(LFLAGS) -o tarray @echo arraypkge ready--running benchmark -tarrayclean: rm -f ato err io tarray tgetname tgetpar tgettr tputtr tstatfil \ junk* core a.outlist: @ls *.c | pr -5 -t -l22 | p # Can comment out if your make knows about C libs.c.a: @$(CC) -c $(CFLAGS) $< @ar rv $@ $*.o @rm -f $*.o.PRECIOUS: $(LIB)# DO NOT DELETE THIS LINE -- make depend depends on it.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -