ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/compilers.mk
(Generate patch)

Comparing COMP/SCRAM/src/compilers.mk (file contents):
Revision 1.2 by williamc, Fri Mar 19 16:55:39 1999 UTC vs.
Revision 1.4 by williamc, Wed Mar 24 10:18:07 1999 UTC

# Line 31 | Line 31 | SharedCCTool = @echo No Shared Library s
31   # Sun 4.2 CC
32   #----------------------------------------------
33   ifeq ($(CCcompiler),Sun-CC-4.2)
34 < ArchiveCCTool = CC -xar -o $@ $^
35 < SharedCCTool = CC -G -o $@ $^
36 < DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@
34 > CXXFLAGS+=-ptr$(template_dir)
35 > #template_dir=$(shell echo $@ )
36 > template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' )
37 > ArchiveCCTool = CC -xar -o $@ $^ -ptr$(template_dir)
38 > SharedCCTool = CC -G -o $@ $^ -ptr$(template_dir)
39 > DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@
40 > ifdef f77
41 > extralib+=M77 F77 sunmath m
42 > endif
43   endif
44  
45   #----------------------------------------------
# Line 44 | Line 50 | CXX=aCC
50   SharedCCObjectFlags = +Z
51   SharedSuffix=sl
52   SharedCCTool=aCC -b $^ -o $@
53 + ifdef f77
54 + LIBDIR+=/opt/fortran/lib
55 + extralib+=cl isamstub U77 /usr/lib/libdld.sl
56 + endif
57   endif
58  
59   #----------------------------------------------
# Line 53 | Line 63 | ifeq ($(CCcompiler),gcc)
63   CXX=c++
64   SharedCCObjectFlags = -fPIC
65   SharedCCTool = gcc $^ -o $@ -shared -Wl,-soname,$@
66 + ifdef f77
67 + extralib+=f2c m
68 + endif
69   endif
70  
71   #----------------------------------------------
# Line 62 | Line 75 | ifeq ($(CCcompiler),egcs)
75   CXX=c++
76   SharedCCObjectFlags = -fPIC
77   SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
78 + ifdef f77
79 + extralib+=g2c m
80 + endif
81   endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines