[BACK]Return to bsd.prog.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / mk

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/share/mk/bsd.prog.mk between version 1.25 and 1.26

version 1.25, 1993/08/15 19:37:10 version 1.26, 1993/08/15 20:42:43
Line 7 
Line 7 
   
 .SUFFIXES: .out .o .c .cc .C .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0  .SUFFIXES: .out .o .c .cc .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 -mandoc ${.IMPSRC} > ${.TARGET}  
   
 CFLAGS+=        ${COPTS}  CFLAGS+=        ${COPTS}
   
 STRIP?=         -s  
   
 BINGRP?=        bin  
 BINOWN?=        bin  
 BINMODE?=       555  
   
 LIBCRT0?=       /usr/lib/crt0.o  LIBCRT0?=       /usr/lib/crt0.o
 LIBC?=          /usr/lib/libc.a  LIBC?=          /usr/lib/libc.a
 LIBCOMPAT?=     /usr/lib/libcompat.a  LIBCOMPAT?=     /usr/lib/libcompat.a
Line 51  CLEANFILES+=strings
Line 42  CLEANFILES+=strings
         ${CXX} -E ${CXXFLAGS} ${.IMPSRC} | xstr -c -          ${CXX} -E ${CXXFLAGS} ${.IMPSRC} | xstr -c -
         @mv -f x.c x.cc          @mv -f x.c x.cc
         @${CXX} ${CXXFLAGS} -c x.cc -o ${.TARGET}          @${CXX} ${CXXFLAGS} -c x.cc -o ${.TARGET}
           @rm -f x.cc
   
 .C.o:  .C.o:
         ${CXX} -E ${CXXFLAGS} ${.IMPSRC} | xstr -c -          ${CXX} -E ${CXXFLAGS} ${.IMPSRC} | xstr -c -
         @mv -f x.c x.C          @mv -f x.c x.C
         @${CXX} ${CXXFLAGS} -c x.C -o ${.TARGET}          @${CXX} ${CXXFLAGS} -c x.C -o ${.TARGET}
           @rm -f x.C
 .endif  .endif
   
 .if defined(PROG)  .if defined(PROG)
Line 65  OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}
Line 58  OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}
   
 .if defined(LDONLY)  .if defined(LDONLY)
   
 ${PROG}: ${LIBCRT0} ${LIBC} ${OBJS} ${DPADD}  ${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DPADD}
         ${LD} ${LDFLAGS} -o ${.TARGET} ${LIBCRT0} ${OBJS} ${LIBC} ${LDADD}          ${LD} ${LDFLAGS} -o ${.TARGET} ${LIBCRT0} ${OBJS} ${LIBC} ${LDADD}
   
 .else defined(LDONLY)  .else defined(LDONLY)
   
 ${PROG}: ${OBJS} ${LIBC} ${DPADD}  ${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DPADD}
         ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}          ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
   
 .endif  .endif
   
 .else defined(PROG)  .else
   
 SRCS= ${PROG}.c  SRCS=   ${PROG}.c
   
 ${PROG}: ${SRCS} ${LIBC} ${DPADD}  ${PROG}: ${SRCS} ${LIBC} ${DPADD}
         ${CC} ${LDFLAGS} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${SRCS} ${LDADD}          ${CC} ${LDFLAGS} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${SRCS} ${LDADD}
Line 93  MAN1= ${PROG}.0
Line 86  MAN1= ${PROG}.0
 .endif  .endif
 .endif  .endif
   
 .if !defined(NOMAN)  
 MANALL= ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8}  
 .endif  
   
 _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  
   
 .MAIN: all  .MAIN: all
 all: ${PROG} ${MANALL} _PROGSUBDIR  all: ${PROG}
   
 .if !target(clean)  .if !target(clean)
 clean: _PROGSUBDIR  clean:
         rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES}          rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES}
 .endif  .endif
   
 .if !target(cleandir)  
 cleandir: _PROGSUBDIR  
         rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES}  
         rm -f .depend ${MANALL}  
 .endif  
   
 # some of the rules involve .h sources, so remove them from mkdep line  
 .include <bsd.dep.mk>  
 depend: _PROGSUBDIR  
   
 .if !target(install)  .if !target(install)
 .if !target(beforeinstall)  .if !target(beforeinstall)
 beforeinstall:  beforeinstall:
Line 140  afterinstall:
Line 106  afterinstall:
 .endif  .endif
   
 .if !target(realinstall)  .if !target(realinstall)
 realinstall: _PROGSUBDIR  realinstall:
 .if defined(PROG)  .if defined(PROG)
         install ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \          install ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
             ${PROG} ${DESTDIR}${BINDIR}              ${PROG} ${DESTDIR}${BINDIR}
Line 171  realinstall: beforeinstall
Line 137  realinstall: beforeinstall
 .endif  .endif
   
 .if !target(lint)  .if !target(lint)
 lint: ${SRCS} _PROGSUBDIR  lint: ${SRCS}
 .if defined(PROG)  .if defined(PROG)
         @${LINT} ${LINTFLAGS} ${CFLAGS} ${.ALLSRC} | more 2>&1          @${LINT} ${LINTFLAGS} ${CFLAGS} ${.ALLSRC} | more 2>&1
 .endif  .endif
 .endif  .endif
   
 .if !target(tags)  cleandir: clean
 tags: ${SRCS} _PROGSUBDIR  
 .if defined(PROG)  
         -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC} | \  
             sed "s;\${.CURDIR}/;;" > tags  
 .endif  
 .endif  
   
 .if !defined(NOMAN)  .if !defined(NOMAN)
 .include <bsd.man.mk>  .include <bsd.man.mk>
 .endif  .endif
   
 .include <bsd.obj.mk>  .include <bsd.obj.mk>
 obj: _PROGSUBDIR  .include <bsd.dep.mk>
   .include <bsd.subdir.mk>

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

CVSweb <webmaster@jp.NetBSD.org>