Print this page
make: ship the Joyent patch to enable parallel make (originally from rm)
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/make/bin/Makefile
+++ new/usr/src/cmd/make/bin/Makefile
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 # Copyright 2015, Richard Lowe.
13 13
14 14 PROG= make
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 OBJS= ar.o \
16 16 depvar.o \
17 17 dist.o \
18 18 doname.o \
19 19 dosys.o \
20 20 files.o \
21 21 globals.o \
22 22 implicit.o \
23 23 macro.o \
24 24 main.o \
25 - make.o \
26 25 misc.o \
27 26 nse_printdep.o \
28 27 parallel.o \
29 28 pmake.o \
30 29 read.o \
31 30 read2.o \
32 31 rep.o \
33 32 state.o
34 33
35 34 include ../../Makefile.cmd
36 35 include ../Makefile.com
37 36
38 37 LDLIBS += ../lib/mksh/libmksh.a ../lib/mksdmsi18n/libmksdmsi18n.a ../lib/vroot/libvroot.a
39 -LDLIBS += ../lib/bsd/libbsd.a -lc
38 +LDLIBS += ../lib/bsd/libbsd.a -lc -lnsl -lumem
40 39
41 40 CPPFLAGS += -D_FILE_OFFSET_BITS=64
42 41
43 42 ROOTLINKS = $(ROOTCCSBIN)/make $(ROOTXPG4BIN)/make $(ROOTBIN)/dmake $(ROOTCCSLIB)/svr4.make \
44 43 $(ROOTLIB)/svr4.make
45 44
46 45 ROOTRULES = $(ROOTSHLIB)/make/make.rules $(ROOTSHLIB)/make/svr4.make.rules
47 46
48 47 all: $(PROG)
49 48
50 49 install: all $(ROOTPROG) $(ROOTLINKS) $(ROOTRULES)
51 50
52 51 $(PROG): $(OBJS)
53 52 $(LINK.cc) $(OBJS) -o $@ $(LDLIBS)
54 53 $(POST_PROCESS)
55 54
56 55 $(ROOTCCSBIN)/make:
57 56 -$(RM) $@; $(SYMLINK) ../../bin/make $@
58 57
59 58 $(ROOTCCSLIB)/svr4.make:
60 59 -$(RM) $@; $(SYMLINK) ../../bin/make $@
61 60
62 61 $(ROOTLIB)/svr4.make:
63 62 -$(RM) $@; $(SYMLINK) ../bin/make $@
64 63
65 64 $(ROOTXPG4BIN)/make:
66 65 -$(RM) $@; $(SYMLINK) ../../bin/make $@
67 66
68 67 $(ROOTBIN)/dmake:
69 68 -$(RM) $@; $(SYMLINK) ./make $@
70 69
71 70 $(ROOTRULES) := FILEMODE = 0444
72 71
73 72 $(ROOTRULES): $(ROOTSHLIB)/make
74 73
75 74 $(ROOTSHLIB)/make: FRC
76 75 $(INS.dir)
77 76
78 77 $(ROOTSHLIB)/make/%: %.file
79 78 $(INS.rename)
80 79
81 80 lint:
82 81
83 82 clean:
84 83 $(RM) $(OBJS)
85 84
86 85 FRC:
87 86
88 87 include ../../Makefile.targ
89 88
↓ open down ↓ |
40 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX