-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (21 loc) · 603 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
OS := $(shell uname)
ARCH := $(shell uname -m)
EXECUTABLE = LeapMouse
INCLUDES:= -I include
SHAREDLIBS:= -lXtst
ifeq ($(OS), Linux)
ifeq ($(ARCH), x86_64)
LEAP_LIBRARY = -Wl,-rpath,../../lib/x64 -L../../lib/x64 -lLeap -L /usr/X11R6/lib -lX11
else
LEAP_LIBRARY = -Wl,-rpath,../../lib/x86 -L../../lib/x86 -lLeap -L /usr/X11R6/lib -lX11
endif
endif
SOURCES:=mousemanager.cpp \
Leapmouse.cpp \
SHAREDLIBS:= -lXtst
LeapMouse:
ifeq ($(OS), Linux)
$(CXX) -o $(EXECUTABLE) $(INCLUDES) $(SOURCES) $(SHAREDLIBS) $(LEAP_LIBRARY)
endif
clean:
rm -rf $(EXECUTABLE) $(EXECUTABLE).dSYM