Skip to content

Commit

Permalink
Added 64bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Sep 30, 2016
1 parent 7edcb37 commit 9f93e65
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
# mingw32-gcc
GCC = /usr/bin/i686-w64-mingw32-gcc -D _WXI_MINGW
INCLUDE_DIR = -I/usr/i686-w64-mingw32/include
CFLAGS = -Wl,--export-all-symbols
LIB_DIR = -L/usr/i686-w64-mingw32/lib/
LIBS = -ldxguid -ldinput -ldinput8

xinput1_3.dll: xinput1_3/xinput1_3_main.c
${GCC} -shared ${CFLAGS} ${INCLUDE_DIR} ${LIB_DIR} $? ${LIBS} -o $@
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

all: xinput1_3.dll
32bit: build/32/xinput1_3.dll

64bit: build/64/xinput1_3.dll

all: build/32/xinput1_3.dll

0 comments on commit 9f93e65

Please sign in to comment.