mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-08-31 01:50:14 +00:00
The Makefile changes broke compiling with device input support. This got missed because no test case for DEP_DEVICEINPUT got added. Fixes: #100
24 lines
655 B
Makefile
24 lines
655 B
Makefile
|
|
ifeq ($(OS),lnx)
|
|
GAMEPAD_SRCS := Gamepad_linux.c Gamepad_private.c
|
|
endif
|
|
|
|
ifeq ($(OS),win)
|
|
GAMEPAD_SRCS := Gamepad_windows_mm.c Gamepad_private.c
|
|
endif
|
|
|
|
ifeq ($(OS),osx)
|
|
GAMEPAD_SRCS := Gamepad_macosx.c Gamepad_private.c
|
|
endif
|
|
|
|
GAMEPAD_OBJS := $(GAMEPAD_SRCS:.c=.o)
|
|
GAMEPAD_OBJS := $(patsubst %,$(PATH_INTERNAL_C)/parts/input/game_controller/src/%,$(GAMEPAD_OBJS))
|
|
|
|
$(PATH_INTERNAL_C)/parts/input/game_controller/src/%.o: $(PATH_INTERNAL_C)/parts/input/game_controller/src/%.c
|
|
$(CC) -Wall $< -c -o $@
|
|
|
|
QB_DEVICE_INPUT_LIB := $(PATH_INTERNAL_C)/parts/input/game_controller/src.a
|
|
|
|
$(QB_DEVICE_INPUT_LIB): $(GAMEPAD_OBJS)
|
|
$(AR) rcs $@ $(GAMEPAD_OBJS)
|
|
|