-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
40 lines (30 loc) · 931 Bytes
/
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
#!/usr/bin/make
HAVE_LIBWIRINGPI = @HAVE_LIBWIRINGPI@
ifeq ($(HAVE_LIBWIRINGPI),yes)
GPIO_IMPLEMENTATION = src/wiringpi_gpio.o
else
GPIO_IMPLEMENTATION = src/sysfs_gpio.o
endif
LIB_OBJFILES = src/ltmy2k19jf03.o $(GPIO_IMPLEMENTATION)
prefix = @prefix@
exec_prefix = @exec_prefix@
sbindir = @sbindir@
CPPFLAGS = @CPPFLAGS@ -Iinclude
LIBS = @LIBS@
PTHREAD_LIB = @PTHREAD_LIB@
INSTALL = @INSTALL@
default: ltmy2kd
ltmy2kd: src/ltmy2kd.o $(LIB_OBJFILES)
$(CC) -o $@ $^ $(LIBS)
test_multiseg: src/test_multiseg.o $(LIB_OBJFILES)
$(CC) -o $@ $^ $(LIBS) $(PTHREAD_LIB)
clean:
rm -rf autom4te.cache
rm -f Makefile config.h config.log config.status
rm -f src/*.o test_multiseg ltmy2kd etc/ltmy2kd.init
install: ltmy2kd
@INSTALL_PROGRAM@ ltmy2kd $(sbindir)
@INSTALL_SCRIPT@ etc/ltmy2kd.init /etc/init.d/ltmy2kd
uninstall:
[ -x /etc/init.d/ltmy2kd ] && /etc/init.d/ltmy2kd stop
rm -f $(sbindir)/ltmy2kd /etc/init.d/ltmy2kd