Skip to content

Commit

Permalink
Merge branch 'local'
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Sep 30, 2016
2 parents 235ea7a + 9f93e65 commit 7ac57ed
Show file tree
Hide file tree
Showing 2 changed files with 622 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# mingw32-gcc
CFLAGS = -Wl,--export-all-symbols
LIBS = -ldxguid -ldinput -ldinput8

GCC32 = /usr/bin/i686-w64-mingw32-gcc -D _WXI_MINGW
INCLUDE_DIR32 = -I/usr/i686-w64-mingw32/include
LIB_DIR32 = -L/usr/i686-w64-mingw32/lib/

build/32/xinput1_3.dll: xinput1_3/xinput1_3_main.c
mkdir -p build/32/
${GCC32} -shared ${CFLAGS} ${INCLUDE_DIR32} ${LIB_DIR32} $? ${LIBS} -o $@

GCC64 = /usr/bin/x86_64-w64-mingw32-gcc -D _WXI_MINGW
INCLUDE_DIR64 = -I/usr/x86_64-w64-mingw32/include
LIB_DIR64 = -L/usr/x86_64-w64-mingw32/lib/

build/64/xinput1_3.dll: xinput1_3/xinput1_3_main.c
mkdir -p build/64/
${GCC64} -shared ${CFLAGS} ${INCLUDE_DIR64} ${LIB_DIR64} $? ${LIBS} -o $@

clean:
rm -f *.o *.dll

32bit: build/32/xinput1_3.dll

64bit: build/64/xinput1_3.dll

all: build/32/xinput1_3.dll
Loading

0 comments on commit 7ac57ed

Please sign in to comment.