File: Makefile.in

package info (click to toggle)
arpalert 2.0.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,332 kB
  • ctags: 415
  • sloc: ansic: 4,185; sh: 447; makefile: 153; perl: 28
file content (118 lines) | stat: -rw-r--r-- 3,625 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#
# Copyright (c) 2005-2010 Thierry FOURNIER
# $Id: Makefile.in 447 2006-11-24 09:33:43Z thierry $
# 

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
config_dir = @sysconfdir@/arpalert
leases_dir = @localstatedir@/lib/arpalert
lock_dir = @localstatedir@/run
log_dir = @localstatedir@/log
src_dir = .

CC = @CC@
CFLAGS = -Wall -O2  \
         -DCONFIG_FILE=\"$(config_dir)/arpalert.conf\" \
         -DPID_FILE=\"$(lock_dir)/arpalert.pid\"
LIBS = @LIBS@
OBJECT_LIST = \
	$(src_dir)/arpalert.o \
	$(src_dir)/loadconfig.o \
	$(src_dir)/loadmodule.o \
	$(src_dir)/log.o \
	$(src_dir)/data.o \
	$(src_dir)/maclist.o \
	$(src_dir)/serveur.o \
	$(src_dir)/alerte.o \
	$(src_dir)/sens.o \
	$(src_dir)/sens_timeouts.o \
	$(src_dir)/func_time.o \
	$(src_dir)/func_str.o \
	$(src_dir)/macname.o \
	$(src_dir)/logalert.o \
	$(src_dir)/signals.o \
	$(src_dir)/alertes.o \
	$(src_dir)/capture.o

arpalert: $(OBJECT_LIST)
	$(CC) $(CFLAGS) -g -O2 -o arpalert $(OBJECT_LIST) $(LIBS)

loadmodule.o: loadmodule.c config.h log.h loadmodule.h loadconfig.h
	$(CC) $(CFLAGS) -c -o loadmodule.o $(src_dir)/loadmodule.c

alertes.o: alertes.c
	$(CC) $(CFLAGS) -c -o alertes.o $(src_dir)/alertes.c

logalert.o: logalert.c config.h loadconfig.h log.h
	$(CC) $(CFLAGS) -c -o logalert.o $(src_dir)/logalert.c

signals.o: signals.c config.h log.h data.h maclist.h alerte.h \
           sens.h loadmodule.h macname.h
	$(CC) $(CFLAGS) -c -o signals.o $(src_dir)/signals.c

macname.o: macname.c config.h loadconfig.h log.h func_str.h
	$(CC) $(CFLAGS) -c -o macname.o $(src_dir)/macname.c

func_str.o: func_str.c config.h
	$(CC) $(CFLAGS) -c -o func_str.o $(src_dir)/func_str.c

func_time.o: func_time.c config.h
	$(CC) $(CFLAGS) -c -o func_time.o $(src_dir)/func_time.c

alerte.o: alerte.c config.h alerte.h log.h loadconfig.h serveur.h
	$(CC) $(CFLAGS) -c -o alerte.o $(src_dir)/alerte.c

arpalert.o: arpalert.c config.h loadconfig.h log.h data.h maclist.h \
            capture.h serveur.h alerte.h sens.h sens_timeouts.h
	$(CC) $(CFLAGS) -c -o arpalert.o $(src_dir)/arpalert.c

capture.o: capture.c config.h capture.h sens.h log.h loadconfig.h data.h \
           alerte.h sens_timeouts.h
	$(CC) $(CFLAGS) -c -o capture.o $(src_dir)/capture.c

data.o: data.c config.h data.h log.h loadconfig.h
	$(CC) $(CFLAGS) -c -o data.o $(src_dir)/data.c

loadconfig.o: loadconfig.c loadconfig.h config.h log.h
	$(CC) $(CFLAGS) -c -o loadconfig.o $(src_dir)/loadconfig.c

log.o: log.c log.h config.h loadconfig.h
	$(CC) $(CFLAGS) -c -o log.o $(src_dir)/log.c $(DEFS)

maclist.o: maclist.c maclist.h config.h data.h loadconfig.h log.h
	$(CC) $(CFLAGS) -c -o maclist.o $(src_dir)/maclist.c

sens.o: sens.c sens.h config.h loadconfig.h data.h log.h
	$(CC) $(CFLAGS) -c -o sens.o $(src_dir)/sens.c

sens_timeouts.o: sens_timeouts.c sens_timeouts.h config.h data.h log.h \
                 loadconfig.h
	$(CC) $(CFLAGS) -c -o sens_timeouts.o $(src_dir)/sens_timeouts.c

serveur.o: serveur.c serveur.h config.h log.h loadconfig.h
	$(CC) $(CFLAGS) -c -o serveur.o $(src_dir)/serveur.c

mrproper: clean
	rm -rf arpalert-sources.pdf autom4te.cache configure Makefile \
	       scripts/start/arpalert-debian scripts/start/arpalert-fc4 \
	       scripts/start/arpalert-suse config.h install.sh \
	       configure.scan autoscan.log

clean:
	rm -f *~ *.o config.log config.status arpalert
	
install:
	/bin/sh -x install.sh