xref: /titanic_50/usr/src/cmd/compress/Makefile (revision 33f2fefd46350ca5992567761c46a5b70f864340)
1#
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License (the "License").
7# You may not use this file except in compliance with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23
24#ident	"%Z%%M%	%I%	%E% SMI"
25#
26# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
27# Use is subject to license terms.
28#
29
30PROG= compress
31SRCS= compress.c $(SRC)/common/util/getresponse.c
32OBJS= compress.o getresponse.o
33
34include ../Makefile.cmd
35
36.KEEP_STATE:
37
38CFLAGS += $(CCVERBOSE)
39CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util
40LINTFLAGS += -u
41
42LDLIBS += -lcmdutils -lsec
43
44all: $(PROG)
45
46%.o:  $(SRC)/common/util/%.c
47	$(COMPILE.c) $(OUTPUT_OPTION) $<
48	$(POST_PROCESS_O)
49
50$(PROG):        $(OBJS)
51	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
52	$(POST_PROCESS)
53
54install: all $(ROOTPROG)
55	$(RM) $(ROOTBIN)/uncompress $(ROOTBIN)/zcat
56	$(LN) $(ROOTPROG) $(ROOTBIN)/uncompress
57	$(LN) $(ROOTPROG) $(ROOTBIN)/zcat
58
59clean:
60	$(RM) $(OBJS)
61
62lint:	lint_SRCS
63
64include ../Makefile.targ
65