Subject: Re: [hackers-il] Pattern for building several variants of a software module

From: Omer Shapira <[email-masked]>
Date: Sat, 30 Apr 2005 01:23:17 -0700 (PDT)

--- Omer Zak <[email-masked]> wrote:
<!-- abridged -->
> An elegant way would allow me to modify only the
> makefile to add another
> variant of C (or just drop in the additional C
> variant, if I use GNU
> make's $(wildcard PATTERN) feature).
<!-- abridged -->

What about placing all platform-specific headers into
directories under role-based names (./x86-64/types.h,
./ppc604/types.h ./ppc7410/types.h) and factor the
include path into the Makefile? 

Clients of these platform dependent classes will
reference only the role name ( #include <types.h>).

>                                             --- Omer
> -- 
<!-- bandwidth saved by XML comment -->

o.s.

--
Omer Shapira
Senior Software Engineer
Radware

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com