forked from scottnewell/ka9q-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (19 loc) · 767 Bytes
/
Makefile
File metadata and controls
29 lines (19 loc) · 767 Bytes
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
KA9Q_RADIO_DIR=../ka9q-radio
PREFIX=/usr/local
# for production
DOPTS=-DNDEBUG=1 -O3
# for debugging
#DOPTS=-g
COPTS=-march=native -std=gnu11 -pthread -Wall -funsafe-math-optimizations -D_GNU_SOURCE=1
INCLUDES=-I$(KA9Q_RADIO_DIR)
RESOURCES_BASE_DIR=$(PREFIX)/share/ka9q-web
CFLAGS=$(DOPTS) $(COPTS)
CPPFLAGS=$(INCLUDES) -DRESOURCES_BASE_DIR=$(RESOURCES_BASE_DIR)
KA9Q_RADIO_OBJS=$(KA9Q_RADIO_DIR)/multicast.o $(KA9Q_RADIO_DIR)/status.o $(KA9Q_RADIO_DIR)/misc.o $(KA9Q_RADIO_DIR)/decode_status.o $(KA9Q_RADIO_DIR)/rtp.o
ka9q-web: ka9q-web.o $(KA9Q_RADIO_OBJS)
$(CC) -o $@ $^ -lonion -lbsd -lm
install: ka9q-web
install -m 755 $^ $(PREFIX)/sbin
install -m 644 -D html/* -t $(RESOURCES_BASE_DIR)/html/
install-config:
install -b -m 644 config/* /etc/radio