-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (43 loc) · 1.71 KB
/
Makefile
File metadata and controls
50 lines (43 loc) · 1.71 KB
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
#
# Makefile. Generated from Makefile.in by configure.
#
sourcefiles = $(srcdir)/socketcand.c $(srcdir)/statistics.c $(srcdir)/beacon.c \
$(srcdir)/state_bcm.c $(srcdir)/state_raw.c $(srcdir)/state_control.c
executable = socketcand
sourcefiles_cl = $(srcdir)/socketcandcl.c
executable_cl = socketcandcl
srcdir = .
prefix = /usr/local
exec_prefix = ${prefix}
datarootdir = ${prefix}/share
bindir = ${exec_prefix}/bin
mandir = ${datarootdir}/man
sysconfdir = ${prefix}/etc
CFLAGS = -Wall -Wno-parentheses -DPF_CAN=29 -DAF_CAN=PF_CAN
LIBS = -lpthread -lconfig
init_script = yes
rc_script = no
CC = gcc
LDFLAGS =
DEFS = -DHAVE_CONFIG_H
CPPFLAGS =
sysroot =
all: socketcand socketcandcl
socketcand: $(sourcefiles)
$(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) $(LDFLAGS) -I . -o $(executable) $(sourcefiles) $(LIBS)
socketcandcl: $(sourcefiles_cl)
$(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) $(LDFLAGS) -I . -o $(executable_cl) $(sourcefiles_cl)
clean:
rm -f $(executable) $(executable_cl) *.o
distclean:
rm -f $(executable) $(executable_cl) *.o *~ Makefile config.h
install: socketcand
mkdir -p $(DESTDIR)$(sysroot)$(bindir)
cp $(srcdir)/socketcand $(DESTDIR)$(sysroot)$(bindir)/
cp $(srcdir)/socketcandcl $(DESTDIR)$(sysroot)$(bindir)/
mkdir -p $(DESTDIR)$(sysroot)$(mandir)
cp $(srcdir)/socketcand.1 $(DESTDIR)$(sysroot)$(mandir)/
mkdir -p $(DESTDIR)$(sysroot)/etc/
install -m 0644 $(srcdir)/etc/socketcand.conf $(DESTDIR)$(sysroot)/etc/
if [ $(init_script) = yes ]; then mkdir -p $(DESTDIR)$(sysroot)/etc/init.d; install --mode=755 $(srcdir)/init.d/socketcand $(DESTDIR)$(sysroot)/etc/init.d/socketcand; fi
if [ $(rc_script) = yes ]; then install --mode=755 $(srcdir)/rc.d/socketcand $(DESTDIR)$(sysroot)/etc/rc.d/socketcand; fi