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 (119 lines) | stat: -rw-r--r-- 2,913 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
COMM       @(#)$RCSfile: Imakefile,v $ $Revision: 10274 $ $Date: 2014-03-28 15:50:10 +0100 (Fri, 28 Mar 2014) $ CERN IT-PDP/DM Jean-Philippe Baud
COMM
COMM  Copyright (C) 2000-2011 by CERN/IT/PDP/DM
COMM  All rights reserved
COMM

COMM 		Make DPM/LFC shared libraries           GENERIC

#include <Library.tmpl>

include FileName(..,VERSION)
LIB = InstallLibDir

COMM Archive symbol table entry name
#if __osf__ && __alpha
SYMTABNAM = ________64ELEL_
#else
SYMTABNAM = __.SYMDEF
#endif

#if BuildNameServerAsLFC
COMM Libraries to include in SharedLibraryTargetName(lfc)

all:    SharedLibraryTargetName(lfc)

install: $(LIB) FileName($(LIB),SharedLibraryTargetName(lfc))

export: $(EXPORTLIB)/SharedLibraryTargetName(lfc)
#else
#if BuildNameServerAsDPNS
COMM Libraries to include in SharedLibraryTargetName(dpm)

all:    SharedLibraryTargetName(dpm)

install: $(LIB) FileName($(LIB),SharedLibraryTargetName(dpm))

export: $(EXPORTLIB)/SharedLibraryTargetName(dpm)
#endif
#endif

COMM Libraries to include in SharedLibraryTargetame(lcgdm)

all:	SharedLibraryTargetName(lcgdm)

install: $(LIB) FileName($(LIB),SharedLibraryTargetName(lcgdm))

export: $(EXPORTLIB)/SharedLibraryTargetName(lcgdm)

exportman: 

exportshr: 

libdpm.sl libdpm.so libdpm.dylib: $(RFIOLIB) $(NSLIB) $(DPMLIB)
liblfc.sl liblfc.so liblfc.dylib: $(NSLIB)

%.sl %.so %.dylib: SharedLibraryTargetName(lcgdm)
	@echo " making $@ in `pwd`"
	@-rm -rf tmp.$@
	@mkdir tmp.$@
	@for i in $^ ;\
	do (cd tmp.$@; case $$i in *.a) $(AR) x ../$$i; rm -f $(SYMTABNAM) ;; esac) done
	(cd tmp.$@; $(CC) $(SHLIBLDFLAGS) SonameOption($@,`echo $(VERSION)|cut -f1 -d.`) -o ../$@ *.o -L.. -llcgdm $(LIBCSEC))
	@-rm -rf tmp.$@

liblcgdm.sl liblcgdm.so liblcgdm.dylib: $(COMMONLIB) $(SECURITYLIB)
	@echo " making $@ in `pwd`"
	@-rm -rf tmp.$@
	@mkdir tmp.$@
	@for i in $^ ;\
	do (cd tmp.$@; $(AR) x ../$$i; rm -f $(SYMTABNAM)) done
	(cd tmp.$@; $(CC) $(SHLIBLDFLAGS) SonameOption($@,`echo $(VERSION)|cut -f1 -d.`) -o ../$@ *.o $(SHLIBREQLIBS) $(LIBCSEC) -ldl -lstdc++)
	@-rm -rf tmp.$@

libdpm.dll: $(RFIOLIB) $(NSLIB) $(DPMLIB)
liblfc.dll: $(NSLIB)
liblcgdm.dll: $(COMMONLIB) $(SECURITYLIB)

%.dll:
	@echo  making $@ in CurDir
	link /dll /noentry /nologo /out:$@ $**

MakeDir($(LIB),root,bin,0755)

InstallSharedLibrary(dpm,$(VERSION),$(LIB))
InstallSharedLibrary(lfc,$(VERSION),$(LIB))
InstallSharedLibrary(lcgdm,$(VERSION),$(LIB))

InstallSharedLibrary(dpm,$(VERSION),$(EXPORTLIB))
InstallSharedLibrary(lfc,$(VERSION),$(EXPORTLIB))
InstallSharedLibrary(lcgdm,$(VERSION),$(EXPORTLIB))

install.man:

#if _WIN32
clean:
	@echo cleaning in CurDir
	-@RemoveFiles(FilesToClean)
#else
clean:
	@echo cleaning in CurDir
	-@RemoveFiles(FilesToClean)
	-@rm -rf tmp.* > /dev/null 2>&1
#endif
clobber:        clean

Makefiles:

MakeDepLibrary(common,common)

MakeDepLibrary(rfio,rfio)

MakeDepLibrary(ns,ns)

MakeDepLibrary(dpm,dpm)

MakeDepLibrary(security,security)

FORCE: