~ubuntu-branches/ubuntu/lucid/nco/lucid

« back to all changes in this revision

Viewing changes to bld/linux2

  • Committer: Bazaar Package Importer
  • Author(s): Brian Mays
  • Date: 2002-02-07 05:42:36 UTC
  • Revision ID: james.westby@ubuntu.com-20020207054236-wgx5jyzn304fiqkb
Tags: 2.2.0-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ifeq ($(PVM_ARCH),LINUXARM)
 
2
C++ := g++
 
3
# 1998/05/17 As of gcc-2.8.0 using -ansi switch breaks because resolv.h structure have changed
 
4
#CC := gcc -ansi
 
5
CC := gcc
 
6
# NB: nameser.h needs -Di386, but gcc is sending -Di586 (on pentiums)
 
7
CPPFLAGS += -D$(PVM_ARCH) -I$(NETCDF_INC)
 
8
FC := g77
 
9
LD := ld
 
10
LDFLAGS += -L$(MY_LIB_DIR) -lnco -L$(NETCDF_LIB) -lnetcdf -lm
 
11
ifeq ($(USE_FORTRAN_ARITHMETIC),Y)
 
12
 LDFLAGS +=
 
13
endif
 
14
LEX := flex
 
15
LINT := lint
 
16
YACC := bison
 
17
ifeq ($(CC),gcc)
 
18
ifeq ($(OPTS),O)
 
19
 CFLAGS += -O2 -Wall
 
20
endif
 
21
ifeq ($(OPTS),D)
 
22
 CFLAGS += -g -Wall
 
23
endif
 
24
ifeq ($(OPTS),R)
 
25
 CFLAGS += -Wall
 
26
endif
 
27
ifeq ($(OPTS),X)
 
28
 CFLAGS += -g -O2 -Wall
 
29
endif
 
30
 C++FLAGS := $(CFLAGS)
 
31
endif
 
32
ifeq ($(FC),pgf90)
 
33
ifeq ($(OPTS),O)
 
34
 FFLAGS := -fast -Mextend -Mnosecond_underscore -mp -byteswapio -Mrecursive -Mdalign
 
35
endif
 
36
ifeq ($(OPTS),D)
 
37
 FFLAGS := -g -Mextend -Mnosecond_underscore -mp -byteswapio -Mrecursive -Mdalign
 
38
endif
 
39
ifeq ($(OPTS),R)
 
40
 FFLAGS := -Mextend -Mnosecond_underscore -mp -byteswapio -Mrecursive -Mdalign
 
41
endif
 
42
ifeq ($(OPTS),X)
 
43
 FFLAGS := -g -Mbounds -Mextend -Mnosecond_underscore -mp -byteswapio -Mrecursive -Mdalign
 
44
endif
 
45
endif
 
46
ifeq ($(FC),g77)
 
47
ifeq ($(OPTS),O)
 
48
 FFLAGS := -O -ffixed-line-length-132 -fno-second-underscore
 
49
endif
 
50
ifeq ($(OPTS),D)
 
51
 FFLAGS := -g -ffixed-line-length-132 -fno-second-underscore -fdebug-kludge
 
52
endif
 
53
ifeq ($(OPTS),R)
 
54
 FFLAGS := -ffixed-line-length-132 -fno-second-underscore -fdebug-kludge
 
55
endif
 
56
ifeq ($(OPTS),X)
 
57
 FFLAGS := -g -O -ffixed-line-length-132 -fno-second-underscore -fdebug-kludge -fbounds-check
 
58
endif
 
59
endif
 
60
endif
 
61
# endif LINUXARM