📄 makefile
字号:
# Makefile for ...par/libSHELL = /bin/sh# Adapt the flags in the following paragraph to your systemSU = /pad/data5/zli/lfROOT = $(SU)/cwpOPTC = -xO3 -fast -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64# Search on the word "Comment" to complete adaptationB = $(ROOT)/binI = $(ROOT)/includeL = $(ROOT)/libD = $I/cwp.h $I/par.h $L/libcwp.aCC = $(CC)CFLAGS= $(OPTC) -I$I -DSCRATCHDIR=\"/scratch\"LFLAGS= -L$L -lcwpLIB = $L/libpar.aARCH = \ $(LIB)(askdoc.o) \ $(LIB)(atopkge.o) \ $(LIB)(docpkge.o) \ $(LIB)(ealloc.o) \ $(LIB)(errpkge.o) \ $(LIB)(getpars.o) \ $(LIB)(initargs.o) \ $(LIB)(syscalls.o) \ $(LIB)(subcalls.o) \ $(LIB)(gtparsf.o) \ $(LIB)(selfdoc.o)INSTALL: $(LIB) @touch $@$(ARCH) : $D$(LIB) : $(ARCH) ranlib $(LIB)remake : @rm -f $(LIB) @make ROOT=$(ROOT) OPTC=$(OPTC)list : ar tv $(LIB)clean: rm -f junk* core a.out# Can comment out if your make knows about C libs.c.a: @$(CC) -c $(CFLAGS) $< @ar rv $@ $*.o @rm -f $*.o.PRECIOUS: $(LIB)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -