version 1.31, 1993/10/07 02:12:18 |
version 1.41, 1994/06/18 20:57:49 |
Line 19 LIBDES?= /usr/lib/libdes.a |
|
Line 19 LIBDES?= /usr/lib/libdes.a |
|
LIBL?= /usr/lib/libl.a |
LIBL?= /usr/lib/libl.a |
LIBKDB?= /usr/lib/libkdb.a |
LIBKDB?= /usr/lib/libkdb.a |
LIBKRB?= /usr/lib/libkrb.a |
LIBKRB?= /usr/lib/libkrb.a |
|
LIBKVM?= /usr/lib/libkvm.a |
LIBM?= /usr/lib/libm.a |
LIBM?= /usr/lib/libm.a |
LIBMP?= /usr/lib/libmp.a |
LIBMP?= /usr/lib/libmp.a |
LIBPC?= /usr/lib/libpc.a |
LIBPC?= /usr/lib/libpc.a |
LIBPLOT?= /usr/lib/libplot.a |
LIBPLOT?= /usr/lib/libplot.a |
LIBRESOLV?= /usr/lib/libresolv.a |
LIBRESOLV?= /usr/lib/libresolv.a |
LIBRPC?= /usr/lib/librpc.a |
|
LIBRPCSVC?= /usr/lib/librpcsvc.a |
LIBRPCSVC?= /usr/lib/librpcsvc.a |
|
LIBSKEY?= /usr/lib/libskey.a |
LIBTERMCAP?= /usr/lib/libtermcap.a |
LIBTERMCAP?= /usr/lib/libtermcap.a |
LIBUTIL?= /usr/lib/libutil.a |
LIBUTIL?= /usr/lib/libutil.a |
|
|
Line 49 CLEANFILES+=strings |
|
Line 50 CLEANFILES+=strings |
|
@rm -f x.C |
@rm -f x.C |
.endif |
.endif |
|
|
.if defined(PROG) |
|
.if defined(SRCS) |
|
|
|
|
.if defined(PROG) |
|
SRCS?= ${PROG}.c |
OBJS+= ${SRCS:N*.h:R:S/$/.o/g} |
OBJS+= ${SRCS:N*.h:R:S/$/.o/g} |
|
|
.if defined(LDONLY) |
.if defined(LDONLY) |
|
|
${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DPADD} |
${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DPADD} |
${LD} ${LDFLAGS} -o ${.TARGET} ${LIBCRT0} ${OBJS} ${LIBC} ${LDADD} |
${LD} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${LIBCRT0} ${OBJS} ${LIBC} ${LDADD} |
|
|
.else defined(LDONLY) |
.else defined(LDONLY) |
|
|
${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DPADD} |
${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DPADD} |
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD} |
${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${OBJS} ${LDADD} |
|
|
.endif |
|
|
|
.else |
|
|
|
SRCS= ${PROG}.c |
|
|
|
${PROG}: ${SRCS} ${LIBC} ${DPADD} |
|
${CC} ${LDFLAGS} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${SRCS} ${LDADD} |
|
|
|
MKDEP= -p |
|
|
|
.endif |
.endif |
|
|
|
|
|
|
.if !target(clean) |
.if !target(clean) |
clean: |
clean: |
rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES} |
rm -f a.out [Ee]rrs mklog core *.core ${PROG} ${OBJS} ${CLEANFILES} |
.endif |
.endif |
|
|
cleandir: clean |
cleandir: clean |
|
|
.if !target(install) |
.if !target(install) |
.if !target(beforeinstall) |
.if !target(beforeinstall) |
beforeinstall: |
beforeinstall: |
.if defined(DESTDIR) || defined(BINDIR) |
|
@install -d -o root -g wheel -m 755 ${DESTDIR}${BINDIR} |
|
.endif |
|
.endif |
.endif |
.if !target(afterinstall) |
.if !target(afterinstall) |
afterinstall: |
afterinstall: |
|
|
${PROG} ${DESTDIR}${BINDIR} |
${PROG} ${DESTDIR}${BINDIR} |
.endif |
.endif |
.if defined(HIDEGAME) |
.if defined(HIDEGAME) |
(cd ${DESTDIR}/usr/games; rm -f ${PROG}; ln -s dm ${PROG}; \ |
(cd ${DESTDIR}/usr/games; rm -f ${PROG}; ln -s dm ${PROG}) |
chown games.bin ${PROG}) |
|
.endif |
.endif |
.endif |
.endif |
|
|