• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
34SHELL = @SHELL@
35
36srcdir = @srcdir@
37prefix = @prefix@
38exec_prefix = @exec_prefix@
39
40bindir = @bindir@
41sbindir = @sbindir@
42libexecdir = @libexecdir@
43datarootdir = @datarootdir@
44datadir = @datadir@
45sysconfdir = @sysconfdir@
46sharedstatedir = @sharedstatedir@
47localstatedir = @localstatedir@
48libdir = @libdir@
49infodir = @infodir@
50mandir = @mandir@
51includedir = @includedir@
52
53INSTALL = @INSTALL@
54
55CC = @CC@
56CFLAGS=@CFLAGS@ -D_GNU_SOURCE
57DEFS=@DEFS@
58LIBS=@LIBS@
59LDFLAGS=@LDFLAGS@
60INSTALL = @INSTALL@
61
62# ----------------
63all: ninfod
64clean:
65	-rm -f *.o ninfod
66distclean: 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
71install: 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# ----------------
77ninfod: 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# ----------------
83ni_ifaddrs.o: config.h ni_ifaddrs.h
84ninfod.o: config.h ninfod.h
85ninfod_addrs.c: config.h ninfod.h ni_ifaddrs.h
86ninfod_core.c: config.h ninfod.h
87ninfod_name.c: config.h ninfod.h
88
89