File: Makefile.in

package info (click to toggle)
arpalert 2.0.12-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,508 kB
  • sloc: ansic: 4,452; sh: 517; makefile: 116; perl: 35
file content (128 lines) | stat: -rw-r--r-- 4,115 bytes parent folder | download | duplicates (2)
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
119
120
121
122
123
124
125
126
127
128
#
# Copyright (c) 2005-2010 Thierry FOURNIER
# $Id: Makefile.in 690 2008-03-31 18:36:43Z  $
# 

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
includedir = @includedir@
src_dir = .

CC = @CC@
CFLAGS += @CFLAGS@ \
          -Wall -O2  \
          -DCONFIG_FILE=\"$(config_dir)/arpalert.conf\" \
          -DPID_FILE=\"$(lock_dir)/arpalert.pid\"
LDFLAGS += -Wl,--export-dynamic
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) build_module_example
	$(CC) $(LDFLAGS) -o arpalert $(OBJECT_LIST) $(LIBS)

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

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

logalert.o: logalert.c config.h loadconfig.h log.h
	$(CC) $(CFLAGS) $(CPPFLAGS) -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) $(CPPFLAGS) -c -o signals.o $(src_dir)/signals.c

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

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

func_time.o: func_time.c config.h
	$(CC) $(CFLAGS) $(CPPFLAGS) -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) $(CPPFLAGS) -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) $(CPPFLAGS) -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) $(CPPFLAGS) -c -o capture.o $(src_dir)/capture.c

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

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

log.o: log.c log.h config.h loadconfig.h
	$(CC) $(CFLAGS) $(CPPFLAGS) -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) $(CPPFLAGS) -c -o maclist.o $(src_dir)/maclist.c

sens.o: sens.c sens.h config.h loadconfig.h data.h log.h
	$(CC) $(CFLAGS) $(CPPFLAGS) -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) $(CPPFLAGS) -c -o sens_timeouts.o $(src_dir)/sens_timeouts.c

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

build_module_example:
	@cd module_example; make; cd ..

mrproper: clean
	-@rm -rf arpalert-sources.pdf autom4te.cache 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
	-@cd module_example; make clean; cd ..
	
install:
	/bin/sh -x install.sh

pack:
	git archive --prefix='arpalert-$(TAG)/' --format=tar $(TAG) | gzip > arpalert-$(TAG).tar.gz