File: Imakefile

package info (click to toggle)
lcgdm 1.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,532 kB
  • sloc: ansic: 226,887; sh: 13,562; perl: 11,575; python: 11,572; cpp: 5,716; sql: 1,824; makefile: 1,301; fortran: 113
file content (214 lines) | stat: -rw-r--r-- 4,923 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
COMM
COMM  Copyright (C) 1999-2011 by CERN/IT/PDP/DM
COMM  All rights reserved
COMM
COMM       @(#)$RCSfile: Imakefile,v $ $Revision: 9297 $ $Date: 2013-08-08 18:03:24 +0200 (Thu, 08 Aug 2013) $ CERN IT-PDP/DM Jean-Philippe Baud
 
COMM    Make name server programs.


#define IMAKE_CNS  "Imakefile.cns"
#define IMAKE_LFC  "Imakefile.lfc"
#define IMAKE_DPNS "Imakefile.dpns"


#if PyRunSwig
PY_RUNSWIG = "YES"
#endif
#if UseArgus
ARGUS_LOCATION = ArgusLocation
ARGUSINC = -I$(ARGUS_LOCATION)/include
LIBARGUS = -L$(ARGUS_LOCATION)/$(_lib) -largus-pep
#endif
#if UseSEMsg
SEMSG_LOCATION = SEMsgLocation
SEMSGINC = -I$(SEMSG_LOCATION)/include
LIBSEMSG = -ldl -lstdc++ $(SEMSG_LOCATION)/$(_lib)/libSEMsgConnector_C.a
SEMSGFLAG = -DSEMSG
#endif
CNS_HOST = NsHost
CNSHOSTPFX = NsHostPfx
#if BuildSecurity
CSECFLAG = -DCSEC
#if UseGSI
GLOBUS_LOCATION=GlobusLocation
#if EMIBuild
GLOBUS_LIBS=-lglobus_gssapi_gsi -lglobus_gss_assist
#else
#if defined(__STDC__)
GLOBUS_FLAVOUR=GlobusFlavour##pthr
#else
GLOBUS_FLAVOUR=GlobusFlavour/**/pthr
#endif
GLOBUS_LIBS=-L$(GLOBUS_LOCATION)/lib -lglobus_gssapi_gsi_$(GLOBUS_FLAVOUR) -lglobus_gss_assist_$(GLOBUS_FLAVOUR)
#endif
LIBCSEC += $(GLOBUS_LIBS)
#endif
LIBCSEC += -ldl
#if UseVirtualIds
VIDFLAG = -DVIRTUAL_ID
#endif
#if UseVOMS
VOMSFLAG = -DUSE_VOMS
#endif
#endif
INCLUDES = FileName(..,h)
TOPLIBRARYNAME = TopLibraryName
#if _AIX
LIBS = -L../shlib -l$(TOPLIBRARYNAME) -llcgdm
#else
#if defined(__alpha) && defined(__osf__)
LIBS = -no_so -L../shlib -l$(TOPLIBRARYNAME) -llcgdm -so_archive
#else
#if hpux
LIBS = -L../shlib -l$(TOPLIBRARYNAME) -llcgdm
#else
#if linux

LIBS = -L../shlib -l$(TOPLIBRARYNAME) -llcgdm -lnsl -lstdc++

#else
#if sgi
LIBS = -L../shlib -l$(TOPLIBRARYNAME) -llcgdm
#else
#if SOLARIS
LIBS = -L../shlib -l$(TOPLIBRARYNAME) -llcgdm -lsocket -lnsl
#else
#if _WIN32
LIBS = ..\lib\$(TOPLIBRARYNAME).lib wsock32.lib advapi32.lib
#else
LIBS = -L../shlib -l$(TOPLIBRARYNAME) -llcgdm
#endif
#endif
#endif
#endif
#endif
#endif
#endif
LIBUUID =
#ifndef darwin
LIBUUID += -luuid
#endif
#if _WIN32
NSLIB = ns.lib
#else
NSLIB =
#endif
SPOOL = NsSpool
LOGFILE = FileName($(SPOOL),log)
#if Accounting
SACCTDIR = SacctDir
SACCTFILE = FileName(SacctDir,sacct)
ACCTFILE = -DACCTFILE=\"$(SACCTFILE)\"
#endif
LCGDM_MAPFILE = IdMapFile
NSCONFIG = NsConfigFile
#if UseOracle
DBOBJS = Cns_oracle_ifce.Osuf
ORAFLG = -DUSE_ORACLE
#if defined(_WIN32)
ORAINC = -I$(ORACLE_HOME)\PRO80\C\INCLUDE
LIBORA = $(ORACLE_HOME)\PRO80\LIB\MSVC\SQLLIB80.LIB
WNT_SYS_INCLUDE = "INCLUDE=$(MSDEVDIR)\..\Vc\Include"
#else
ifdef ORACLE_INCLUDE
ORAINC = -I$(ORACLE_INCLUDE)
else
ORAINC = -I$(ORACLE_HOME)/precomp/public
endif
#endif
#else
#if UseMySQL
DBOBJS = Cns_mysql_ifce.Osuf
MYSFLG = -DUSE_MYSQL
MYSQL_LOCATION = MySQLLocation
MYSINC = -I$(MYSQL_LOCATION)/include/mysql
LIBMYS = -L$(MYSQL_LOCATION)/$(_lib)/mysql -lmysqlclient
#else
#if UsePostgres
DBOBJS = Cns_libpq_ifce.Osuf
POSFLG = -DUSE_POSTGRES
LIBPOS = -lpq
#endif
#endif
#endif
 
COMM######################### FLAGS ##############################
 
DFLAGS = -DBIN=\"$(BIN)\" -DCNS_HOST=\"$(CNS_HOST)\" \
         -DCNSHOSTPFX=\"$(CNSHOSTPFX)\" \
         -DLCGDM_MAPFILE=\"$(LCGDM_MAPFILE)\" \
         -DLOGFILE=\"$(LOGFILE)\" \
         -DNSCONFIG=\"$(NSCONFIG)\" \
         $(ACCTFLAG) $(ACCTFILE) $(NSTYPE) $(ORAFLG) $(MYSFLG) $(POSFLG) $(CSECFLAG) \
         $(VIDFLAG) $(VOMSFLAG) $(SEMSGFLAG)
 
CFLAGS = -g -I$(INCLUDES) $(MTCCFLAGS) $(DFLAGS) $(ORAINC) $(MYSINC) $(POSINC) $(SEMSGINC)
 
COMM######################### RULES ##############################

#if BuildNameServerClient
MANDIRS = $(LIBMANDIR) $(MANDIR)
#else
#if BuildNameServerLibrary || BuildInterfaces
MANDIRS = $(LIBMANDIR)
#else
#if BuildNameServerDaemon
MANDIRS = $(MANDIR) $(DMONMANDIR)
#endif
#endif
#endif

#if BuildNameServerAsLFC
#include IMAKE_LFC
#else
#if BuildNameServerAsDPNS
#include IMAKE_DPNS
#else
#include IMAKE_CNS
#endif
#endif

MakeDir($(BIN),root,bin,0755)
MakeDir($(SBIN),root,bin,0755)
MakeDir($(NSSHAREDIR),root,bin,0755)
MakeDir($(SPOOL),root,bin,0755)
MakeDir($(SYSCONFDIR),root,bin,0755)
MakeDir($(LIB),root,bin,0755)
MakeDir($(INITRCDIR),root,bin,0755)
MakeDir($(LOGROTATEDIR),root,bin,0755)
MakeDir($(FLAVOURDIR),root,bin,0755)
MakeDir($(CONFFLAVOURDIR),root,bin,0755)
MakeDir($(LIBFLAVOURDIR),root,bin,0755)

#if Accounting
MakeDir($(SACCTDIR),root,bin,0777)
#endif

MakeDir($(LIBMANDIR),root,bin,0755)
MakeDir($(MANDIR),root,bin,0755)
MakeDir($(DMONMANDIR),root,bin,0755)

COMM###################### CLEANING RULES ########################
 
clean:
	-@RemoveFiles(FilesToClean)
 
clobber:        clean
	-@RemoveFiles($(CLIENT) $(PROGS_D) $(ARGUS_IFCE))
 
#if _WIN32
depend:
	@echo Not supported on this platform
#else
depend:
	makedepend $(DFLAGS) -Y$(INCLUDES) *.c 2> /dev/null
#endif

Makefiles:
 
FORCE:

COMM###################### DEPENDENCIES ##########################

COMM DO NOT DELETE THIS LINE -- make  depend  depends  on  it.