| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: xlc.mk,v 1.24 2009/06/02 22:28:52 joerg Exp $ | | 1 | # $NetBSD: xlc.mk,v 1.25 2011/10/30 22:04:39 wiz Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 2005 The NetBSD Foundation, Inc. | | 3 | # Copyright (c) 2005 The NetBSD Foundation, Inc. |
4 | # All rights reserved. | | 4 | # All rights reserved. |
5 | # | | 5 | # |
6 | # This code is derived from software contributed to The NetBSD Foundation | | 6 | # This code is derived from software contributed to The NetBSD Foundation |
7 | # by Grant Beattie. | | 7 | # by Grant Beattie. |
8 | # | | 8 | # |
9 | # Redistribution and use in source and binary forms, with or without | | 9 | # Redistribution and use in source and binary forms, with or without |
10 | # modification, are permitted provided that the following conditions | | 10 | # modification, are permitted provided that the following conditions |
11 | # are met: | | 11 | # are met: |
12 | # 1. Redistributions of source code must retain the above copyright | | 12 | # 1. Redistributions of source code must retain the above copyright |
13 | # notice, this list of conditions and the following disclaimer. | | 13 | # notice, this list of conditions and the following disclaimer. |
14 | # 2. Redistributions in binary form must reproduce the above copyright | | 14 | # 2. Redistributions in binary form must reproduce the above copyright |
| @@ -40,27 +40,27 @@ | | | @@ -40,27 +40,27 @@ |
40 | # | | 40 | # |
41 | # XLCBASE | | 41 | # XLCBASE |
42 | # The base directory where the compiler is installed. | | 42 | # The base directory where the compiler is installed. |
43 | # | | 43 | # |
44 | | | 44 | |
45 | .if !defined(COMPILER_XLC_MK) | | 45 | .if !defined(COMPILER_XLC_MK) |
46 | COMPILER_XLC_MK= defined | | 46 | COMPILER_XLC_MK= defined |
47 | | | 47 | |
48 | .include "../../mk/bsd.prefs.mk" | | 48 | .include "../../mk/bsd.prefs.mk" |
49 | | | 49 | |
50 | .if !defined(XLCBASE) | | 50 | .if !defined(XLCBASE) |
51 | . if exists(/usr/vacpp/README) | | 51 | . if exists(/usr/vacpp/README) |
52 | XLCBASE= /usr/vacpp | | 52 | XLCBASE= /usr/vacpp |
53 | . elif exists(/usr/vac/README) | | 53 | . elif exists(/usr/vac/README) || exists(/usr/vac/README.c) |
54 | XLCBASE= /usr/vac | | 54 | XLCBASE= /usr/vac |
55 | . elif exists(/opt/ibmcmp/vacpp/6.0/README) | | 55 | . elif exists(/opt/ibmcmp/vacpp/6.0/README) |
56 | XLCBASE= /opt/ibmcmp/vacpp/6.0 | | 56 | XLCBASE= /opt/ibmcmp/vacpp/6.0 |
57 | . else | | 57 | . else |
58 | PKG_FAIL_REASON+= "Cannot determine XLCBASE." | | 58 | PKG_FAIL_REASON+= "Cannot determine XLCBASE." |
59 | . endif | | 59 | . endif |
60 | .endif | | 60 | .endif |
61 | | | 61 | |
62 | # LANGUAGES.<compiler> is the list of supported languages by the | | 62 | # LANGUAGES.<compiler> is the list of supported languages by the |
63 | # compiler. | | 63 | # compiler. |
64 | # | | 64 | # |
65 | LANGUAGES.xlc= # empty | | 65 | LANGUAGES.xlc= # empty |
66 | | | 66 | |