summaryrefslogtreecommitdiff
path: root/sv3Lib.rules
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:20 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:20 +0000
commit272f68b2bffd736cede856a96231afe237261c8d (patch)
tree735f02d872ec1c4e704c26240c1755b81565b5cb /sv3Lib.rules
parent978fce56ab5d93678618fad722f69c464df12c3f (diff)
Diffstat (limited to 'sv3Lib.rules')
-rw-r--r--sv3Lib.rules33
1 files changed, 31 insertions, 2 deletions
diff --git a/sv3Lib.rules b/sv3Lib.rules
index 72c8118..da53c87 100644
--- a/sv3Lib.rules
+++ b/sv3Lib.rules
@@ -2,7 +2,7 @@ XCOMM $Xorg: sv3Lib.rules,v 1.3 2000/08/17 19:41:48 cpqbld Exp $
-XCOMM $XFree86: xc/config/cf/sv3Lib.rules,v 3.0 1994/05/21 23:39:31 dawes Exp $
+XCOMM $XFree86: xc/config/cf/sv3Lib.rules,v 3.5 2002/11/22 22:55:56 tsi Exp $
/*
* SVR3 shared library rules
* Copyright (c) 1992, 1993 by Thomas Wolfram, Berlin, Germany
@@ -98,6 +98,10 @@ XCOMM $XFree86: xc/config/cf/sv3Lib.rules,v 3.0 1994/05/21 23:39:31 dawes Exp $
# endif
#endif
+#ifndef StripInstalledPrograms
+# define StripInstalledPrograms NO
+#endif
+
#if 0
/*
* LibCleanDir - helper for cleaning library object subdirectories
@@ -114,7 +118,8 @@ XCOMM $XFree86: xc/config/cf/sv3Lib.rules,v 3.0 1994/05/21 23:39:31 dawes Exp $
#define SharedLibObjCompile(options) $(RM) shared/$@ @@\
cat import.h $*.c >_$*.c @@\
$(CC) -c $(ANSICCOPTIONS) $(CCOPTIONS) $(ALLDEFINES) options \ @@\
-$(SHLIBDEF) $(SHAREDCODEDEF) $(PICFLAGS) $(CDEBUGFLAGS) _$*.c @@\
+$(SHLIBDEF) $(SHAREDCODEDEF) $(PICFLAGS) $(CDEBUGFLAGS) $(CLIBDEBUGFLAGS) \@@\
+_$*.c @@\
$(MV) _$*.o shared/$@ @@\
$(RM) _$*.c
#endif
@@ -223,6 +228,30 @@ clean:: @@\
#endif /* SharedLibraryTarget */
/*
+ * SharedDepLibraryTarget - generate rules to create a shared library.
+ */
+#ifndef SharedDepLibraryTarget
+#define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\
+AllTarget(Concat(lib,libname.rev)) @@\
+ @@\
+Concat(lib,libname.rev): deplist @@\
+ $(RM) $@ Concat3(lib,libname,_s.a) @@\
+ $(CPP) -DDOWN=down ConnectionFlags ShlibDefines Concat(lib,libname.def) | \ @@\
+ sed -e '/^# *[0-9][0-9]* *.*$$/d; /^$$/d' >spec.cpp @@\
+ sed -e '1,/#libraries/d; /#externals/,$$d' spec.cpp | \ @@\
+ nawk '{ system("ar x " $$1 " " $$2 )}' @@\
+ echo "#target " Concat($(LIBDIR)/shlib/lib,libname.rev) >spec @@\
+ sed -e '/#libraries/,$$d' spec.cpp >>spec @@\
+ mkshlib -s spec -t $@ -h Concat3(lib,libname,_s.a) $(SHLIBLDFLAGS) @@\
+ ar rulv Concat3(lib,libname,_s.a) `sed -e '1,/#externals/d' spec.cpp` @@\
+ $(RM) spec.cpp spec @@\
+ @@\
+clean:: @@\
+ $(RM) Concat(lib,libname.rev) Concat3(lib,libname,_s.a)
+
+#endif /* SharedDepLibraryTarget */
+
+/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget