home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15411 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.6 KB

  1. 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
  2. From: djc@dsun6.hmi.de (Markus Dahm)
  3. Newsgroups: comp.unix.questions
  4. Subject: Using Make on different Architectures
  5. Date: 11 Jan 1993 15:50:43 +0100
  6. Organization: Hahn-Meitner-Institut Berlin
  7. Lines: 31
  8. Message-ID: <1is1g3INN8o4@dsun6.hmi.de>
  9. NNTP-Posting-Host: dsun6.hmi.de
  10.  
  11. Hello,
  12.  
  13. this may be a FAQ, but I need quick help.
  14. I work with aimk (architecture independent make) which is distributed
  15. with the PVM-Package. It is a sh-Script that executes some heuristic test
  16. in order to determine on which machine it is running.
  17. Then it invokes the 'normal' make with the Parameter HOST=<arch>, where
  18. arch is 'SUN4', for example.
  19.  
  20. My Problem is that I have to use different compilers on several different
  21. computers( cc, gcc, acc, f77 vs. fc ), but I would like to have just one
  22. Makefile for all of them. The Makefile should determine by $(HOST) which
  23. compiler to use, something like :
  24.  
  25. #if HOST == "SUN4"
  26. CC    =    acc
  27. FC    =    fc
  28. #endif
  29.  
  30. Does anyone have a solution for this ? I'd be thankful to hear from
  31. you soon ...
  32.  
  33. Yours
  34.                        __        ______
  35.       /\  /\          /\ \      |  ___ \   Markus Dahm
  36.      /\ \/\ \        /  \ \     | | | \ \
  37.     /  \/  \ \      / /\ \ \    | | |  | ) Voice  : +49 (0)30 805 61 34
  38.    / /\  /\ \ \    / / /\ \ \   | | |  | | Office : +49 (0)30 8009 - 2594 
  39.   / / /\/_/\ \ \  / / /--\ \ \  | | |__/ ) E-Mail : markusd@cs.tu-berlin.de
  40.  / / /      \ \ \/ / /----\ \ \ | |/__/ /              news@dsmail.hmi.de
  41. /_/_/        \_\/_/_/      \_\_\|______/                djc@dsun3.hmi.de
  42.