source: branches/Release2.1/external/casa_asap/linux/UNKNOWN_SITE/makedefs.64@ 1546

Last change on this file since 1546 was 1159, checked in by mar637, 18 years ago

added dir for external packages, mainly casa.

File size: 6.0 KB
Line 
1#-----------------------------------------------------------------------------
2# makedefs: Installation-specific definitions used by AIPS++ makefiles
3#-----------------------------------------------------------------------------
4#
5# Copyright (C) 1997,1998,1999,2000,2001,2003
6# Associated Universities, Inc. Washington DC, USA.
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21#
22# Correspondence concerning AIPS++ should be addressed as follows:
23# Internet email: aips2-request@nrao.edu.
24# Postal address: AIPS++ Project Office
25# National Radio Astronomy Observatory
26# 520 Edgemont Road
27# Charlottesville, VA 22903-2475 USA
28#
29#-----------------------------------------------------------------------------
30# This GNU makefile is read in by the makedefs file in the directory above
31# this. That "default makedefs" file defines default values of each and
32# every variable required by the AIPS++ makefiles. Those default values are
33# overridden where necessary by redefining them in this file.
34#
35# Installation instructions:
36#
37# A template version of this file was copied from the "install/linux_gnu"
38# directory into the site-specific AIPS++ system directory for this
39# architecture (this directory) by the 'configure' script as part of the
40# AIPS++ installation.
41#
42# While default definitions are made in the default makedefs file in the
43# directory above this, certain platform-specific redefinitions may have
44# been included here to help make the installation easier.
45#
46# You must carefully check all of the definitions made in the default
47# makedefs file (as well as the redefinitions made here) and if necessary,
48# correct them by making an overriding definition (or correction) here.
49# However,
50#
51# DO NOT MODIFY THE DEFAULT MAKEDEFS FILE -
52#
53# MODIFY THIS FILE INSTEAD
54#
55# Certain of the defaults in the default makedefs file are expressed in
56# terms of another default using "recursively expanded" variables (defined
57# with '=') rather than "simply expanded" (defined with ':='). For
58# example the TeX variables are defined in terms of "TEXROOT". This may
59# allow this makedefs file to redefine a whole set of variables, for
60# example all of the TeX variables, simply by redefining one, TEXROOT.
61# However,
62#
63# ALWAYS USE "SIMPLY EXPANDED" VARIABLES WITHIN THIS FILE
64#
65# That is, always use ":=" to make the assignments.
66#
67# Original: 1996/08/30 by Mark Calabretta, ATNF
68# $Id: makedefs.template,v 19.3 2006/05/25 15:49:39 wyoung Exp $
69#=============================================================================
70
71# General external libraries.
72#----------------------------
73
74#RPFITS
75RPFITSROOT := /usr/local
76
77CFITSIOROOT := /usr
78
79# X11.
80X11ROOT := /usr/X11R6
81
82# Motif (lesstif is fine).
83MotifROOT := $(X11ROOT)/LessTif/Motif2.1
84
85# XPM (X Pixmap) library
86XPMROOT := $(X11ROOT)
87
88# TCL (version 7.6 or later).
89TCLROOT := /usr
90TCLLIB += -ldl
91
92# PGPLOT (FORTRAN plotting package).
93PGPLOTROOT := /usr
94
95# FFTW Highly optimized FFT routines
96FFTWROOT := /usr
97FFTWLIB := -lfftw -lrfftw
98
99#-----------------------------------------------------------------------------
100# Compilation and linkage variables
101#-----------------------------------------------------------------------------
102# The C++ compiler.
103C++ROOT := /usr
104
105# Preprocessor flags for system debug/optimized compilations.
106CPPSTD += -DAIPS_LINUX -DAIPS_LITTLE_ENDIAN -DAIPS_STDLIB -DAIPS_NO_LEA_MALLOC -D_GLIBCPP_DEPRECATED -D__x86_64__ -DAIPS_64B -DAIPS_AUTO_STL
107
108# C compiler flags for system debug/optimized compilations.
109CC := $(C++ROOT)/bin/gcc
110CSTD += -DHAVE_LINUX_GLIBC -Wall -fPIC
111COPTLVL := -O2 -fno-strength-reduce -funroll-all-loops -ftracer
112
113# C++ compiler flags for system debug/optimized compilations.
114C++ := $(C++ROOT)/bin/g++ -Wno-deprecated
115C++STD += -pipe -Wall -Wno-non-template-friend -Woverloaded-virtual -Wcast-align -Wno-comment -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__x86_64__
116
117# FORTRAN compiler - using gcc (gfortran)
118F77ROOT := $(C++ROOT)
119F77LIB := -lg2c
120FC := $(F77ROOT)/bin/g77
121FCOPTLVL := -O2 -funroll-all-loops -fPIC
122FCOPT += -fPIC
123
124# Link flags for system debug/optimized compilations; these are passed to
125# the C++ compiler.
126LDSTD := -Xlinker -rpath -Xlinker $(AIPSARCH)/lib:$(C++ROOT)/lib:$(MotifLIBD):$(X11LIBD)
127
128# Control table for building AIPS++ libraries. Four keywords are recognized:
129# defeat: The library will not be built (and if an old version exists it
130# will be deleted).
131# static: The static library is built and is the one linked to.
132# shatic: The static and shared libraries are built but the static library
133# is the one linked to.
134# shared: The static and shared libraries are built and the shared library
135# is the one linked to.
136#
137# C++ C FORTRAN
138# dbg opt dbg opt dbg opt
139# ------------- ------------- -------------
140LIBatnf := defeat static defeat defeat defeat defeat
141
142# What consortium packages to build (atnf bima hia nfra nral nrao tifr).
143CONSORTIA += atnf
144
145# Absolute pathname of perl-5 executable
146PERL5 := /usr/bin/perl
147
148# Unset this to defeat document compilation.
149DOCSYS :=
150
151# Unset this to defeat document extraction from C++ sources.
152DOCEXTR :=
Note: See TracBrowser for help on using the repository browser.