makefile

来自「The tar file contains the following file」· 代码 · 共 30 行

TXT
30
字号
all: ptfsf.o ptfsf-demo ptfsf-demo-file	ptfsf-file-maker

CC=gcc
LIBPATH=
INCPATH=
LIBS=-lfftw3_threads -lfftw3 -lm -lpthread

ptfsf.o: ptfsf.c ptfsf.h
	${CC} -Wall -O2 -c $< ${INCPATH}

ptfsf-demo: ptfsf-demo.c ptfsf.o ptfsf.h
	${CC} -Wall -O2 $< -o ptfsf-demo ptfsf.o\
	${LIBS} ${LIBPATH} ${INCPATH}

ptfsf-demo-file: ptfsf-demo-file.c ptfsf.o ptfsf.h
	${CC} -Wall -O2 $< -o ptfsf-demo-file ptfsf.o\
	${LIBS} ${LIBPATH} ${INCPATH}

ptfsf-file-maker: ptfsf-file-maker.c ptfsf.o ptfsf.h
	${CC} -Wall -O2 $< -o ptfsf-file-maker ptfsf.o\
	${LIBS} ${LIBPATH} ${INCPATH}

.SUFFIXES: .f .c

.c:
	${CC} -Wall -O2 $< -o $* ${LIBPATH} ${CLIBS} ${INCPATH}

clean:
	rm -rf *~ ptfsf.o ptfsf-file-maker ptfsf-demo ptfsf-demo-file

⌨️ 快捷键说明

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