Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # build hidapi for windows
- CC := i686-pc-mingw32-gcc
- DEBUG_CFLAGS := -g -O0 -DDEBUG -D_DEBUG
- RELEASE_CFLAGS := -O2
- COMMON_CFLAGS := -DMONODEVELOP -D_WIN32 -D_WINDOWS -DWIN32 -D_USRDLL -DHIDAPI_EXPORTS -Wall
- LDFLAGS:= -lhid -lsetupapi -mdll
- all: bin/Debug/libhidapi.dll bin/Release/libhidapi.dll
- bin/Debug/libhidapi.dll: hid.win.c hidapi.h
- $(CC) $(COMMON_CFLAGS) $(DEBUG_CFLAGS) -o $@ $< $(LDFLAGS)
- bin/Release/libhidapi.dll: hid.win.c hidapi.h
- $(CC) $(COMMON_CFLAGS) $(RELEASE_CFLAGS) -o $@ $< $(LDFLAGS)
Advertisement
Add Comment
Please, Sign In to add comment