forked from rgerganov/footswitch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.orig
53 lines (45 loc) · 1.25 KB
/
Makefile.orig
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
41
42
43
44
45
46
47
48
49
50
51
52
53
PREFIX = /usr/local
UDEVPREFIX = /etc/udev
INSTALL = /usr/bin/install -c
INSTALLDATA = /usr/bin/install -c -m 644
CFLAGS = -Wall
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
CFLAGS += -DOSX $(shell pkg-config --cflags hidapi)
LDLIBS = $(shell pkg-config --libs hidapi)
else
ifeq ($(UNAME), Linux)
CFLAGS += $(shell pkg-config --cflags hidapi-libusb)
LDLIBS = $(shell pkg-config --libs hidapi-libusb)
else
LDLIBS = -lhidapi
endif
endif
all: footswitch scythe scythe2
footswitch: footswitch.c common.c debug.c
scythe: scythe.c common.c debug.c
scythe2: scythe2.c common.c debug.c
install: all
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
$(INSTALL) footswitch $(DESTDIR)$(PREFIX)/bin
$(INSTALL) scythe $(DESTDIR)$(PREFIX)/bin
ifeq ($(UNAME), Linux)
$(INSTALL) -d $(DESTDIR)$(UDEVPREFIX)/rules.d
$(INSTALLDATA) 19-footswitch.rules $(DESTDIR)$(UDEVPREFIX)/rules.d
endif
<<<<<<< HEAD
uninstall:
=======
uninstall:
>>>>>>> 87f1a4f ( Changes to be committed:)
rm -f $(DESTDIR)$(PREFIX)/bin/footswitch
rm -f $(DESTDIR)$(PREFIX)/bin/scythe
ifeq ($(UNAME), Linux)
rm -f $(DESTDIR)$(UDEVPREFIX)/rules.d/19-footswitch.rules
endif
clean:
<<<<<<< HEAD
rm -f scythe scythe2 footswitch *.o
=======
rm -f scythe footswitch *.o
>>>>>>> 87f1a4f ( Changes to be committed:)