source: Sophya/trunk/SophyaLib/Mgr/Makefile.slb@ 1036

Last change on this file since 1036 was 968, checked in by ansari, 25 years ago

refonte Mgr cmv 21/4/00

File size: 3.8 KB
RevLine 
[740]1# -*- makefile -*-
2# ######################### Sophya #############################
3# ##### LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA #####
4# ###############################################################
5# General setup GNU Makefile for Sopyha/Planck. To be included
6# for building shared libraries
7#---------------------------------------------------------------------------
[218]8
[740]9# Chemin des librairies Motifs / X11 (pour chemin non standard)
10LIBXPIPATH :=
11# et liste des librairies pour PI (X11, Motif)
12LIBXPILIST := -lXm -lXt -lX11
[218]13
[823]14# librairie compilateur GNU (g++)
15LIBGPP := -L$(GLB) -lstdc++
16ifeq ($(HOSTTYPE), powerpc)
17 LIBGPP = -L$(GLB)
18endif
19
[740]20# External libraries
21EXTLIB :=
22EXTSLB :=
[218]23
24# Commande de construction de shared-lib
25CMDSHL := ld -partage
26# Flag d'inclusion/fin d'inclusion de tous les points d'entree
27FGSHLA := -tout
28FGSHLN := -rien
29# Librairies specifiques
[740]30LIBLSHL := -lm -lc
[218]31# Librairie d'instanciation des templates
32TILSHL :=
33TILSHLPI :=
34# Commande de construction de la librairie d'instanciation des templates
[740]35CMDTILSHL := echo 'No Template instanciation library (.a)'
36CMDTILSHLPI := echo 'No Template instanciation library (.a)'
[480]37# Utilisation du compilo C++ comme driver pour fabrication des shared-libs
38CMDSHLCXX := $(LINK.cc)
39FGSHLACXX :=
40FGSHLNCXX :=
41# S'il faut utiliser $(CMDSHLCXX) pour fabrication des shared-libs
[740]42USECXX4SO := Y
[480]43# On utilise le compilo g++ pour la fabrication des shared libs
44ifeq ($(EROSCXX), g++)
45 override USECXX4SO := Y
46 override CMDSHLCXX := $(LINK.cc) -shared
[823]47 override LIBLSHL := $(LIBGPP) $(LIBLSHL)
[480]48endif
[218]49
[480]50# On utilise le compilo KCC pour la fabrication des shared libs
51ifeq ($(EROSCXX), KCC)
52 override USECXX4SO := Y
53 override CMDSHLCXX := $(LINK.cc)
54endif
55
56# On utilise le compilo aCC (HP) pour la fabrication des shared libs
57ifeq ($(EROSCXX), aCC)
58 override USECXX4SO := Y
59 override CMDSHLCXX := $(LINK.cc) -b
60endif
61
[218]62# Construction de shared-libs sous OSF1
63ifeq ($(MACHEROS),OSF1)
64 override CMDSHL := ld -shared -update_registry $(SLB)so_locations
65 override FGSHLA := -all
66 override FGSHLN := -none
[823]67# override LIBLSHL := -lcxxstd -lcxx -lexc -lm -lc -lrt
68 override LIBLSHL := $(LIBLSHL) -lrt
[218]69 override TILSHL := $(LIB)libertcxx.a
[740]70 override CMDTILSHL := rm -f $(LIB)libsotcxx.a ; cd $(REP); $(AR) $(ARFLAGS) $(LIB)libsotcxx.a *.o
71 override TILSHLPI := $(LIB)libsotcxxpi.a
72 override CMDTILSHLPI := rm -f $(LIB)libsotcxxpi.a ; cd $(REPPI); $(AR) $(ARFLAGS) $(LIB)libsotcxxpi.a *.o
[218]73 ifeq ($(CXX),g++)
74 override TILSHL :=
75 override TILSHLPI :=
76 endif
[595]77# Attention - Dangereux de mettre -expect_unresolved , enleve Reza 17/11/99
[740]78 override CMDSHLCXX := $(CXX) $(CXXFLAGS) -shared
[266]79 override FGSHLACXX :=
80 override FGSHLNCXX :=
[823]81 override USECXX4SO := Y
[218]82endif
83
84# Construction de shared-libs sous Linux
85ifeq ($(MACHEROS),Linux)
86 override CMDSHL := ld -shared
87 override FGSHLA := --whole-archive
88 override FGSHLN := --no-whole-archiv
89 override CMDSHLCXX := $(LINK.cc) -shared
[480]90 ifeq ($(EROSCXX), KCC)
91 override CMDSHLCXX := $(LINK.cc)
92 endif
[218]93 override FGSHLACXX :=
94 override FGSHLNCXX :=
[823]95 override LIBLSHL := $(LIBLSHL) -ldl
[218]96 override TILSHL :=
[968]97 override LIBXPIPATH := -L/usr/X11/lib -L/usr/X11R6/lib
[740]98 override LIBXPILIST := -lXm -lXt -lXext -lX11
[480]99endif
100
101# Construction de shared-libs sous Sun-OS
102ifeq ($(MACHEROS),SunOS)
103 override CMDSHL := ld -G
104 override FGSHLA := -z allextract
105 override FGSHLN := -z weakextract
106 override TILSHL :=
[740]107 override LIBXPIPATH := -L/usr/X11/lib
[480]108 override USECXX4SO := Y
[218]109endif
110
[480]111# Construction de shared-libs sous SGI
112ifeq ($(MACHEROS), IRIX64)
113 override CMDSHL := ld -shared
114 override FGSHLA := -all
115 override FGSHLN := -notall
116 override TILSHL :=
117 ifeq ($(EROSCXX), CC)
118 override CMDSHLCXX := CC -shared
119 endif
[740]120 override LIBXPIPATH := -L/usr/X11/lib
[480]121 override USECXX4SO := Y
122endif
123
Note: See TracBrowser for help on using the repository browser.