From ee67778ca3abc6a091e5585e4c44d7c1a39e5833 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 7 May 2015 17:30:06 -0400 Subject: Fix 64-bit build --- pmake.hack/bsd.dep.mk | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 pmake.hack/bsd.dep.mk (limited to 'pmake.hack/bsd.dep.mk') diff --git a/pmake.hack/bsd.dep.mk b/pmake.hack/bsd.dep.mk new file mode 100644 index 0000000..03e407b --- /dev/null +++ b/pmake.hack/bsd.dep.mk @@ -0,0 +1,62 @@ +# $NetBSD: bsd.dep.mk,v 1.26 1999/02/24 22:04:15 simonb Exp $ + +.PHONY: cleandepend +cleandir distclean: cleandepend + +MKDEP?= mkdep + +# some of the rules involve .h sources, so remove them from mkdep line +depend: beforedepend +.if defined(SRCS) +depend: .depend + @true # hack to prevent "make depend" from using implicit rules +.NOPATH: .depend +.depend: ${SRCS} ${DPSRCS} + @rm -f .depend + @files="${.ALLSRC:M*.s} ${.ALLSRC:M*.S}"; \ + if [ "$$files" != " " ]; then \ + echo ${MKDEP} -a ${MKDEPFLAGS} \ + ${AFLAGS:M-[ID]*:Q} ${CPPFLAGS:Q} ${AINC:Q} $$files; \ + ${MKDEP} -a ${MKDEPFLAGS} \ + ${AFLAGS:M-[ID]*} ${CPPFLAGS} ${AINC} $$files; \ + fi + @files="${.ALLSRC:M*.c}"; \ + if [ "$$files" != "" ]; then \ + echo ${MKDEP} -a ${MKDEPFLAGS} \ + ${CFLAGS:M-[ID]*:Q} ${CPPFLAGS:Q} $$files; \ + ${MKDEP} -a ${MKDEPFLAGS} \ + ${CFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \ + fi + @files="${.ALLSRC:M*.m}"; \ + if [ "$$files" != "" ]; then \ + echo ${MKDEP} -a ${MKDEPFLAGS} \ + ${OBJCFLAGS:M-[ID]*:Q} ${CPPFLAGS:Q} $$files; \ + ${MKDEP} -a ${MKDEPFLAGS} \ + ${OBJCFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \ + fi + @files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \ + if [ "$$files" != " " ]; then \ + echo ${MKDEP} -a ${MKDEPFLAGS} \ + ${CXXFLAGS:M-[ID]*:Q} ${CPPFLAGS:Q} $$files; \ + ${MKDEP} -a ${MKDEPFLAGS} \ + ${CXXFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \ + fi +cleandepend: + rm -f .depend ${.CURDIR}/tags +.else +cleandepend: +.endif +depend: afterdepend + +beforedepend: +afterdepend: + +.if !target(tags) +.if defined(SRCS) +tags: ${SRCS} + -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \ + sed "s;\${.CURDIR}/;;" > tags +.else +tags: +.endif +.endif -- cgit v1.2.3