linux: move dependancy handling out of linux.cf and into new lnxDep.rules file.
[oweals/cde.git] / cde / config / cf / lnxLib.tmpl
1 XCOMM $TOG: lnxLib.tmpl /main/7 1998/03/20 14:26:41 mgreess $
2
3 /*
4  * Linux shared library template
5  */
6
7 /* Linux ELF shared libraries are deficient in link semantics */
8 #if UseElfFormat
9 #ifndef FixupLibReferences
10 #define FixupLibReferences()                                            @@\
11 XMULIBONLY = -lXmu                                                      @@\
12 XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
13 #endif
14 #ifndef XawClientLibs
15 #define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
16 #endif
17 #else
18 #ifndef FixupLibReferences
19 #define FixupLibReferences()                                            @@\
20 XMULIB = -lXmu $(XLIB)
21 #endif
22
23 #endif
24
25 #ifndef SharedXReqs
26 # define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) $(LDPOSTLIBS)
27 #endif
28
29 #ifndef SharedXmReqs
30 # define SharedXmReqs $(LDPRELIBS) SharedXReqs -lc
31 #endif
32
33 #ifndef SharedTtReqs
34 # define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB)
35 #endif
36
37 #ifndef SharedDtSvcReqs
38 # define SharedDtSvcReqs $(LDPRELIBS) SharedXReqs $(CXXLIB)
39 #endif
40
41 #ifndef SharedCsaReqs
42 # define SharedCsaReqs -lXt $(TIRPCLIB)
43 #endif
44
45 #ifndef SharedDtHelpReqs
46 # define SharedDtHelpReqs -ljpeg
47 #endif