home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!dsmail.hmi.de!news
- From: djc@dsun6.hmi.de (Markus Dahm)
- Newsgroups: comp.unix.questions
- Subject: Using Make on different Architectures
- Date: 11 Jan 1993 15:50:43 +0100
- Organization: Hahn-Meitner-Institut Berlin
- Lines: 31
- Message-ID: <1is1g3INN8o4@dsun6.hmi.de>
- NNTP-Posting-Host: dsun6.hmi.de
-
- 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.
- Then it invokes the 'normal' make with the Parameter HOST=<arch>, where
- arch is 'SUN4', for example.
-
- 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 :
-
- #if HOST == "SUN4"
- CC = acc
- FC = fc
- #endif
-
- Does anyone have a solution for this ? I'd be thankful to hear from
- you soon ...
-
- Yours
- __ ______
- /\ /\ /\ \ | ___ \ Markus Dahm
- /\ \/\ \ / \ \ | | | \ \
- / \/ \ \ / /\ \ \ | | | | ) Voice : +49 (0)30 805 61 34
- / /\ /\ \ \ / / /\ \ \ | | | | | Office : +49 (0)30 8009 - 2594
- / / /\/_/\ \ \ / / /--\ \ \ | | |__/ ) E-Mail : markusd@cs.tu-berlin.de
- / / / \ \ \/ / /----\ \ \ | |/__/ / news@dsmail.hmi.de
- /_/_/ \_\/_/_/ \_\_\|______/ djc@dsun3.hmi.de
-