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, Version 1.0 only 6 # (the "License"). You may not use this file except in compliance 7 # with the License. 8 # 9 # You can obtain a copy of the license at COPYING 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 COPYING. 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 # Copyright (c) 2013, Joyent, Inc. All rights reserved. 22 # 23 24 VER = openlldp-0.4alpha 25 26 PATCHES = Patches/* 27 28 include ../Makefile.defs 29 30 CFLAGS += \ 31 -gdwarf-2 \ 32 -fno-inline-functions \ 33 -fno-inline-functions-called-once \ 34 -fno-inline-small-functions 35 36 include ../Makefile.targ 37 38 CTF_PROGRAMS_USR_SBIN = \ 39 lldpd \ 40 lldpneighbors 41 42 CTF_PROGRAMS = $(CTF_PROGRAMS_USR_SBIN:%=/usr/sbin/%) 43 44 all: all_autoconf 45 46 install: all 47 mkdir -p $(DESTDIR)/usr/sbin 48 rm -f $(DESTDIR)/usr/sbin/lldpd 49 rm -f $(DESTDIR)/usr/sbin/lldpneighbors 50 rm -f $(DESTDIR)/lib/svc/manifest/network/lldpd.xml 51 install -s -m 555 -f $(DESTDIR)/usr/sbin $(VER.32)/src/lldpd 52 install -s -m 555 -f $(DESTDIR)/usr/sbin $(VER.32)/src/lldpneighbors 53 install -s -m 444 -f $(DESTDIR)/lib/svc/manifest/network lldpd.xml 54 $(MAKE_CTF.32) $(CTF_PROGRAMS)