makefile

来自「linux下远程启动服务/bootp服务器源代码」· 代码 · 共 70 行

TXT
70
字号
OBJS=bootpd.o log.o if.o conf.oTARGET=bootpd_nisRELEASE=0.2TARNAME=bootpdnis-${RELEASE}.tarCC=gccCFLAGS=-g LDFLAGS=## OS options# -----------## Sun Solaris# # uncomment the following line for Solaris##LDFLAGS +=-lnsl -lsocket## Backend options# ---------------## NIS+ Support## uncomment the following lines if you wish # to compile bootpd_nis with NIS+ maps support##CFLAGS += -D_NISPLUS#OBJS   += nisplus.o#TARGET = bootpd_nisplus#LDFLAGS += -lnsl## NIS support# uncomment the following lines for NIS maps supportCFLAGS += -D_NISOBJS   += nis.oLDFLAGS +=-lnsl## END OF CONFIGURATION## version option#CFLAGS += -DBOOTPDNIS_RELEASE="\"${RELEASE}\""all: ${TARGET}${TARGET}: ${OBJS}	${CC} ${OBJS} -o ${TARGET} ${LDFLAGS}   %.o: %.c	${CC} ${CFLAGS} -c $< -o $@   clean:	rm -f ${TARGET} ${OBJS}  *~ *.o core core.* ${TARNAME}${OBJS}: bootpd.h

⌨️ 快捷键说明

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