Skip to content

Commit

Permalink
Windows still untested, update makefile to at least compile
Browse files Browse the repository at this point in the history
  • Loading branch information
CEnnis91 committed Nov 9, 2021
1 parent 7d09b96 commit 9ede812
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -409,19 +409,19 @@ ifeq ($(HAVE_RAPHNET_INPUT), 1)
CFLAGS += -DHAVE_RAPHNET_INPUT
CXXFLAGS += -DHAVE_RAPHNET_INPUT
INCFLAGS += $(HIDAPI_INCFLAGS)
LDFLAGS += -ludev -ldl

SOURCES_C += $(ROOT_DIR)/custom/mupen64plus-input-raphnetraw/plugin_front.c \
$(ROOT_DIR)/custom/mupen64plus-input-raphnetraw/plugin_back.c \
$(INPUTDIR_RAPHNET)/src/hexdump.c \
$(INPUTDIR_RAPHNET)/src/gcn64lib.c \
$(INPUTDIR_RAPHNET)/src/gcn64.c

ifeq ($(platform), win)
SOURCES_C += $(INPUTDIR_RAPHNET)/src/osal_dynamiclib_win32.c
ifneq (,$(findstring win,$(platform)))
LDFLAGS += -lsetupapi -Lhidapi/windows
SOURCES_C += $(INPUTDIR_RAPHNET)/src/osal_dynamiclib_win32.c \
$(HIDAPI_DIR)/windows/hid.c
else
LDFLAGS += -Lhidapi/linux

LDFLAGS += -ludev -ldl -Lhidapi/linux
SOURCES_C += $(INPUTDIR_RAPHNET)/src/osal_dynamiclib_unix.c \
$(HIDAPI_DIR)/linux/hid.c
endif
Expand Down

0 comments on commit 9ede812

Please sign in to comment.