dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / make / bin / Makefile
blobaf030f8b0995bfd06f2260f2d99296cc21080fd1
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
12 # Copyright 2015, Richard Lowe.
14 PROG= dmake
15 POFILE= make.po
16 OBJS= ar.o \
17 depvar.o \
18 doname.o \
19 dosys.o \
20 files.o \
21 globals.o \
22 implicit.o \
23 macro.o \
24 main.o \
25 misc.o \
26 nse_printdep.o \
27 parallel.o \
28 pmake.o \
29 read.o \
30 read2.o \
31 rep.o \
32 state.o
33 POFILES= $(OBJS:%.o=%.po)
35 include ../../Makefile.cmd
36 include ../Makefile.com
38 LDLIBS += ../lib/mksh/libmksh.a ../lib/vroot/libvroot.a
39 LDLIBS += ../lib/bsd/libbsd.a -lc -lumem
41 CPPFLAGS += -D_FILE_OFFSET_BITS=64
43 ROOTRULES = $(ROOTSHLIB)/make/make.rules $(ROOTSHLIB)/make/svr4.make.rules
45 all: $(PROG)
47 install: all $(ROOTPROG) $(ROOTLIB)/svr4.make $(ROOTRULES)
49 $(PROG): $(OBJS)
50 $(LINK.cc) $(OBJS) -o $@ $(LDLIBS)
51 $(POST_PROCESS)
53 $(ROOTLIB)/svr4.make:
54 -$(RM) $@; $(SYMLINK) ../bin/make $@
56 $(ROOTRULES) := FILEMODE = 0444
58 $(ROOTRULES): $(ROOTSHLIB)/make
60 $(ROOTSHLIB)/make: FRC
61 $(INS.dir)
63 $(ROOTSHLIB)/make/%: %.file
64 $(INS.rename)
66 clean:
67 $(RM) $(OBJS)
69 FRC:
71 include ../../Makefile.targ