Deleted Added
full compact
bsd.prog.mk (33600) bsd.prog.mk (33624)
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2# $Id: bsd.prog.mk,v 1.60 1998/02/07 17:19:06 helbig Exp $
2# $Id: bsd.prog.mk,v 1.61 1998/02/19 01:30:23 eivind Exp $
3
4.if exists(${.CURDIR}/../Makefile.inc)
5.include "${.CURDIR}/../Makefile.inc"
6.endif
7
8# Default executable format
9BINFORMAT?= aout
10

--- 9 unchanged lines hidden (view full) ---

20STRIP?= -s
21.endif
22
23.if defined(NOSHARED) && ( ${NOSHARED} != "no" && ${NOSHARED} != "NO" )
24LDFLAGS+= -static
25.endif
26
27.if defined(PROG)
3
4.if exists(${.CURDIR}/../Makefile.inc)
5.include "${.CURDIR}/../Makefile.inc"
6.endif
7
8# Default executable format
9BINFORMAT?= aout
10

--- 9 unchanged lines hidden (view full) ---

20STRIP?= -s
21.endif
22
23.if defined(NOSHARED) && ( ${NOSHARED} != "no" && ${NOSHARED} != "NO" )
24LDFLAGS+= -static
25.endif
26
27.if defined(PROG)
28.if !target(${PROG})
29.if defined(SRCS)
30
31DPSRCS+= ${SRCS:M*.h}
32OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
33
34${PROG}: ${DPSRCS} ${OBJS}
35 ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDDESTDIR} ${LDADD}
36
37.else !defined(SRCS)
38
28.if defined(SRCS)
29
30DPSRCS+= ${SRCS:M*.h}
31OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
32
33${PROG}: ${DPSRCS} ${OBJS}
34 ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDDESTDIR} ${LDADD}
35
36.else !defined(SRCS)
37
38.if !target(${PROG})
39SRCS= ${PROG}.c
40
41# Always make an intermediate object file because:
42# - it saves time rebuilding when only the library has changed
43# - the name of the object gets put into the executable symbol table instead of
44# the name of a variable temporary object.
45# - it's useful to keep objects around for crunching.
46OBJS= ${PROG}.o
39SRCS= ${PROG}.c
40
41# Always make an intermediate object file because:
42# - it saves time rebuilding when only the library has changed
43# - the name of the object gets put into the executable symbol table instead of
44# the name of a variable temporary object.
45# - it's useful to keep objects around for crunching.
46OBJS= ${PROG}.o
47
47${PROG}: ${DPSRCS} ${OBJS}
48 ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDDESTDIR} ${LDADD}
48${PROG}: ${DPSRCS} ${OBJS}
49 ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDDESTDIR} ${LDADD}
50.endif
49
50.endif
51
52.endif
51.endif
52
53.if !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \
54 !defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \
55 !defined(MAN7) && !defined(MAN8) && !defined(NOMAN)
56MAN1= ${PROG}.1
57.endif
58.endif
59

--- 102 unchanged lines hidden ---
53
54.if !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \
55 !defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \
56 !defined(MAN7) && !defined(MAN8) && !defined(NOMAN)
57MAN1= ${PROG}.1
58.endif
59.endif
60

--- 102 unchanged lines hidden ---