Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/tools/make/bin/Makefile
+++ new/usr/src/tools/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
15 15 CMDDIR= $(SRC)/cmd/make/bin
16 16 OBJS= ar.o \
17 17 depvar.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 25 misc.o \
26 26 nse_printdep.o \
27 27 parallel.o \
28 28 pmake.o \
29 29 read.o \
30 30 read2.o \
31 31 rep.o \
32 32 state.o
33 33 SRCS=$(OBJS:%.o:$(CMDDIR)/%.cc)
34 34
35 35 include ../../Makefile.tools
↓ open down ↓ |
35 lines elided |
↑ open up ↑ |
36 36 include ../Makefile.com
37 37
38 38 LDLIBS += ../lib/mksh/libmksh.a ../lib/vroot/libvroot.a
39 39 LDLIBS += ../lib/bsd/libbsd.a -lc -lnsl -lumem
40 40
41 41 CPPFLAGS += -D_FILE_OFFSET_BITS=64
42 42
43 43 ROOTLINKS = $(ROOTONBLDBINMACH)/dmake
44 44 ROOTRULES = $(ROOTONBLDSHARE)/make.rules
45 45
46 +NATIVE_LIBS += libnsl.so libumem.so
47 +
46 48 all: $(PROG)
47 49
48 50 install: all $(ROOTONBLDMACHPROG) $(ROOTLINKS) $(ROOTRULES)
49 51
50 52 $(PROG): $(OBJS)
51 53 $(LINK.cc) $(OBJS) -o $@ $(LDLIBS)
52 54 $(POST_PROCESS)
53 55
54 56 %.o: $(CMDDIR)/%.cc
55 57 $(COMPILE.cc) -o $@ $<
56 58
57 59 $(ROOTONBLDBINMACH)/dmake:
58 60 -$(RM) $@; $(SYMLINK) ./make $@
59 61
60 62 $(ROOTRULES) := FILEMODE = 0444
61 63
62 64 $(ROOTONBLDSHARE)/%: $(CMDDIR)/%.file
63 65 $(INS.rename)
64 66
65 67
66 68 lint:
67 69
68 70 clean:
69 71 $(RM) $(OBJS)
70 72
71 73 include $(SRC)/tools/Makefile.targ
72 74
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX