xref: /illumos-gate/usr/src/cmd/make/lib/mksh/Makefile (revision 3665ce8aeee26b1a84fb98951ef011e0779e1ae2)
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 =	libmksh.a
16VERS =		.1
17OBJECTS =	dosys.o \
18		globals.o \
19		i18n.o \
20		macro.o \
21		misc.o \
22		mksh.o \
23		read.o
24
25include $(SRC)/lib/Makefile.lib
26include ../../Makefile.com
27
28POFILE = libmksh.po
29POFILES = $(OBJECTS:%.o=%.po)
30
31LIBS = $(LIBRARY)
32SRCDIR = ../
33MAPFILES=
34CPPFLAGS += -D_FILE_OFFSET_BITS=64
35
36CCERRWARN += -_gcc=-Wno-unused-variable
37CCERRWARN += -_gcc=-Wno-unused-function
38CCERRWARN += -_gcc=-Wno-unused-value
39CCERRWARN += -_gcc=-Wno-uninitialized
40
41all: $(LIBS)
42
43install: all
44
45$(POFILE): $(POFILES)
46	$(CAT) $(POFILES) > $@
47
48_msg: $(MSGDOMAIN) $(POFILE)
49	$(RM) $(MSGDOMAIN)/$(POFILE)
50	$(CP) $(POFILE) $(MSGDOMAIN)
51
52include $(SRC)/lib/Makefile.targ
53