-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmakefile
30 lines (24 loc) · 848 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
DESTDIR=/usr/local
CFLAGS= -g -O2 -Wall
CFLAGS+= `pkg-config --cflags gtk+-3.0` -Wl,--export-dynamic
LIBS= `pkg-config --libs gtk+-3.0`
src = $(wildcard *.c)
obj = $(src:.c=.o)
all: jesd_status jesd_eye_scan
jesd_status: jesd_status.o jesd_common.o
$(CC) -o $@ $^ -lncurses
jesd_eye_scan: jesd_eye_scan.o jesd_common.o
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -lm
install:
install -d $(DESTDIR)/bin
install -d $(DESTDIR)/share/jesd/
install ./jesd_status $(DESTDIR)/bin/
install ./jesd_eye_scan $(DESTDIR)/bin/
install ./jesd_eye_scan_autostart.sh $(DESTDIR)/bin/
install ./jesd.glade $(DESTDIR)/share/jesd/
install ./icons/ADIlogo.png $(DESTDIR)/share/jesd/
mkdir -p ${HOME}/.config/autostart
install jesd_eye_scan.desktop $(HOME)/.config/autostart/jesd_eye_scan.desktop
clean:
rm -f $(obj) jesd_status jesd_eye_scan
rm -rf *.png *.eye