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
|
XCOMM $XConsortium: scoLib.rules /main/2 1996/09/28 16:12:20 rws $
XCOMM $XFree86: xc/config/cf/scoLib.rules,v 1.5 1999/10/13 04:20:42 dawes Exp $
/*
* SharedLibraryTarget3 - 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.
*
* Work around SCO sh enviroment size problem.
*/
#ifndef SharedLibraryTarget3
#define SharedLibraryTarget3(libname,rev,solist1,solist2,solist3,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist1 solist2 solist3 $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
echo -n $(LD) -o up/$@~ $(SHLIBLDFLAGS) -h $(DESTDIR)$(SHLIBDIR)/$@ solist1 " " > Concat(down/lib,cmd) @@\
echo -n solist2 " " >> Concat(down/lib,cmd) @@\
echo -n solist3 >> Concat(down/lib,cmd) @@\
(cd down; $(SHELL) Concat(./lib,cmd)) @@\
$(RM) $@ Concat(lib,tmp1) Concat(lib,tmp2) @@\
$(MV) $@~ $@ @@\
@if $(SOSYMLINK); then (set -x; \ @@\
$(RM) Concat(lib,libname.so); \ @@\
$(LN) $@ Concat(lib,libname.so)); fi @@\
LinkBuildLibrary($@) @@\
LinkBuildLibraryMaybe(Concat(lib,libname.so)$(SOSYMLINK)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* SharedLibraryTarget */
/*
* Redefine this so we can drop -b elf and build COFF objects for the
* archived library. This assumes -b elf is hanging out in CCOPTIONS
*/
#ifndef UnsharedLibObjCompile
#define UnsharedLibObjCompile(options) RemoveFile($@) @@\
ClearmakeOSName \
$(CC) -c $(CDEBUGFLAGS) $(CLIBDEBUGFLAGS) $(THREADS_CFLAGS) $(ALLDEFINES) options $*.c @@\
$(MV) $@ unshared/$@
#endif
|