source: branches/Release2.1.2/external/casa_asap/linux/UNKNOWN_SITE/makedefs.darwin@ 2646

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

added dir for external packages, mainly casa.

File size: 6.7 KB
Line 
1##############################################################################
2## Compilers
3##############################################################################
4
5C++ROOT := /usr
6C++ := $(C++ROOT)/bin/g++ -Wno-deprecated -Wno-long-double
7C++OPTLVL := -O2 -falign-loops=32
8C++STD += -fexceptions -pipe -Wall -Wno-non-template-friend -Woverloaded-virtual -Wcast-align -Wno-comment
9
10## -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
11
12CC := $(C++ROOT)/bin/gcc
13CSTD := -DAIPS_DARWIN -Wall -fexceptions
14COPTLVL := -O2 -fno-strength-reduce -falign-loops=32
15
16## -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
17
18F77ROOT := /usr/local
19FC := $(F77ROOT)/bin/g77
20FCOPTLVL := -O2 -falign-loops=32
21FCOPT += -fPIC
22F77LIB := -lg2c
23
24##############################################################################
25## General external libraries.
26##############################################################################
27
28PGPLOTROOT := /opt/local
29
30TCLROOT := /opt/local
31TCLLIB := -ltk -ltcl -ldl
32
33X11ROOT := /usr/X11R6
34
35MotifROOT := /usr/X11R6
36
37XPMROOT := $(X11ROOT)
38
39LAPACKLIBD :=
40LAPACKLIB := -framework vecLib
41
42# Platform-specific libraries - always added.
43ARCHLIBS := -lm
44
45##############################################################################
46## External libraries required by particular AIPS++ packages.
47##############################################################################
48
49# RPFITS (required by ATNF).
50RPFITSROOT := /usr/local
51RPFITSDEFS :=
52RPFITSINCD = $(RPFITSROOT)/include
53RPFITSLIBD = $(RPFITSROOT)/lib
54RPFITSLIB := -lrpfits
55
56CFITSIOROOT := /usr/local
57CFITSIODEFS :=
58CFITSIOINCD = $(CFITSIOROOT)/include/cfitsio
59CFITSIOLIBD = $(CFITSIOROOT)/lib
60CFITSIOLIB := -lcfitsio
61
62WCSLIBLIB := $(WCSLIBLIBD)/libwcs.a
63MIRLIBLIB := $(MIRLIBLIBD)/libmir.a
64
65##############################################################################
66## Compilation and linkage variables
67##############################################################################
68
69EXT_GLISH_DIR := /opt/local
70GLISHLOLIB :=
71
72# Preprocessor flags for system debug/optimized compilations.
73CPPSTD := -DAIPS_STDLIB -DAIPS_DARWIN -DAIPS_BIG_ENDIAN -D_GLIBCPP_DEPRECATED -DAIPS_NO_LEA_MALLOC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DAIPS_AUTO_STL
74CPPSTD += -DNEED_FORTRAN_UNDERSCORES=1
75
76# Use do-it-yourself template instantiation.
77TEMPLATES := diy
78
79# Link flags for system debug/optimized compilations; these are passed to
80# the C++ compiler.
81LDDBG := -Xlinker -multiply_defined -Xlinker suppress -Xlinker -bind_at_load \
82 -L/opt/local/lib
83LDOPT := $(LDDBG)
84
85RANLIB := /usr/bin/ranlib
86
87SFXSHAR := dylib
88LDSOPTS := -dynamiclib -single_module
89
90PERL4 := /usr/bin/perl
91PERL5 := /usr/bin/perl
92
93# C++ C FORTRAN
94# dbg opt dbg opt dbg opt
95# ------------- ------------- -------------
96LIBcasa := defeat static defeat defeat defeat defeat
97LIBscimath := defeat static defeat defeat defeat static
98LIBtables := defeat static defeat defeat defeat defeat
99LIBmeasures := defeat static defeat defeat defeat static
100LIBfits := defeat static defeat defeat defeat defeat
101LIBgraphics := defeat static defeat defeat defeat defeat
102LIBlattices := defeat static defeat defeat defeat defeat
103LIBcoordinates := defeat static defeat defeat defeat defeat
104LIBcomponents := defeat static defeat defeat defeat defeat
105LIBimages := defeat static defeat defeat defeat defeat
106LIBms := defeat static defeat defeat defeat defeat
107LIBmsvis := defeat static defeat defeat defeat defeat
108LIBcalibration := defeat static defeat defeat defeat defeat
109LIBionosphere := defeat static defeat defeat defeat static
110LIBflagging := defeat static defeat defeat defeat defeat
111LIBdish := defeat static defeat defeat defeat defeat
112LIBsimulators := defeat static defeat defeat defeat defeat
113LIBsynthesis := defeat static defeat defeat defeat static
114LIBtasking := defeat static defeat defeat defeat defeat
115LIBtrialdisplay := defeat static defeat defeat defeat defeat
116LIBnrao := defeat static defeat defeat defeat defeat
117LIBnpoi := defeat defeat defeat defeat defeat defeat
118LIBalma := defeat static defeat defeat defeat defeat
119LIBatnf := defeat static defeat defeat defeat defeat
120LIBnfra := defeat static defeat defeat defeat defeat
121
122
123# TeX, dvips, and MetaFont paths.
124#--------------------------------
125TEXROOT := /usr/lib/texmf/texmf
126TEXFONTS := $(TEXROOT)/fonts/tfm//
127TEXFORMATS := $(TEXROOT)/web2c
128TEXINPUTS := $(TEXROOT)/tex//
129TEXPOOL := $(TEXROOT)/web2c
130TEXPKS := $(TEXROOT)/fonts/pk//
131MFBASES := $(TEXROOT)/web2c
132MFINPUTS := $(TEXROOT)/metafont//:$(TEXROOT)/fonts/source//
133MFPOOL := $(TEXROOT)/web2c
134LATEX2HTML := /usr/local/bin/latex2html -init_file $(AIPSROOT)/code/install/docutils/latex2html-init
135
136# Set these variables to get local icons in the html files generated by
137# latex2html
138ICONSERVER := http://www.nrao.edu/icons/latex2html
139ICONS2LOCAL := $(AIPSARCH)/bin/redoicons.sh
140
141# Variables which tell the makefiles what to do and how to do it
142#-----------------------------------------------------------------------------
143# Command for benchmarking the rebuild (usually 'adate -l').
144TIMER := adate -l
145
146# Unset this to defeat document compilation.
147DOCSYS :=
148
149# Unset this to defeat document extraction from C++ sources.
150DOCEXTR :=
151
152# What consortium packages to build (atnf bima hia nfra nral nrao tifr).
153CONSORTIA := atnf
154
155#-----------------------------------------------------------------------------
156# The remaining definitions are programmer variables for code development.
157# These are not required for production-line systems.
158#-----------------------------------------------------------------------------
159ifeq "$(MAKEMODE)" "programmer"
160 # Alternate definitions for CPPFLAGS.
161 ifeq "$(CPPFLAGS)" "alt1"
162 override CPPFLAGS := $(CPPOPT) $(EXTRA_CPPFLAGS)
163 endif
164
165 # C++ compiler flags for programmer compilations.
166 ifdef OPT
167 C++FLAGS := $(C++OPT) -Wall
168 else
169 C++FLAGS := $(C++DBG) -Wall
170 endif
171
172 # Where to put binaries for programmer compilations.
173 ifdef OPT
174 PGMRLIBD := $(wildcard $(PGMRARCH)/lib)
175 PGMRBIND := $(wildcard $(PGMRARCH)/bin)
176 else
177 PGMRLIBD := $(wildcard $(PGMRARCH)/libdbg)
178 PGMRBIND := $(wildcard $(PGMRARCH)/bindbg)
179 endif
180
181 # Alternate definitions for C++FLAGS.
182 ifeq "$(C++FLAGS)" "alt1"
183 override CPPFLAGS := $(CPPOPT) $(EXTRA_CPPFLAGS)
184 PGMRBIND := $(wildcard $(PGMRARCH)/bin)
185 PGMRLIBD := $(wildcard $(PGMRARCH)/lib)
186 override C++FLAGS := $(C++OPT) -Wall
187 endif
188
189 # Extra compiler flags.
190 C++FLAGS += $(EXTRA_C++FLAGS)
191endif
Note: See TracBrowser for help on using the repository browser.