⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bsd.prog.mk

📁 早期freebsd实现
💻 MK
字号:
#	@(#)bsd.prog.mk	8.2 (Berkeley) 4/2/94.if !defined(NOINCLUDE) && exists(${.CURDIR}/../Makefile.inc).include "${.CURDIR}/../Makefile.inc".endif.SUFFIXES: .out .o .c .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0.8.0 .7.0 .6.0 .5.0 .4.0 .3.0 .2.0 .1.0:	nroff -man ${.IMPSRC} > ${.TARGET}CFLAGS+=${COPTS}STRIP?=	-sBINGRP?=	binBINOWN?=	binBINMODE?=	555LIBC?=		/usr/lib/libc.aLIBCOMPAT?=	/usr/lib/libcompat.aLIBCURSES?=	/usr/lib/libcurses.aLIBDBM?=	/usr/lib/libdbm.aLIBDES?=	/usr/lib/libdes.aLIBL?=		/usr/lib/libl.aLIBKDB?=	/usr/lib/libkdb.aLIBKRB?=	/usr/lib/libkrb.aLIBKVM?=	/usr/lib/libkvm.aLIBM?=		/usr/lib/libm.aLIBMP?=		/usr/lib/libmp.aLIBPC?=		/usr/lib/libpc.aLIBPLOT?=	/usr/lib/libplot.aLIBRESOLV?=	/usr/lib/libresolv.aLIBRPC?=	/usr/lib/sunrpc.aLIBTERM?=	/usr/lib/libterm.aLIBUTIL?=	/usr/lib/libutil.a.if defined(SHAREDSTRINGS)CLEANFILES+=strings.c.o:	${CC} -E ${CFLAGS} ${.IMPSRC} | xstr -c -	@${CC} ${CFLAGS} -c x.c -o ${.TARGET}	@rm -f x.c.endif.if defined(PROG).if defined(SRCS)OBJS+=  ${SRCS:R:S/$/.o/g}${PROG}: ${OBJS} ${LIBC} ${DPADD}	${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}.else defined(SRCS)SRCS= ${PROG}.c${PROG}: ${SRCS} ${LIBC} ${DPADD}	${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${SRCS} ${LDADD}MKDEP=	-p.endif.if	!defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \	!defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \	!defined(MAN7) && !defined(MAN8) && !defined(NOMAN)MAN1=	${PROG}.0.endif.endif.if !defined(NOMAN)MANALL=	${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8}.elseMANALL=.endifmanpages: ${MANALL}_PROGSUBDIR: .USE.if defined(SUBDIR) && !empty(SUBDIR)	@for entry in ${SUBDIR}; do \		(echo "===> $$entry"; \		if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \			cd ${.CURDIR}/$${entry}.${MACHINE}; \		else \			cd ${.CURDIR}/$${entry}; \		fi; \		${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/}); \	done.endif.if !target(all).MAIN: allall: ${PROG} ${MANALL} _PROGSUBDIR.endif.if !target(clean)clean: _PROGSUBDIR	rm -f a.out [Ee]rrs mklog ${PROG}.core ${PROG} ${OBJS} ${CLEANFILES}.endif.if !target(cleandir)cleandir: _PROGSUBDIR	rm -f a.out [Ee]rrs mklog ${PROG}.core ${PROG} ${OBJS} ${CLEANFILES}	rm -f .depend ${MANALL}.endif# some of the rules involve .h sources, so remove them from mkdep line.if !target(depend)depend: .depend _PROGSUBDIR.depend: ${SRCS}.if defined(PROG)	mkdep ${MKDEP} ${CFLAGS:M-[ID]*} ${.ALLSRC:M*.c}.endif.endif.if !target(install).if !target(beforeinstall)beforeinstall:.endif.if !target(afterinstall)afterinstall:.endifrealinstall: _PROGSUBDIR.if defined(PROG)	install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \	    ${INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}.endif.if defined(HIDEGAME)	(cd ${DESTDIR}/usr/games; rm -f ${PROG}; ln -s dm ${PROG}; \	    chown games.bin ${PROG}).endif.if defined(LINKS) && !empty(LINKS)	@set ${LINKS}; \	while test $$# -ge 2; do \		l=${DESTDIR}$$1; \		shift; \		t=${DESTDIR}$$1; \		shift; \		echo $$t -\> $$l; \		rm -f $$t; \		ln $$l $$t; \	done; true.endifinstall: afterinstall maninstallafterinstall: realinstallrealinstall: beforeinstall.endif.if !target(lint)lint: ${SRCS} _PROGSUBDIR.if defined(PROG)	@${LINT} ${LINTFLAGS} ${CFLAGS} ${.ALLSRC} | more 2>&1.endif.endif.if !target(obj).if defined(NOOBJ)obj: _PROGSUBDIR.elseobj: _PROGSUBDIR	@cd ${.CURDIR}; rm -rf obj; \	here=`pwd`; dest=/usr/obj/`echo $$here | sed 's,/usr/src/,,'`; \	echo "$$here -> $$dest"; ln -s $$dest obj; \	if test -d /usr/obj -a ! -d $$dest; then \		mkdir -p $$dest; \	else \		true; \	fi;.endif.endif.if !target(objdir).if defined(NOOBJ)objdir: _PROGSUBDIR.elseobjdir: _PROGSUBDIR	@cd ${.CURDIR}; \	here=`pwd`; dest=/usr/obj/`echo $$here | sed 's,/usr/src/,,'`; \	if test -d /usr/obj -a ! -d $$dest; then \		mkdir -p $$dest; \	else \		true; \	fi;.endif.endif.if !target(tags)tags: ${SRCS} _PROGSUBDIR.if defined(PROG)	-ctags -f /dev/stdout ${.ALLSRC} | \	    sed "s;${.CURDIR}/;;" > ${.CURDIR}/tags.endif.endif.if !defined(NOMAN).include <bsd.man.mk>.elsemaninstall:.endif

⌨️ 快捷键说明

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