/usr/lib/X11/config/hpLib.rules is in xutils-dev 1:7.7+5ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | XCOMM $Xorg: hpLib.rules,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
/*
* HP shared library rules
*/
XCOMM $XFree86: xc/config/cf/hpLib.rules,v 3.3 1999/01/11 05:13:06 dawes Exp $
#ifndef HasSharedLibraries
# define HasSharedLibraries YES
#endif
#ifndef SharedDataSeparation
# define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
# define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
# define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
# define ShLibIncludeFile <hpLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
# define SharedLibraryLoadFlags -b
#endif
#ifndef PositionIndependentCFlags
# define PositionIndependentCFlags +z
#endif
#ifndef LargePositionIndependentCFlags
# define LargePositionIndependentCFlags +Z
#endif
#ifndef InstLibFlags
# define InstLibFlags -m 0555
#endif
#ifndef UseInstalled
/* assert: LdPostLib pulls in -L$(USRLIBDIR), so it doesn't need to be here */
# define ExtraLoadFlags -Wl,+s -Wl,+b$(USRLIBDIRPATH)
#endif
#ifndef UseExportLists
# define UseExportLists YES
#endif
/* Pre-linking shared libraries is supported in HP/UX 10. */
#if OSMajorVersion > 9
# define HPRequiredLibs $(LDPRELIBS) $(REQUIREDLIBS) +s +b $(USRLIBDIRPATH)
#else
# define HPRequiredLibs $(REQUIREDLIBS)
#endif
#ifndef LinkWithExports
# if UseExportLists
# define LinkWithExports(libname,rev,solist,down,up) \
(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) +h $@ solist HPRequiredLibs) @@\
if [ -f Concat(lib,libname.elist) ]; then \ @@\
RemoveFiles($@.exports $@.list); \ @@\
$(CPP) $(ALLINCLUDES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES) Concat(lib,libname.elist) | CppSedMagic >$@.list; \ @@\
$(EXPORTLISTGEN) $@~ $@.list > $@.exports; \ @@\
(cd down; $(LD) -c up/$@.exports -o up/$@~ $(SHLIBLDFLAGS) +h $@ solist HPRequiredLibs); \ @@\
RemoveFiles($@.exports $@.list); \ @@\
fi
# else
# define LinkWithExports(libname,rev,solist,down,up) \
(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) +h $@ solist HPRequiredLibs)
# endif
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
# define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.sl.rev) @@\
MakeDir($(DESTDIR)dest) @@\
RMoveToBakFile(Concat($(DESTDIR)dest/lib,libname.sl.rev)) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.sl.rev) $(DESTDIR)dest @@\
$(RM) Concat($(DESTDIR)dest/lib,libname.sl) @@\
cd $(DESTDIR)dest; $(LN) Concat(lib,libname.sl.rev) Concat(lib,libname.sl) @@\
-RemoveFile(Concat(lib,libname.sl.rev.bak))
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
# define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
# define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.sl.rev)) @@\
@@\
Concat(lib,libname.sl.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
LinkWithExports(libname,rev,solist,down,up) @@\
-RemoveFiles($@ $@.bak) @@\
MoveToBakFile($@) @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.sl) @@\
$(LN) $@ Concat(lib,libname.sl) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.sl)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.sl.rev) Concat(lib,libname.sl)
#endif /* SharedLibraryTarget */
/*
* SharedDepLibraryTarget - generate rules to create a shared library.
*/
#ifndef SharedDepLibraryTarget
# define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\
AllTarget(Concat(lib,libname.sl.rev)) @@\
@@\
Concat(lib,libname.sl.rev): deplist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
LinkWithExports(libname,rev,solist,down,up) @@\
-RemoveFiles($@ $@.bak) @@\
MoveToBakFile($@) @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.sl) @@\
$(LN) $@ Concat(lib,libname.sl) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.sl)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.sl.rev) Concat(lib,libname.sl)
#endif /* SharedDepLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
# define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */
|