Makefile revision c1de7575521deda5ee777b8054a9c5b12f15b1ee
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome#
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# This file and its contents are supplied under the terms of the
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# You may only use this file in accordance with the terms of version
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# 1.0 of the CDDL.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome#
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# A full copy of the text of the CDDL should have accompanied this
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# source. A copy of the CDDL is also available via the Internet at
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# http://www.illumos.org/license/CDDL.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome#
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome#
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# Copyright 2016 Toomas Soome <tsoome@me.com>
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome#
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# cmd/cmd-inet/usr.bin/dns-sd/Makefile
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas SoomePROG= dns-sd
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soomeinclude ../../../Makefile.cmd
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soomeinclude ../../Makefile.cmd-inet
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas SoomeOBJS= ClientCommon.o dns-sd.o
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas SoomeSRCS= ClientCommon.c dns-sd.c
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas SoomeCFLAGS += $(C99_ENABLE)
c1de7575521deda5ee777b8054a9c5b12f15b1eeRichard LoweCPPFLAGS += -DMDNS_VERSIONSTR_NODTS
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas SoomeLDLIBS += -lsocket -ldns_sd
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome.KEEP_STATE:
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soomeall: $(PROG)
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas SoomeROOTPROG= $(PROG:%=$(ROOTBIN)/%)
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome$(PROG): $(OBJS)
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome $(POST_PROCESS)
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soomeinstall: all $(ROOTPROG)
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soomeclean:
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome $(RM) $(OBJS)
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soomelint: lint_SRCS
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soomeinclude ../../../Makefile.targ
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome