1# 2# CDDL HEADER START 3# 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. 7# 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. 12# 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] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. 24# Copyright 2020 Joyent, Inc. 25# 26 27PROG = svccfg 28 29SRCS = \ 30 svccfg_main.c \ 31 svccfg_engine.c \ 32 svccfg_internal.c \ 33 svccfg_libscf.c \ 34 svccfg_tmpl.c \ 35 svccfg_xml.c \ 36 svccfg_help.c 37 38OBJS = \ 39 $(SRCS:%.c=%.o) \ 40 svccfg_grammar.o \ 41 svccfg_lex.o \ 42 manifest_find.o \ 43 manifest_hash.o \ 44 notify_params.o \ 45 46include $(SRC)/cmd/Makefile.cmd 47 48# These are because of bugs in lex(1)/yacc(1) generated code 49CERRWARN += -_gcc=-Wno-unused-label 50CERRWARN += -_gcc=-Wno-unused-variable 51 52CERRWARN += -_gcc=-Wno-switch 53CERRWARN += $(CNOWARN_UNINIT) 54 55# not linted 56SMATCH=off 57 58LFLAGS = -t 59YFLAGS = -d 60 61CLOBBERFILES += svccfg_lex.c svccfg_grammar.c svccfg_grammar.h 62