File: Makefile

package info (click to toggle)
ipv6calc 0.46-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,364 kB
  • ctags: 853
  • sloc: ansic: 33,344; perl: 977; sh: 405; makefile: 249
file content (97 lines) | stat: -rw-r--r-- 2,056 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Generated automatically from Makefile.in by configure.
# Project    : ipv6calc
# File       : Makefile[.in]
# Version    : $Id: Makefile.in,v 1.26 2003/06/15 12:57:38 peter Exp $
# Copyright  : 2001-2003 by Peter Bieringer <pb (at) bieringer.de>
#
# Information:
#  Makefile for ipv6calc project
#

# Compiler and Linker Options
COPTS = -O2 -Wall -g

CFLAGS	= $(COPTS) -Igetopt/

CC	= gcc

GETOBJS	= getopt/getopt.o getopt/getopt1.o

all:		ipv6calc ipv6logconv ipv6logstats

.c.o:
		$(CC) $(CFLAGS) -c $<


ipv6logconv:	getopt-make lib-make ipv6logconv-make

ipv6logstats:	getopt-make lib-make ipv6logstats-make

ipv6calc:	getopt-make lib-make ipv6calc-make ipv6calcweb-make db-ieee-oui-make db-ipv4-assignment-make

distclean:
		make clean
		cd ipv6calc/ && make distclean
		cd databases/ieee-oui/ && make distclean
		cd databases/ipv4-assignment/ && make distclean
		rm -f config.cache config.status config.log

autoclean:
		make distclean
		rm -f Makefile
		rm -f version.h
		rm -f contrib/ipv6calc.spec
		rm config.h

clean:
		cd getopt/ && make clean
		cd ipv6logconv/ && make clean
		cd ipv6calc/ && make clean
		cd lib/ && make clean

install:
		make test
		cd ipv6logconv/ && make test
		cd ipv6calc/ && make test
		make installonly

installonly:
		mkdir -p $(root)/bin/
		install -m 755 ipv6calc/ipv6calc $(root)/bin/
		mkdir -p $(root)/usr/bin/
		install -m 755 ipv6logconv/ipv6logconv $(root)/usr/bin/
		install -m 755 ipv6logstats/ipv6logstats $(root)/usr/bin/

getopt-make:
		cd getopt/ && make

lib-make:
		cd lib/ && make

ipv6logconv-make: lib-make
		cd ipv6logconv/ && make

ipv6logstats-make: lib-make
		cd ipv6logstats/ && make

ipv6calc-make:	lib-make
		cd ipv6calc/ && make

ipv6calcweb-make:
		cd ipv6calcweb/ && make

db-ieee-oui-make:
		cd databases/ieee-oui/ && make

db-ipv4-assignment-make:
		cd databases/ipv4-assignment/ && make

update:
		cd databases/ieee-oui/ && make update
		cd databases/ipv4-assignment/ && make update
		cd ipv6calcweb/ && make update


test:
		cd ipv6logconv/ && make test
		cd ipv6calc/ && make test