Last active
March 20, 2020 21:51
-
-
Save sneakers-the-rat/24024f6129c992b618f9bed84da2d94d to your computer and use it in GitHub Desktop.
Configuration for Model M with Soarer's Converter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build all sctools for Mac OS-X | |
OS = MACOSX | |
CC = gcc | |
STRIP = strip | |
SDK = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk | |
CFLAGS = -O2 -Wall -isysroot $(SDK) -D$(OS) -arch x86_64 | |
LIBS = -Xlinker -syslibroot -Xlinker $(SDK) -framework IOKit -framework CoreFoundation | |
include ../Makefile_recurse.inc | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#OS = LINUX | |
#OS = MACOSX | |
#OS = WINDOWS | |
# To set up Ubuntu Linux to cross compile for Windows: | |
# | |
# apt-get install mingw32 mingw32-binutils mingw32-runtime | |
# | |
# Just edit the variable above for WINDOWS, then use "make" to build rawhid.exe | |
ifeq ($(OS), LINUX) | |
TARGET = $(PROG) | |
CC = gcc | |
STRIP = strip | |
CFLAGS = -Wall -O2 -DOS_$(OS) -std=c99 | |
LIBS = -lusb | |
else ifeq ($(OS), MACOSX) | |
TARGET = $(PROG) | |
SDK = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk | |
ARCH = -arch x86_64 | |
CC = gcc | |
STRIP = strip | |
CFLAGS = -Wall -O2 -DOS_$(OS) -std=c99 -isysroot $(SDK) $(ARCH) | |
LIBS = $(ARCH) -Wl,-syslibroot,$(SDK) -framework IOKit -framework CoreFoundation | |
else ifeq ($(OS), WINDOWS) | |
TARGET = $(PROG).exe | |
CC = i586-mingw32msvc-gcc | |
STRIP = i586-mingw32msvc-strip | |
CFLAGS = -Wall -O2 -DOS_$(OS) -std=c99 | |
LIBS = -lhid -lsetupapi | |
endif | |
OBJS += ../common/hid_$(OS).o | |
include ../build/Makefile_rules.inc | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#OS = LINUX | |
#OS = MACOSX | |
#OS = WINDOWS | |
# To set up Ubuntu Linux to cross compile for Windows: | |
# | |
# apt-get install mingw32 mingw32-binutils mingw32-runtime | |
# | |
# Just edit the variable above for WINDOWS, then use "make" to build rawhid.exe | |
ifeq ($(OS), LINUX) | |
TARGET = $(PROG) | |
CC = g++ | |
STRIP = strip | |
CFLAGS = -Wall -O2 -DOS_$(OS) | |
CXXFLAGS = $(CFLAGS) | |
LIBS = | |
else ifeq ($(OS), MACOSX) | |
TARGET = $(PROG) | |
SDK = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk | |
ARCH = -arch x86_64 | |
CC = g++ | |
STRIP = strip | |
CFLAGS = -Wall -O2 -DOS_$(OS) -isysroot $(SDK) $(ARCH) | |
CXXFLAGS = $(CFLAGS) | |
LIBS = $(ARCH) -Wl,-syslibroot,$(SDK) -framework IOKit -framework CoreFoundation | |
else ifeq ($(OS), WINDOWS) | |
TARGET = $(PROG).exe | |
CC = i586-mingw32msvc-g++ | |
CXX = i586-mingw32msvc-g++ | |
STRIP = i586-mingw32msvc-strip | |
CFLAGS = -Wall -O2 -DOS_$(OS) -mwin32 -mconsole | |
CXXFLAGS = $(CFLAGS) | |
#LIBS = -lsetupapi | |
#LIBS = -lsetupapi -lstdc++ -lgcc -lmsvcrt | |
LIBS = | |
endif | |
#OBJS = $(OBJS) | |
include ../build/Makefile_rules.inc | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# length: 82 | |
# signature: S C | |
# version: 1 1 | |
# block length: 76 | |
ifset any | |
ifkeyboard any | |
ifselect any | |
remapblock | |
layer 0 | |
# count: 36 | |
LALT LGUI | |
RALT RALT | |
F20 LCTRL | |
F22 RALT | |
EXTRA_F7 ESC | |
EXTRA_LALT DELETE | |
F1 F14 | |
F2 F15 | |
F3 F10 | |
F4 F12 | |
F7 MEDIA_PREV_TRACK | |
F8 MEDIA_PLAY_PAUSE | |
F9 MEDIA_NEXT_TRACK | |
F10 MEDIA_MUTE | |
EXTRA_F4 MEDIA_VOLUME_DOWN | |
EXTRA_F5 MEDIA_VOLUME_UP | |
LCTRL LCTRL | |
F18 FN1 | |
F23 INSERT | |
BACKSLASH RIGHT_BRACE | |
RIGHT_BRACE BACKSLASH | |
FAKE_18 HOME | |
EXTRA_RALT END | |
INTERNATIONAL_2 PAGE_UP | |
INTERNATIONAL_1 PAGE_DOWN | |
EXTRA_BACKSLASH LEFT | |
EXTRA_EUROPE_2 UP | |
LANG_4 RIGHT | |
LANG_3 DOWN | |
F24 DOWN | |
NUM_LOCK PAD_SLASH | |
SCROLL_LOCK PAD_ASTERIX | |
INTERNATIONAL_4 PAD_MINUS | |
EXTRA_F9 PAD_PLUS | |
PAD_MINUS PAD_PLUS | |
PAD_PLUS PAD_ENTER | |
endblock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# length: 82 | |
# signature: S C | |
# version: 1 1 | |
# block length: 76 | |
ifset any | |
ifkeyboard any | |
ifselect any | |
remapblock | |
layer 0 | |
# count: 36 | |
LALT LALT | |
RALT RALT | |
F20 LCTRL | |
F22 RALT | |
EXTRA_F7 ESC | |
EXTRA_LALT DELETE | |
F1 F14 | |
F2 F15 | |
F3 F10 | |
F4 F12 | |
F7 MEDIA_PREV_TRACK | |
F8 MEDIA_PLAY_PAUSE | |
F9 MEDIA_NEXT_TRACK | |
F10 MEDIA_MUTE | |
EXTRA_F4 MEDIA_VOLUME_DOWN | |
EXTRA_F5 MEDIA_VOLUME_UP | |
LCTRL LCTRL | |
F18 FN1 | |
F23 INSERT | |
BACKSLASH RIGHT_BRACE | |
RIGHT_BRACE BACKSLASH | |
FAKE_18 HOME | |
EXTRA_RALT END | |
INTERNATIONAL_2 PAGE_UP | |
INTERNATIONAL_1 PAGE_DOWN | |
EXTRA_BACKSLASH LEFT | |
EXTRA_EUROPE_2 UP | |
LANG_4 RIGHT | |
LANG_3 DOWN | |
F24 DOWN | |
NUM_LOCK PAD_SLASH | |
SCROLL_LOCK PAD_ASTERIX | |
INTERNATIONAL_4 PAD_MINUS | |
EXTRA_F9 PAD_PLUS | |
PAD_MINUS PAD_PLUS | |
PAD_PLUS PAD_ENTER | |
endblock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment