Home | History | Annotate | Download | only in ninfod
      1 # $USAGI: Makefile.in,v 1.6 2003-01-15 06:41:23 mk Exp $
      2 #
      3 # Copyright (C)2002 USAGI/WIDE Project.
      4 # Copyright (C)2000-2001 Hideaki YOSHIFUJI and USAGI Project.
      5 # All rights reserved.
      6 #
      7 # Redistribution and use in source and binary forms, with or without
      8 # modification, are permitted provided that the following conditions
      9 # are met:
     10 # 1. Redistributions of source code must retain the above copyright
     11 #    notice, this list of conditions and the following disclaimer.
     12 # 2. Redistributions in binary form must reproduce the above copyright
     13 #    notice, this list of conditions and the following disclaimer in the
     14 #    documentation and/or other materials provided with the distribution.
     15 # 3. Neither the name of the project nor the names of its contributors
     16 #    may be used to endorse or promote products derived from this software
     17 #    without specific prior written permission.
     18 #
     19 # THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
     20 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     21 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     22 # ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
     23 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     24 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     25 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     26 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     27 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     28 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     29 # SUCH DAMAGE.
     30 #
     31 
     32 # $Id: Makefile.in,v 1.2 2000/06/10 05:45:14 yoshfuji Exp yoshfuji $
     33 
     34 SHELL = @SHELL@
     35 
     36 srcdir = @srcdir@
     37 prefix = @prefix@
     38 exec_prefix = @exec_prefix@
     39 
     40 bindir = @bindir@
     41 sbindir = @sbindir@
     42 libexecdir = @libexecdir@
     43 datarootdir = @datarootdir@
     44 datadir = @datadir@
     45 sysconfdir = @sysconfdir@
     46 sharedstatedir = @sharedstatedir@
     47 localstatedir = @localstatedir@
     48 libdir = @libdir@
     49 infodir = @infodir@
     50 mandir = @mandir@
     51 includedir = @includedir@
     52 
     53 INSTALL = @INSTALL@
     54 
     55 CC = @CC@
     56 CFLAGS=@CFLAGS@ -D_GNU_SOURCE
     57 DEFS=@DEFS@
     58 LIBS=@LIBS@
     59 LDFLAGS=@LDFLAGS@
     60 INSTALL = @INSTALL@
     61 
     62 # ----------------
     63 all: ninfod
     64 clean:
     65 	-rm -f *.o ninfod
     66 distclean: clean
     67 	-rm -f *~ *.bak #*
     68 	-rm -fr autom4te.cache
     69 	-rm -f Makefile config.h config.cache config.status config.log
     70 	-rm -f ninfod.sh
     71 install: all
     72 	@INSTALL_DIR@ @sbindir@
     73 	@INSTALL@ ninfod -o root @sbindir@
     74 	@INSTALL@ ninfod.sh -o root -m 755 @sysconfdir@/init.d/ninfod
     75 
     76 # ----------------
     77 ninfod: ninfod_addrs.o ni_ifaddrs.o ninfod_name.o ninfod_core.o ninfod.o
     78 	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
     79 %.o: %.c
     80 	$(CC) $(CFLAGS) -c $(DEFS) -o $@ $<
     81 
     82 # ----------------
     83 ni_ifaddrs.o: config.h ni_ifaddrs.h
     84 ninfod.o: config.h ninfod.h
     85 ninfod_addrs.c: config.h ninfod.h ni_ifaddrs.h
     86 ninfod_core.c: config.h ninfod.h
     87 ninfod_name.c: config.h ninfod.h
     88 
     89