[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bsd.prog.mk and multiple executables

Use 2 separate directories.

e.g. /usr/local/src/proctools/pkill and /usr/local/src/proctools/pgrep

You could even put common code in it's own directory.

e.g. /usr/local/src/proctools/common

Then craft your Makefiles accordingly.  make(1) will give details.  Also
look at bsd.subdir.mk

----- Original Message -----
From: "Bitt Faulk" <wfaulk@beaglebros.com>
To: <tech@openbsd.org>
Sent: Monday, May 21, 2001 04:24 PM
Subject: bsd.prog.mk and multiple executables

> I'm writing a pair of programs called pgrep and pkill.  They search for
> and print out PIDs and kill processes.  This is an idea I've stolen from
> Solaris, as I've found them very handy there.
> (http://sourceforge.net/projects/proctools if you're interested.)
> Regardless, I was looking to get it to compile up with the bsd.prog.mk
> makefile, and I can't find a way to get it to compile two separate
> programs.  I could make the two programs links to each other and check
> argv[0], but I don't really want to tie their functions to how they're
> executed.
> Anyone have any ideas?
> -Bitt