diff options
author | B. Watson <yalhcru@gmail.com> | 2020-05-17 03:56:35 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2020-05-17 03:56:35 -0400 |
commit | aaa2f1e410f805794202022fde9df29aa04db30f (patch) | |
tree | da5e7ff37babcbd20d27833bfc1f2a7a8ed243e9 /Makefile | |
parent | 24daf3c1bd954e8b32e0ff325052522474534dcb (diff) | |
download | unsaver-aaa2f1e410f805794202022fde9df29aa04db30f.tar.gz |
0.2.0, major surgery
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 9 insertions, 13 deletions
@@ -7,13 +7,13 @@ MAX_STICKS=16 # base name of joystick devices on your OS, gets numbers 0 to MAX_STICKS -# appended to it during autodetection -JSDEVBASE="/dev/input/js" +# appended to it during autodetection. This is the base filename without +# the directory. If your first joystick is /dev/input/js0, say js here. +JSNODE=js -# If you can think of a reason to compile without X11 support, -# set this to 0 (or anything other than 1). Note that you can -# compile with X11 and then disable it at runtime with -x. -HAVE_X11=1 +# directory where joystick devices live. monitored via inotify(7) to +# detect hotplug events. +EVENTDIR=/dev/input # Intended for optimizations, but you could include other flags here. # Override this, not CFLAGS @@ -54,14 +54,10 @@ PROJ=jsmond # the .rst is the authoritative source for the version number. VERSION=$(shell fgrep '.. |version| replace::' $(PROJ).rst | cut -d' ' -f4) -DEFINES=-DVERSION=\"$(VERSION)\" -DMAX_STICKS=$(MAX_STICKS) -DJSDEVBASE=\"$(JSDEVBASE)\" - -ifeq ($(HAVE_X11),1) -CFLAGS+=$(shell pkg-config --cflags x11) -LDFLAGS+=$(shell pkg-config --libs x11) -DEFINES+=-DHAVE_X11 -endif +DEFINES=-DVERSION=\"$(VERSION)\" -DMAX_STICKS=$(MAX_STICKS) -DJSNODE=\"$(JSNODE)\" -DEVENTDIR=\"$(EVENTDIR)\" +CFLAGS+=$(shell pkg-config --cflags x11 xtst) +LDFLAGS+=$(shell pkg-config --libs x11 xtst) CFLAGS=$(OPTFLAGS) $(DEFINES) LDFLAGS+=$(LDEXTRA) |