xref: /illumos-gate/usr/src/lib/libtermcap/Makefile (revision 82079dec87a9b623b65337b7422dc7c27a04f0d9)
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#
13# Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
14# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
15#
16
17include		../Makefile.lib
18
19HDRS =		termcap.h
20HDRDIR=		common
21SUBDIRS=	$(MACH)
22$(BUILD64)SUBDIRS += $(MACH64)
23
24# Install XPG4v2 header variants so that libtermcap can be used to
25# filter over libcurses(3xcurses).
26XHDRS =		termcap.h
27XROOTHDRDIR=	$(ROOT)/usr/xpg4/include
28XROOTHDRS=	$(XHDRS:%=$(XROOTHDRDIR)/%)
29
30all :=		TARGET= all
31clean :=	TARGET= clean
32clobber :=	TARGET= clobber
33install :=	TARGET= install
34
35.KEEP_STATE:
36
37all clean clobber install: $(SUBDIRS)
38
39install_h: $(ROOTHDRS) $(XROOTHDRS)
40
41check: $(CHECKHDRS)
42
43$(SUBDIRS): FRC
44	@cd $@; pwd; $(MAKE) $(TARGET)
45
46$(XROOTHDRDIR)/%: $(HDRDIR)/x%
47	$(INS.rename)
48
49FRC:
50
51include ../Makefile.targ
52