forked from hallard/single_chan_pkt_fwd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 851 Bytes
/
Makefile
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
# single_chan_pkt_fwd
# Single Channel LoRaWAN Gateway
CC = g++
CFLAGS = -std=c++11 -c -Wall -I include/
LIBS = -lwiringPi
all: single_chan_pkt_fwd
single_chan_pkt_fwd: base64.o single_chan_pkt_fwd.o
$(CC) single_chan_pkt_fwd.o base64.o $(LIBS) -o single_chan_pkt_fwd
single_chan_pkt_fwd.o: single_chan_pkt_fwd.cpp
$(CC) $(CFLAGS) single_chan_pkt_fwd.cpp
base64.o: base64.c
$(CC) $(CFLAGS) base64.c
clean:
rm *.o single_chan_pkt_fwd
install:
sudo cp -f ./single_chan_pkt_fwd.service /lib/systemd/system/
sudo systemctl enable single_chan_pkt_fwd.service
sudo systemctl daemon-reload
sudo systemctl start single_chan_pkt_fwd
sudo systemctl status single_chan_pkt_fwd -l
uninstall:
sudo systemctl stop single_chan_pkt_fwd
sudo systemctl disable single_chan_pkt_fwd.service
sudo rm -f /lib/systemd/system/single_chan_pkt_fwd.service