diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:20 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:20 +0000 |
commit | 272f68b2bffd736cede856a96231afe237261c8d (patch) | |
tree | 735f02d872ec1c4e704c26240c1755b81565b5cb /sgiLib.rules | |
parent | 978fce56ab5d93678618fad722f69c464df12c3f (diff) |
XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1
Diffstat (limited to 'sgiLib.rules')
-rw-r--r-- | sgiLib.rules | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sgiLib.rules b/sgiLib.rules index e5d8d0d..e9e575d 100644 --- a/sgiLib.rules +++ b/sgiLib.rules @@ -1,4 +1,5 @@ XCOMM $Xorg: sgiLib.rules,v 1.3 2000/08/17 19:41:48 cpqbld Exp $ +XCOMM $XFree86: xc/config/cf/sgiLib.rules,v 1.4 2001/01/17 16:22:33 dawes Exp $ #ifndef HasSharedLibraries #define HasSharedLibraries YES @@ -30,6 +31,23 @@ Concat3(lib,libname,_s): sharedlib.o solist Concat(lib,libname.spec) $(EXTRALIBR clean:: @@\ $(RM) Concat3(lib,libname,_s) Concat3(lib,libname,_s.a) +/* + * SharedDepLibraryTarget - generate rules to create a shared library. + */ +#define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\ +AllTarget(Concat3(lib,libname,_s)) @@\ + @@\ +Concat3(lib,libname,_s): deplist sharedlib.o Concat(lib,libname.spec) $(EXTRALIBRARYDEPS) @@\ + $(RM) $@ $@.a \ @@\ + && cd down \ @@\ + && mkshlib -s Concat(up/lib,libname.spec) -t up/$@ -h up/$@.a \ @@\ + && ar rs up/$@.a sharedlib.o @@\ + LinkBuildLibrary($@) @@\ + LinkBuildLibrary($@.a) @@\ + @@\ +clean:: @@\ + $(RM) Concat3(lib,libname,_s) Concat3(lib,libname,_s.a) + #define SharedLibraryDataTarget(libname,rev,salist) /* @@ -163,4 +181,24 @@ clean:: @@\ #define SharedLibraryDataTarget(libname,rev,salist) #endif /* SharedLibraryTarget */ +#ifndef SharedDepLibraryTarget +#define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\ +AllTarget(Concat(lib,libname.so.rev)) @@\ + @@\ +Concat(lib,libname.so.rev): deplist $(EXTRALIBRARYDEPS) @@\ + $(RM) $@~ @@\ + (cd down; $(CCENVSETUP) $(LD) -o up/$@~ $(SHLIBLDFLAGS) -soname $@ solist $(REQUIREDLIBS)) @@\ + $(RM) $@ @@\ + $(MV) $@~ $@ @@\ + $(RM) Concat(lib,libname.so) @@\ + $(LN) $@ Concat(lib,libname.so) @@\ + LinkBuildLibrary($@) @@\ + LinkBuildLibrary(Concat(lib,libname.so)) @@\ + sgiX11soHack(libname) @@\ + @@\ +clean:: @@\ + $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so) so_locations + +#endif /* SharedDepLibraryTarget */ + #endif /* OsMajorVersion < 5 else */ |