8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / sgs / tsort / sparc / Makefile
blob508983d07808b38caf4cb4ed32f7e5b434dc811c
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # cmd/sgs/tsort/sparc/Makefile
28 PROG= tsort
30 include ../../../Makefile.cmd
32 OBJS= Err.o erraction.o errafter.o errbefore.o errexit.o \
33 errprefix.o errsource.o errstrtok.o errtag.o errtext.o \
34 errtofix.o errusage.o tsort.o zfopen.o zmalloc.o
36 SRCS= $(OBJS:%.o=../common/%.c)
38 DEFLIST= -DELF
39 CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
40 CFLAGS += $(CCVERBOSE)
41 CERRWARN += -_gcc=-Wno-parentheses
42 C99MODE= $(C99_ENABLE)
44 CLEANFILES += $(LINTOUT)
46 %.o: ../common/%.c
47 $(COMPILE.c) $<
49 .KEEP_STATE:
51 all: $(PROG)
53 $(PROG): $(OBJS)
54 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
55 $(POST_PROCESS)
57 install: all $(ROOTPROG) $(ROOTCCSBINLINK)
59 clean:
60 $(RM) $(OBJS) $(CLEANFILES)
62 lint: $(LINTOUT)
64 $(LINTOUT): $(SRCS)
65 perl ../../tools/lint_hdr.pl $(PROG) > $(LINTOUT)
66 $(LINT.c) $(SRCS) 2>&1 | tee -a $(LINTOUT)
68 include ../../../Makefile.targ