ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/compilers.mk
Revision: 1.6
Committed: Fri Mar 26 15:14:37 1999 UTC (26 years, 1 month ago) by williamc
Branch: MAIN
CVS Tags: V0_4, V0_3
Changes since 1.5: +1 -1 lines
Log Message:
Fix binary targets - dependencies not yet working

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
21 ArchiveSuffix = a
22 ArchiveTool = ar -rc $@ $^
23 ArchiveCCTool = $(ArchiveTool)
24
25 SharedCCObjectFlags = -PIC
26 SharedFCObjectFlags = -PIC
27 SharedSuffix =so
28 SharedCCTool = @echo No Shared Library support
29
30 #----------------------------------------------
31 # Sun 4.2 CC
32 #----------------------------------------------
33 ifeq ($(CCcompiler),Sun-CC-4.2)
34 CXXFLAGS+=-ptr$(template_dir) -features=rtti
35 #template_dir=$(shell echo $@ )
36 template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/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 #----------------------------------------------
46 # aCC HP-UX
47 #----------------------------------------------
48 ifeq ($(CCcompiler),aCC)
49 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 #----------------------------------------------
60 # gcc Linux
61 #----------------------------------------------
62 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 #----------------------------------------------
72 # egcs Linux
73 #----------------------------------------------
74 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