Print this page
lib: move compat links from targetdirs to proper makefiles
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/libelf/Makefile.targ.64.man.txt
+++ new/usr/src/cmd/sgs/libelf/Makefile.targ.64.man.txt
1 1 () ()
2 2
3 3
4 4
5 5 # # CDDL HEADER START # # The contents of this file are subject to the terms
6 6 of the # Common Development and Distribution License (the "License"). # You
7 7 may not use this file except in compliance with the License. # # You can
8 8 obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or
9 9 http://www.opensolaris.org/os/licensing. # See the License for the specific
10 10 language governing permissions # and limitations under the License. # # When
11 11 distributing Covered Code, include this CDDL HEADER in each # file and include
12 12 the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the
13 13 following below this CDDL HEADER, with the # fields enclosed by brackets "[]"
14 14 replaced with your own identifying # information: Portions Copyright [yyyy]
15 15 [name of copyright owner] # # CDDL HEADER END # # # Copyright (c) 1997, 2010,
16 16 Oracle and/or its affiliates. All rights reserved. # Copyright 2019 OmniOS
17 17 Community Edition (OmniOSce) Association. #
18 18
19 19 objs/%.o pics/%.o: %.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O)
20 20
21 21 objs/%64.o pics/%64.o: ../common/%.c $(COMPILE.c) -D_ELF64 -o $@ $<
22 22 $(POST_PROCESS_O)
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
23 23
24 24 objs/%.o pics/%.o: ../misc/%.c $(COMPILE.c) -DELF -o $@ $<
25 25 $(POST_PROCESS_O)
26 26
27 27 objs/%.o pics/%.o: ../common/%.c $(COMPILE.c) -o $@ $<
28 28 $(POST_PROCESS_O)
29 29
30 30 all: $(BLTSRCS) .WAIT $(LIBS) $(LIBLINKS)
31 31
32 32 install: all .WAIT $(ROOTFS_LIBS64) $(ROOTFS_LINKS64)
33 + $(ROOTCOMPATLINKS64)
33 34
34 35 delete: $(RM) $(DYNLIB)
35 36
36 37 $(LIBLINKS): $(RM) $(LIBLINKS) $(SYMLINK) $(DYNLIB) $(LIBLINKS)
37 38
38 39 CLOBBERFILES += $(LIBLINKS)
39 40
40 41 # include common library targets # include $(SRC)/lib/Makefile.targ
41 42 include $(SRC)/cmd/sgs/Makefile.targ
42 43
43 44 xlate.c: ../common/xlate.m4 $(M4) < ../common/xlate.m4 > xlate.c
44 45
45 46 xlate64.c: ../common/xlate64.m4 $(M4) < ../common/xlate64.m4 >
46 47 xlate64.c
47 48
48 49 objs/msg.o pics/msg.o: msg.c
49 50
50 51 objs/error.o pics/error.o: msg.h
51 52
52 53 objs/ar.o pics/ar.o: msg.h
53 54
54 55 objs/xlate.o pics/xlate.o: xlate.c
55 56
56 57
57 58 # Derived source and header files (messaging). Make sure that the sgsmsg #
58 59 command is constructed - libelf might not be built with the whole sgs.
59 60
60 61 catalog: $(BLTMESG)
61 62
62 63 chkmsg: $(LIBSRCS) sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS)
63 64
64 65 $(BLTDEFS) + $(BLTDATA): $(SGSMSG) $(SGSMSGTARG) $(SGSMSG)
65 66 $(SGSMSGFLAGS2) $(SGSMSGTARG)
66 67
67 68 $(BLTMESG): $(SGSMSG) $(SGSMSGALL) xlate.c xlate64.c $(SGSMSG)
68 69 $(SGSMSGFLAGS1) $(SGSMSGALL)
69 70
70 71 $(SGSMSG): FRC @ cd $(SGSTOOLS)/$(MACH); pwd; $(MAKE) catalog
71 72 @ pwd
72 73
73 74 # # 64-bit overrides # include ../../Makefile.sub.64
74 75
75 76 FRC:
76 77
77 78
78 79
79 80 July 5, 2019 ()
↓ open down ↓ |
37 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX