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
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.
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
-lnsl
-lumem
41 CPPFLAGS
+= -D_FILE_OFFSET_BITS
=64
43 ROOTLINKS
= $(ROOTCCSBIN
)/make
$(ROOTXPG4BIN
)/make
$(ROOTBIN
)/dmake
$(ROOTCCSLIB
)/svr4.make \
46 ROOTRULES
= $(ROOTSHLIB
)/make
/make.rules
$(ROOTSHLIB
)/make
/svr4.make.rules
50 install: all $(ROOTPROG
) $(ROOTLINKS
) $(ROOTRULES
)
53 $(LINK.
cc) $(OBJS
) -o
$@
$(LDLIBS
)
57 -$(RM
) $@
; $(SYMLINK
) ..
/..
/bin
/make
$@
59 $(ROOTCCSLIB
)/svr4.make
:
60 -$(RM
) $@
; $(SYMLINK
) ..
/..
/bin
/make
$@
63 -$(RM
) $@
; $(SYMLINK
) ..
/bin
/make
$@
66 -$(RM
) $@
; $(SYMLINK
) ..
/..
/bin
/make
$@
69 -$(RM
) $@
; $(SYMLINK
) .
/make
$@
71 $(ROOTRULES
) := FILEMODE
= 0444
73 $(ROOTRULES
): $(ROOTSHLIB
)/make
75 $(ROOTSHLIB
)/make
: FRC
78 $(ROOTSHLIB
)/make
/%: %.file
88 include ..
/..
/Makefile.targ