diff options
author | SUZUKI, Shinsuke <suz@kame.net> | 2005-12-01 06:35:48 +0000 |
---|---|---|
committer | SUZUKI, Shinsuke <suz@kame.net> | 2005-12-01 06:35:48 +0000 |
commit | 48c68dfb9b77069425980bd155e331e64dc3c64e (patch) | |
tree | 0a824722c4c612d5390716f01242faa520bb7af1 /Makefile.in |
imported KAME-DHCPv6 snapshot at 20051201KAME_20051201
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..60141c4 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,125 @@ +# Copyright (c) 2004 WIDE Project. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. Neither the name of the project nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +# +# $Id: Makefile.in,v 1.1 2005-12-01 06:33:55 suzsuz Exp $ +# $KAME: Makefile.in,v 1.45 2005/10/16 16:25:38 suz Exp $ +# + +prefix= @prefix@ +srcdir= @srcdir@ +sysconfdir= @sysconfdir@ +localdbdir= @localdbdir@ + +CFLAGS= @CFLAGS@ @DEFS@ -DSYSCONFDIR=\"${sysconfdir}\" \ + -DLOCALDBDIR=\"${localdbdir}\" +LDFLAGS=@LDFLAGS@ +LIBOBJS=@LIBOBJS@ +LIBS= @LIBS@ -ly -ll +CC= @CC@ +TARGET= dhcp6c dhcp6s dhcp6relay dhcp6ctl + +INSTALL=@INSTALL@ +INSTALL_PROGRAM=@INSTALL_PROGRAM@ +INSTALL_DATA=@INSTALL_DATA@ +prefix= @prefix@ +exec_prefix= @exec_prefix@ +bindir= @bindir@ +sbindir=@sbindir@ +mandir= @mandir@ + +CFLAGS+= @DHCPOPT_DNS@ @DH6OPT_DNSNAME@ \ + @DH6OPT_IA_PD@ @DH6OPT_IA_PD_PREFIX@ \ + -DCONF_DH6OPT_PREFIX_DELEGATION=@dhcpopt_pdel@ \ + -DCONF_DH6OPT_PREFIX_INFORMATION=@dhcpopt_pinfo@ \ + -DCONF_DH6OPT_PREFIX_REQUEST=@dhcpopt_preq@ \ + -DCONF_DH6OPT_NTP=@dhcpopt_ntp@ \ + -DCONF_DH6OPT_REFRESHTIME=@dhcpopt_refreshtime@ + +GENSRCS=cfparse.c cftoken.c +CLIENTOBJS= dhcp6c.o common.o config.o prefixconf.o dhcp6c_ia.o timer.o \ + dhcp6c_script.o if.o base64.o auth.o dhcp6_ctl.o addrconf.o \ + $(GENSRCS:%.c=%.o) +SERVOBJS= dhcp6s.o common.o if.o config.o timer.o \ + base64.o auth.o dhcp6_ctl.o $(GENSRCS:%.c=%.o) +RELAYOBJS = dhcp6relay.o common.o timer.o +LITECLIENTOBJS= dhcp6lc.o common.o if.o timer.o dhcp6c_script.o +CTLOBJS= dhcp6_ctlclient.o base64.o auth.o +CLEANFILES+= y.tab.h + +all: $(TARGET) +dhcp6c: $(CLIENTOBJS) $(LIBOBJS) + $(CC) $(LDFLAGS) -o dhcp6c $(CLIENTOBJS) $(LIBOBJS) $(LIBS) +dhcp6s: $(SERVOBJS) $(LIBOBJS) + $(CC) $(LDFLAGS) -o dhcp6s $(SERVOBJS) $(LIBOBJS) $(LIBS) +dhcp6relay: $(RELAYOBJS) $(LIBOBJS) + $(CC) $(LDFLAGS) -o $@ $(RELAYOBJS) $(LIBOBJS) $(LIBS) +dhcp6lc:$(LITECLIENTOBJS) $(LIBOBJS) + $(CC) $(LDFLAGS) -o $@ $(LITECLIENTOBJS) $(LIBOBJS) $(LIBS) +dhcp6ctl: $(CTLOBJS) + $(CC) $(LDFLAGS) -o $@ $(CTLOBJS) $(LIBOBJS) $(LIBS) + +cfparse.c y.tab.h: cfparse.y + yacc -d cfparse.y + mv y.tab.c cfparse.c + +cftoken.c: cftoken.l y.tab.h + lex cftoken.l + mv lex.yy.c $@ + +getaddrinfo.o: $(srcdir)/missing/getaddrinfo.c + $(CC) -c $(srcdir)/missing/$*.c +getnameinfo.o: $(srcdir)/missing/getnameinfo.c + $(CC) -c $(srcdir)/missing/$*.c +strlcat.o: $(srcdir)/missing/strlcat.c + $(CC) -c $(srcdir)/missing/$*.c +strlcpy.o: $(srcdir)/missing/strlcpy.c + $(CC) -c $(srcdir)/missing/$*.c +arc4random.o: $(srcdir)/missing/arc4random.c + $(CC) -c $(srcdir)/missing/$*.c + +$(srcdir)/ianaopts.h: gentab.pl bootp-dhcp-parameters + expand bootp-dhcp-parameters | perl gentab.pl > ianaopts.h + +install:: + $(INSTALL_PROGRAM) -s -o bin -g bin $(TARGET) $(sbindir) + $(INSTALL_DATA) -o bin -g bin dhcp6c.8 $(mandir)/man8 + $(INSTALL_DATA) -o bin -g bin dhcp6s.8 $(mandir)/man8 + $(INSTALL_DATA) -o bin -g bin dhcp6relay.8 $(mandir)/man8 + $(INSTALL_DATA) -o bin -g bin dhcp6ctl.8 $(mandir)/man8 + $(INSTALL_DATA) -o bin -g bin dhcp6c.conf.5 $(mandir)/man5 + $(INSTALL_DATA) -o bin -g bin dhcp6s.conf.5 $(mandir)/man5 + +includes:: + +clean:: + /bin/rm -f *.o $(TARGET) $(CLEANFILES) $(GENSRCS) + +distclean:: clean + /bin/rm -f Makefile config.cache config.log config.status .depend + +depend: + mkdep ${CFLAGS:M-[ID]*} $(srcdir)/*.c |