xref: /illumos-gate/usr/src/cmd/vt/Makefile (revision 7093fd72e0be9a255aa4b1ed00a701f80699ac7d)
1aecfc01dSrui zang - Sun Microsystems - Beijing China#
2aecfc01dSrui zang - Sun Microsystems - Beijing China# CDDL HEADER START
3aecfc01dSrui zang - Sun Microsystems - Beijing China#
4aecfc01dSrui zang - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the
5aecfc01dSrui zang - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License").
6aecfc01dSrui zang - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License.
7aecfc01dSrui zang - Sun Microsystems - Beijing China#
8aecfc01dSrui zang - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9aecfc01dSrui zang - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
10aecfc01dSrui zang - Sun Microsystems - Beijing China# See the License for the specific language governing permissions
11aecfc01dSrui zang - Sun Microsystems - Beijing China# and limitations under the License.
12aecfc01dSrui zang - Sun Microsystems - Beijing China#
13aecfc01dSrui zang - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each
14aecfc01dSrui zang - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15aecfc01dSrui zang - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the
16aecfc01dSrui zang - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying
17aecfc01dSrui zang - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner]
18aecfc01dSrui zang - Sun Microsystems - Beijing China#
19aecfc01dSrui zang - Sun Microsystems - Beijing China# CDDL HEADER END
20aecfc01dSrui zang - Sun Microsystems - Beijing China#
21aecfc01dSrui zang - Sun Microsystems - Beijing China#
228afbae07SRod Evans# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23aecfc01dSrui zang - Sun Microsystems - Beijing China# Use is subject to license terms.
24aecfc01dSrui zang - Sun Microsystems - Beijing China#
25d50bcaaeSAndrew Stormont# Copyright 2015 RackTop Systems.
26*7093fd72SJason King# Copyright 2020 Joyent, Inc.
27d50bcaaeSAndrew Stormont#
28aecfc01dSrui zang - Sun Microsystems - Beijing China
29aecfc01dSrui zang - Sun Microsystems - Beijing ChinaPROG= vtdaemon vtinfo vtxlock
30aecfc01dSrui zang - Sun Microsystems - Beijing China
31aecfc01dSrui zang - Sun Microsystems - Beijing ChinaVTDAEMON_SRC= vtdaemon.c
32*7093fd72SJason KingVTDAEMON_OBJ= $(VTDAEMON_SRC:%.c=%.o)
33*7093fd72SJason Kingvtdaemon := OBJS = $(VTDAEMON_OBJ)
34aecfc01dSrui zang - Sun Microsystems - Beijing China
35*7093fd72SJason KingVTINFO_SRC= vtinfo.c
36*7093fd72SJason KingVTINFO_OBJ= $(VTINFO_SRC:%.c=%.o)
37*7093fd72SJason Kingvtinfo := OBJS = $(VTINFO_OBJ)
38*7093fd72SJason King
39*7093fd72SJason Kinginclude $(SRC)/cmd/Makefile.cmd
40*7093fd72SJason Kinginclude $(SRC)/cmd/Makefile.ctf
41aecfc01dSrui zang - Sun Microsystems - Beijing China
42aecfc01dSrui zang - Sun Microsystems - Beijing ChinaCFLAGS += $(CCVERBOSE)
43d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT)
44aecfc01dSrui zang - Sun Microsystems - Beijing China
45d50bcaaeSAndrew Stormontvtdaemon := LDLIBS += -lpam -lbsm
46aecfc01dSrui zang - Sun Microsystems - Beijing China
47aecfc01dSrui zang - Sun Microsystems - Beijing China.KEEP_STATE:
48aecfc01dSrui zang - Sun Microsystems - Beijing China
49aecfc01dSrui zang - Sun Microsystems - Beijing Chinaall: $(PROG)
50aecfc01dSrui zang - Sun Microsystems - Beijing China
51*7093fd72SJason Kingvtdaemon: $(VTDAEMON_OBJ)
52*7093fd72SJason King	$(LINK.c) -o $@ $(VTDAEMON_OBJ) $(LDLIBS)
53aecfc01dSrui zang - Sun Microsystems - Beijing China	$(POST_PROCESS)
54aecfc01dSrui zang - Sun Microsystems - Beijing China
55*7093fd72SJason Kingvtinfo: $(VTINFO_OBJ)
56*7093fd72SJason King	$(LINK.c) -o $@ $(VTINFO_OBJ) $(LDLIBS)
57aecfc01dSrui zang - Sun Microsystems - Beijing China	$(POST_PROCESS)
58aecfc01dSrui zang - Sun Microsystems - Beijing China
59aecfc01dSrui zang - Sun Microsystems - Beijing Chinainstall: all $(ROOTLIBPROG)
60aecfc01dSrui zang - Sun Microsystems - Beijing China
61aecfc01dSrui zang - Sun Microsystems - Beijing Chinaclean:
62*7093fd72SJason King	-$(RM) $(VTDAEMON_OBJ) $(VTINFO_OBJ)
63aecfc01dSrui zang - Sun Microsystems - Beijing China
64aecfc01dSrui zang - Sun Microsystems - Beijing Chinainclude ../Makefile.targ
65