From owner-freebsd-questions Fri Mar 1 07:36:40 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA20680 for questions-outgoing; Fri, 1 Mar 1996 07:36:40 -0800 (PST) Received: from ccslinux.dlsu.edu.ph (humprey@linux1.dlsu.edu.ph [165.220.8.15]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA20672 Fri, 1 Mar 1996 07:36:30 -0800 (PST) Received: (from humprey@localhost) by ccslinux.dlsu.edu.ph (8.6.12/8.6.9) id XAA05446; Fri, 1 Mar 1996 23:39:51 +0800 Date: Fri, 1 Mar 1996 23:39:50 +0800 (GMT+0800) From: "Humprey C. Sy" To: Chi-Cheong Weng cc: faq@freebsd.org, questions@freebsd.org Subject: Re: makefile question In-Reply-To: <9602290613.AA23723@anise.alantec.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Wed, 28 Feb 1996, Chi-Cheong Weng wrote: > PROG = rpc.lockd > SRCS = lockd.c procs.c > MAN8 = rpc.lockd.8 > > DPADD= ${LIBRPCSVC} > LDADD= -lrpcsvc > > .include > > test: test.c > cc -o test test.c -lrpcsvc > > > I wonder where I can get bsd.prog.mk and HOw should I set the > envr variable ${LIBRPCSVC}. What make program should I use ? bsd.prog.mk can be found in /usr/share/mk. It's a "makefile template" that's designed to create makefiles much easier. Basically, what this does is create a program named rpc.lockd with sources lockd.c and prog.c and include the library rpcsvc. - Humprey -