forked from linux-can/socketcand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
52 lines (44 loc) · 1.76 KB
/
Makefile.in
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
#
# @configure_input@
#
sourcefiles = $(srcdir)/socketcand.c $(srcdir)/statistics.c $(srcdir)/beacon.c \
$(srcdir)/state_bcm.c $(srcdir)/state_raw.c \
$(srcdir)/state_isotp.c $(srcdir)/state_control.c
executable = socketcand
sourcefiles_cl = $(srcdir)/socketcandcl.c
executable_cl = socketcandcl
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
bindir = @bindir@
mandir = @mandir@
sysconfdir = @sysconfdir@
CFLAGS = @CFLAGS@
LIBS = @LIBS@
init_script = @init_script@
rc_script = @rc_script@
CC = @CC@
LDFLAGS = @LDFLAGS@
DEFS = @DEFS@
CPPFLAGS = @CPPFLAGS@
sysroot = @sysroot@
all: socketcand socketcandcl
socketcand: $(sourcefiles)
$(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) $(LDFLAGS) -I . -I ./include -o $(executable) $(sourcefiles) $(LIBS)
socketcandcl: $(sourcefiles_cl)
$(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) $(LDFLAGS) -I . -I ./include -o $(executable_cl) $(sourcefiles_cl)
clean:
rm -f $(executable) $(executable_cl) *.o
distclean:
rm -rf $(executable) $(executable_cl) *.o *~ Makefile config.h debian_pack configure config.log config.status autom4te.cache socketcand_*.deb
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