]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/scoLib.rules
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / config / cf / scoLib.rules
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 $
3
4 /*
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.  
8  *
9  * Work around SCO sh enviroment size problem.
10  */
11 #ifndef SharedLibraryTarget3
12 #define SharedLibraryTarget3(libname,rev,solist1,solist2,solist3,down,up)       @@\
13 AllTarget(Concat(lib,libname.so.rev))                                   @@\
14                                                                         @@\
15 Concat(lib,libname.so.rev): solist1 solist2 solist3 $(EXTRALIBRARYDEPS) @@\
16         $(RM) $@~                                                       @@\
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)                      @@\
22         $(MV) $@~ $@                                                    @@\
23         $(RM) Concat(lib,libname.so)                                    @@\
24         $(LN) $@ Concat(lib,libname.so)                                 @@\
25         LinkBuildLibrary($@)                                            @@\
26         LinkBuildLibrary(Concat(lib,libname.so))                        @@\
27                                                                         @@\
28 clean::                                                                 @@\
29         $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
30
31 #endif /* SharedLibraryTarget */
32
33 /*
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
36  */
37 #ifndef UnsharedLibObjCompile
38 #define UnsharedLibObjCompile(options) RemoveFile($@)                  @@\
39         ClearmakeOSName                                                  \
40         $(CC) -c $(CDEBUGFLAGS) $(THREADS_CFLAGS) $(ALLDEFINES) options $*.c @@\
41         $(MV) $@ unshared/$@
42 #endif
43