1 XCOMM $XConsortium: scoLib.rules /main/2 1996/09/28 16:12:20 rws $
2 XCOMM $XFree86: xc/config/cf/scoLib.rules,v 1.1.1.2.2.2 1997/07/19 12:59:10 dawes Exp $
5 * SharedLibraryTarget3 - generate rules to create a shared library;
6 * build it into a different name so that we do not hose people by having
7 * the library gone for long periods.
9 * Work around SCO sh enviroment size problem.
11 #ifndef SharedLibraryTarget3
12 #define SharedLibraryTarget3(libname,rev,solist1,solist2,solist3,down,up) @@\
13 AllTarget(Concat(lib,libname.so.rev)) @@\
15 Concat(lib,libname.so.rev): solist1 solist2 solist3 $(EXTRALIBRARYDEPS) @@\
17 echo -n $(LD) -o up/$@~ $(SHLIBLDFLAGS) -h $(DESTDIR)$(SHLIBDIR)/$@ solist1 " " > Concat(down/lib,cmd) @@\
18 echo -n solist2 " " >> Concat(down/lib,cmd) @@\
19 echo -n solist3 >> Concat(down/lib,cmd) @@\
20 (cd down; $(SHELL) Concat(./lib,cmd)) @@\
21 $(RM) $@ Concat(lib,tmp1) Concat(lib,tmp2) @@\
23 $(RM) Concat(lib,libname.so) @@\
24 $(LN) $@ Concat(lib,libname.so) @@\
25 LinkBuildLibrary($@) @@\
26 LinkBuildLibrary(Concat(lib,libname.so)) @@\
29 $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
31 #endif /* SharedLibraryTarget */
34 * Redefine this so we can drop -b elf and build COFF objects for the
35 * archived library. This assumes -b elf is hanging out in CCOPTIONS
37 #ifndef UnsharedLibObjCompile
38 #define UnsharedLibObjCompile(options) RemoveFile($@) @@\
40 $(CC) -c $(CDEBUGFLAGS) $(THREADS_CFLAGS) $(ALLDEFINES) options $*.c @@\