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 30 PROG= compress 31 SRCS= compress.c $(SRC)/common/util/getresponse.c 32 OBJS= compress.o getresponse.o 33 34 include ../Makefile.cmd 35 36 .KEEP_STATE: 37 38 CFLAGS += $(CCVERBOSE) 39 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util 40 LINTFLAGS += -u 41 42 LDLIBS += -lcmdutils -lsec 43 44 all: $(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 54 install: all $(ROOTPROG) 55 $(RM) $(ROOTBIN)/uncompress $(ROOTBIN)/zcat 56 $(LN) $(ROOTPROG) $(ROOTBIN)/uncompress 57 $(LN) $(ROOTPROG) $(ROOTBIN)/zcat 58 59 clean: 60 $(RM) $(OBJS) 61 62 lint: lint_SRCS 63 64 include ../Makefile.targ 65