xref: /illumos-gate/usr/src/cmd/make/lib/mksh/Makefile (revision 5328fc53d11d7151861fa272e4fb0248b8f0e145)
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
45lint:
46
47$(POFILE): $(POFILES)
48	$(CAT) $(POFILES) > $@
49
50_msg: $(MSGDOMAIN) $(POFILE)
51	$(RM) $(MSGDOMAIN)/$(POFILE)
52	$(CP) $(POFILE) $(MSGDOMAIN)
53
54include $(SRC)/lib/Makefile.targ
55