makefile

来自「unix网络编程的源码」· 代码 · 共 20 行

TXT
20
字号
include ../Make.defines

PROGS =	prodcons1 testsem testeintr
FUNCS = sem_close.o sem_getvalue.o sem_open.o sem_post.o \
		sem_trywait.o sem_unlink.o sem_wait.o

all:	${PROGS}

prodcons1:	prodcons1.o ${FUNCS}
		${CC} ${CFLAGS} -o $@ prodcons1.o ${FUNCS} ${LIBS}

testsem:	testsem.o ${FUNCS}
		${CC} ${CFLAGS} -o $@ testsem.o ${FUNCS} ${LIBS}

testeintr:	testeintr.o ${FUNCS}
		${CC} ${CFLAGS} -o $@ testeintr.o ${FUNCS} ${LIBS}

clean:
		rm -f ${PROGS} ${CLEANFILES}

⌨️ 快捷键说明

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