Re: How to include header files in makefiles

2005-03-26 Thread Jonathon McKitrick
On Fri, Mar 18, 2005 at 04:38:15PM +, Chuck Robey wrote: : I honestly keep on switching back and forth, between thinking that the : best make is bmake, or gmake. They both have key items that make them : uniquely better. Other than parallel build tasks (-j2) what does bmake do that is

Re: How to include header files in makefiles

2005-03-18 Thread Chuck Robey
Jonathon McKitrick wrote: Hi all, I'm setting up a build system for a small project and I want to use included makefiles. I have a base.mk that looks like this: I will answer here, but be aware that you're getting all of my prejudices too, so take things with a grain of salt. First item deals

Re: How to include header files in makefiles

2005-03-18 Thread Jonathon McKitrick
On Fri, Mar 18, 2005 at 04:38:15PM +, Chuck Robey wrote: : 1) relative addressing means you have to be forever translating paths in : listings, and very often the number of include paths gets to be rather long. Okay, I can fix that easily. : The Make(1) man page doesn't show include, the

How to include header files in makefiles

2005-03-17 Thread Jonathon McKitrick
Hi all, I'm setting up a build system for a small project and I want to use included makefiles. I have a base.mk that looks like this: .PATH.h : ../ ../include .INCLUDES : .h CFLAGS = -O -pipe -Wall -g CFLAGS += $(.INCLUDES) OBJS = ${SRCS:R:S/$/.o/g} and a bin.mk that looks like