Debian Codegraph @

Makefile

raw ◀ ▶
1 Debian patch touch this file
1 # *********************************************************
2 # Change this section as needed
3 # The -g flag is to include debugging information. It gets
4 # stripped back out in the install command anyway.
5 CC ?= gcc
6 CFLAGS += -Werror=implicit-function-declaration
7 CFLAGS += -D_REGEX_RE_COMP=1
8 #CFLAGS += -g
9 MANDIR = $(DESTDIR)/usr/share/man
10 BINDIR = $(DESTDIR)/usr/sbin/
11 STATEDIR = $(DESTDIR)/var/lib/autolog/
12 CONFDIR = $(DESTDIR)/etc/
13 INIDIR = $(DESTDIR)/etc/init.d/
14 # *********************************************************
15
16 autolog: autolog.c
17 $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o autolog autolog.c
18
19 install: autolog
20 install -d $(BINDIR) $(INIDIR) $(CONFDIR) $(STATEDIR) $(LOGDIR) $(MANDIR)
•21 install -m744 autolog $(BINDIR)
22 # install -m744 -o 0 -g 0 autolog.init $(INIDIR)/autolog
•23 install -m644 autolog.conf $(CONFDIR)
24
25 clean:
26 rm -f autolog