Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Mar 1995 09:37:52 +0200 (SAT)
From:      John Hay <jhay@mikom.csir.co.za>
To:        current@FreeBSD.org
Subject:   broken bootparamd makefiles
Message-ID:  <199503010737.JAA00266@zibbi.mikom.csir.co.za>

next in thread | raw e-mail | index | archive | help
Hi,

The current bootparamd makefiles break if you do a make obj first. It does
work if you don't have the obj link. Here is a patch for it. It will still
work if you don't have an obj link:)

-- 
John Hay -- jhay@mikom.csir.co.za

*** src/usr.sbin/bootparamd/bootparamd/Makefile.org	Mon Feb 27 01:40:52 1995
--- src/usr.sbin/bootparamd/bootparamd/Makefile	Wed Mar  1 09:36:25 1995
***************
*** 4,29 ****
  PROG=	bootparamd
  SRCS=	bootparam_prot_xdr.c bootparam_prot_svc.c bootparamd.c main.c
  MAN8=	bootparamd.8
! CFLAGS+= -DTFTP_DIR=\"/tftpboot\"
  CLEANFILES= bootparam_prot_svc.c bootparam_prot_xdr.c  \
  	    bootparam_prot.h bootparam_prot.x
  
  bootparam_prot_svc.c: bootparam_prot.h
! 	rm -f ${.CURDIR}/bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x ${.CURDIR}
! 	rpcgen  -m -o ${.CURDIR}/bootparam_prot_svc.c \
! 		${.CURDIR}/bootparam_prot.x
  
  bootparam_prot_xdr.c: bootparam_prot.h
! 	rm -f ${.CURDIR}/bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x ${.CURDIR}
! 	rpcgen  -c -o ${.CURDIR}/bootparam_prot_xdr.c \
! 		${.CURDIR}/bootparam_prot.x
  
  bootparam_prot.h: 
! 	rm -f ${.CURDIR}/bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x ${.CURDIR}
! 	rpcgen  -h -o ${.CURDIR}/bootparam_prot.h \
! 		${.CURDIR}/bootparam_prot.x
  
  .include <bsd.prog.mk>
--- 4,26 ----
  PROG=	bootparamd
  SRCS=	bootparam_prot_xdr.c bootparam_prot_svc.c bootparamd.c main.c
  MAN8=	bootparamd.8
! CFLAGS+= -DTFTP_DIR=\"/tftpboot\" -I.
  CLEANFILES= bootparam_prot_svc.c bootparam_prot_xdr.c  \
  	    bootparam_prot.h bootparam_prot.x
  
  bootparam_prot_svc.c: bootparam_prot.h
! 	rm -f bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x .
! 	rpcgen  -m -o bootparam_prot_svc.c bootparam_prot.x
  
  bootparam_prot_xdr.c: bootparam_prot.h
! 	rm -f bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x .
! 	rpcgen  -c -o bootparam_prot_xdr.c bootparam_prot.x
  
  bootparam_prot.h: 
! 	rm -f bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x .
! 	rpcgen  -h -o bootparam_prot.h bootparam_prot.x
  
  .include <bsd.prog.mk>
*** src/usr.sbin/bootparamd/callbootd/Makefile.org	Mon Feb 27 01:40:53 1995
--- src/usr.sbin/bootparamd/callbootd/Makefile	Wed Mar  1 09:22:53 1995
***************
*** 4,28 ****
  PROG=	callbootd
  SRCS=	bootparam_prot_xdr.c bootparam_prot_clnt.c callbootd.c
  NOMAN=	
  CLEANFILES= bootparam_prot_clnt.c bootparam_prot_xdr.c  \
  	    bootparam_prot.h bootparam_prot.x
  
  bootparam_prot_clnt.c: bootparam_prot.h
! 	rm -f ${.CURDIR}/bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x ${.CURDIR}
! 	rpcgen  -l -o ${.CURDIR}/bootparam_prot_clnt.c \
! 		${.CURDIR}/bootparam_prot.x
  
  bootparam_prot_xdr.c: bootparam_prot.h
! 	rm -f ${.CURDIR}/bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x ${.CURDIR}
! 	rpcgen  -c -o ${.CURDIR}/bootparam_prot_xdr.c \
! 		${.CURDIR}/bootparam_prot.x
  
  bootparam_prot.h: 
! 	rm -f ${.CURDIR}/bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x ${.CURDIR}
! 	rpcgen  -h -o ${.CURDIR}/bootparam_prot.h \
! 		${.CURDIR}/bootparam_prot.x
  
  .include <bsd.prog.mk>
--- 4,26 ----
  PROG=	callbootd
  SRCS=	bootparam_prot_xdr.c bootparam_prot_clnt.c callbootd.c
  NOMAN=	
+ CFLAGS+= -I.
  CLEANFILES= bootparam_prot_clnt.c bootparam_prot_xdr.c  \
  	    bootparam_prot.h bootparam_prot.x
  
  bootparam_prot_clnt.c: bootparam_prot.h
! 	rm -f bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x .
! 	rpcgen  -l -o bootparam_prot_clnt.c bootparam_prot.x
  
  bootparam_prot_xdr.c: bootparam_prot.h
! 	rm -f bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x .
! 	rpcgen  -c -o bootparam_prot_xdr.c bootparam_prot.x
  
  bootparam_prot.h: 
! 	rm -f bootparam_prot.x
! 	cp /usr/include/rpcsvc/bootparam_prot.x .
! 	rpcgen  -h -o bootparam_prot.h bootparam_prot.x
  
  .include <bsd.prog.mk>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503010737.JAA00266>