-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
36 lines (28 loc) · 959 Bytes
/
Makefile.am
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
lib_LTLIBRARIES=libmw_core.la
libmw_core_la_SOURCES=debug.c shm.c msg.c msp.c endian.c
libmw_core_la_CFLAGS=-fPIC
libmw_core_la_LDFLAGS=-fPIC
libmw_core_includedir = $(includedir)/mw
libmw_core_include_HEADERS = debug.h shm.h msg.h msp.h endian.h
bin_PROGRAMS = mw mwtest mwcli
mw_SOURCES = mw.c routines.c uart.c gpio.c
mw_CFLAGS = -Wall
mw_LDFLAGS =
mw_LDADD = -lmw_core -lrt -lpthread
mwbindir=$(bindir)
mwbin_SCRIPTS = utils/mw-wifi-status.sh
mwtest_SOURCES = mwtest.c msp.c endian.c routines.c
mwtest_CFLAGS = -Wall
mwtest_LDFLAGS =
mwtest_LDADD = -lmw_core -lrt -lpthread
mwcli_SOURCES = mwcli.c msp.c endian.c routines.c
mwcli_CFLAGS = -Wall
mwcli_LDFLAGS =
mwcli_LDADD = -lmw_core -lrt -lpthread
mwconfdir=$(sysconfdir)/mw
install-exec-hook:
mkdir -p $(mwconfdir)
cp utils/mw-service.start $(mwconfdir)/
cp utils/mw-wifi-status.start $(mwconfdir)/
chmod 666 $(mwconfdir)/mw-service.start
chmod 666 $(mwconfdir)/mw-wifi-status.start