ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/compilers.mk
Revision: 1.7
Committed: Tue Mar 30 13:44:00 1999 UTC (26 years, 1 month ago) by williamc
Branch: MAIN
CVS Tags: V0_5
Changes since 1.6: +8 -0 lines
Log Message:
Add scram setup installation functionality

File Contents

# Content
1 # Compiler Specific Details
2 #
3 #----------------------------------------------
4 # Some standard variables
5 #----------------------------------------------
6 # arlibname : name of library archive etc
7 # shlibname : name of shared object
8 # arlibobjs : name of objects destined for a library archive
9 # sharedlibobjs : name of objects detined for a shared object file
10 #
11 #
12 #
13 #----------------------------------------------
14 # Standard Defaults
15 # Override as necessary for specific compilers
16 #----------------------------------------------
17 CXX=CC
18 CXXDebugFlag=-g
19 FCDebugFlag=-g
20 FC:=f77
21
22 ArchiveSuffix = a
23 ArchiveTool = ar -rc $@ $^
24 ArchiveCCTool = $(ArchiveTool)
25
26 SharedCCObjectFlags = -PIC
27 SharedFCObjectFlags = -PIC
28 SharedSuffix =so
29 SharedCCTool = @echo No Shared Library support
30
31 #----------------------------------------------
32 # Sun 4.2 CC
33 #----------------------------------------------
34 ifeq ($(CCcompiler),Sun-CC-4.2)
35 CXXFLAGS+=-ptr$(template_dir) -features=rtti
36 #template_dir=$(shell echo $@ )
37 template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
38 ArchiveCCTool = CC -xar -o $@ $^ -ptr$(template_dir)
39 SharedCCTool = CC -G -o $@ $^ -ptr$(template_dir)
40 DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@
41 ifdef f77
42 extralib+=M77 F77 sunmath m
43 endif
44 endif
45
46 #----------------------------------------------
47 # aCC HP-UX
48 #----------------------------------------------
49 ifeq ($(CCcompiler),aCC)
50 CXX=aCC
51 SharedCCObjectFlags = +Z
52 SharedSuffix=sl
53 SharedCCTool=aCC -b $^ -o $@
54 ifdef f77
55 LIBDIR+=/opt/fortran/lib
56 extralib+=cl isamstub U77 /usr/lib/libdld.sl
57 endif
58 endif
59
60 #----------------------------------------------
61 # gcc Linux
62 #----------------------------------------------
63 ifeq ($(CCcompiler),gcc)
64 CXX=c++
65 SharedCCObjectFlags = -fPIC
66 SharedCCTool = gcc $^ -o $@ -shared -Wl,-soname,$@
67 ifdef f77
68 extralib+=f2c m
69 endif
70 endif
71
72 #----------------------------------------------
73 # egcs Linux
74 #----------------------------------------------
75 ifeq ($(CCcompiler),egcs)
76 CXX=c++
77 SharedCCObjectFlags = -fPIC
78 SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
79 ifdef f77
80 extralib+=g2c m
81 endif
82 endif
83
84 #----------------------------------------------
85 # GNU g77 Fortran compiler
86 #----------------------------------------------
87 ifeq ($(F77compiler),g77)
88 FC:=g77
89 endif