home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!psinntp!cadkey!eric
- From: eric@cadkey.com (Eric Holtman)
- Subject: Re: Using Make on different Architectures
- Message-ID: <1993Jan12.183430.15351@cadkey.com>
- Organization: cadkey
- References: <1is1g3INN8o4@dsun6.hmi.de>
- Date: Tue, 12 Jan 1993 18:34:30 GMT
- Lines: 32
-
- In article <1is1g3INN8o4@dsun6.hmi.de> djc@dsun6.hmi.de (Markus Dahm) writes:
- >Hello,
- >
- >this may be a FAQ, but I need quick help.
- >I work with aimk (architecture independent make) which is distributed
- >with the PVM-Package. It is a sh-Script that executes some heuristic test
- >in order to determine on which machine it is running.
- >My Problem is that I have to use different compilers on several different
- >computers( cc, gcc, acc, f77 vs. fc ), but I would like to have just one
- >Makefile for all of them. The Makefile should determine by $(HOST) which
- >compiler to use, something like :
- >
-
- What we do here at Cadkey is this...... we have an environment variable
- MACHINE which we set to whatever architecture we want, i.e. "387" or
- "sun4X", or "SunOS5", you could set that with your little script.
-
- then, at the top of every makefile, we have a line that says
- include $(MAKE_DIR)/machine/$(MACHINE).mk.
-
- You can see where this is going....... in $MAKE_DIR/machine, we have
- a file 387.mk, sun4X.mk, etc, etc that defines all the cool things you
- might want. Doing compiles on not only different UN*X boxes, but dos loand
- as wellm we define not only CC, but AR, MV, CP, etc, etc.
-
-
- Seems to work for us...........
- --
- Eric J. Holtman |
- Product Development | "You fat, bloated, Eeediot!!!"
- Cadkey, Inc. |
- | - Ren Hoek ("that's Ho-ak, not HOKE!!")
-