xref: /illumos-gate/usr/src/cmd/make/lib/vroot/Makefile (revision 43449cdcd0600512dd862537f2cf014140dd0844)
1#
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.
6#
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.
10#
11
12# Copyright 2015, Richard Lowe.
13# Copyright 2019 RackTop Systems.
14
15LIBRARY =	libvroot.a
16VERS =		.1
17OBJECTS =	access.o	\
18		args.o		\
19		chdir.o		\
20		chmod.o		\
21		chown.o		\
22		chroot.o	\
23		creat.o		\
24		execve.o	\
25		lock.o		\
26		lstat.o		\
27		mkdir.o		\
28		mount.o		\
29		open.o		\
30		readlink.o	\
31		report.o	\
32		rmdir.o		\
33		stat.o		\
34		truncate.o	\
35		unlink.o	\
36		utimes.o	\
37		vroot.o		\
38		setenv.o
39
40include $(SRC)/lib/Makefile.lib
41include ../../Makefile.com
42
43POFILE = libvroot.po
44POFILES = $(OBJECTS:%.o=%.po)
45
46LIBS = $(LIBRARY)
47SRCDIR = ../
48MAPFILES=
49CPPFLAGS += -D_FILE_OFFSET_BITS=64
50
51CCERRWARN += -_gcc=-Wno-unused-variable
52CCERRWARN += -_gcc=-Wno-parentheses
53
54all: $(LIBS)
55
56install: all
57
58$(POFILE): $(POFILES)
59	$(CAT) $(POFILES) > $@
60
61_msg: $(MSGDOMAIN) $(POFILE)
62	$(RM) $(MSGDOMAIN)/$(POFILE)
63	$(CP) $(POFILE) $(MSGDOMAIN)
64
65include $(SRC)/lib/Makefile.targ
66