[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / bin / csh

File: [cvs.NetBSD.org] / src / bin / csh / Makefile (download)

Revision 1.41, Sat Jul 5 23:12:33 2014 UTC (6 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat
Changes since 1.40: +1 -3 lines

remove .if make(install)
these are seriously bad juju

#	$NetBSD: Makefile,v 1.41 2014/07/05 23:12:33 dholland Exp $
#	@(#)Makefile	8.1 (Berkeley) 5/31/93
# C Shell with process control; VM/UNIX VAX Makefile
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
# To profile, put -DPROF in DFLAGS and -pg in COPTS, and recompile.

.include <bsd.own.mk>

PROG=	csh
# - Editor history not always aligned with shell history,
#   should implement internally
# - Does not handle escaped prompts.
# - Does not do completion
SRCS=	alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
	func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
	sem.c set.c str.c time.c
.PATH:	${NETBSDSRCDIR}/usr.bin/printf

MLINKS=	csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
	csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
	csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
	csh.1 stop.1 csh.1 source.1

DPSRCS+=	errnum.h const.h
CLEANFILES+=	errnum.h const.h

errnum.h: err.c
	rm -f ${.TARGET}
	echo '/* Do not edit this file, make creates it. */' ;\
	echo '#ifndef _h_sh_errnum' ;\
	echo '#define _h_sh_errnum' ;\
	egrep 'ERR_' ${.ALLSRC} | egrep '^#define' ;\
	echo '#endif /* _h_sh_errnum */' ;\
	) > ${.TARGET}

const.c: errnum.h
const.h: const.c
	rm -f ${.TARGET}
	echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	${CC} -E ${CPPFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
	    ${TOOL_SED} -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
	    sort >> ${.TARGET}


COPTS.err.c = -Wno-format-nonliteral
COPTS.printf.c = -Wno-format-nonliteral
COPTS.proc.c = -Wno-format-nonliteral

.if !empty(DFLAGS:M*EDIT)
LDADD+=-ledit -lterminfo -lutil

.include <bsd.prog.mk>
.include <bsd.subdir.mk>