Packages

Reads the game controllers attached to the machine and hands their events to any process.

Current section

Files

Jump to
gamepad Makefile.win
Raw

Makefile.win

PRIV_DIR = priv
HELPER = $(PRIV_DIR)\gamepad_helper.exe
HELPER_SRC = c_src\gamepad_helper_win.c

all: $(HELPER)

$(HELPER): $(HELPER_SRC)
	if not exist $(PRIV_DIR) mkdir $(PRIV_DIR)
	cl /nologo /O2 $(HELPER_SRC) xinput.lib /Fe:$(HELPER)
	if exist gamepad_helper_win.obj del /Q gamepad_helper_win.obj

clean:
	if exist $(HELPER) del /Q $(HELPER)