tux_mind

Makefile.win

Aug 4th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.52 KB | None | 0 0
  1. # build hidapi for windows
  2.  
  3. CC := i686-pc-mingw32-gcc
  4. DEBUG_CFLAGS := -g -O0 -DDEBUG -D_DEBUG
  5. RELEASE_CFLAGS := -O2
  6. COMMON_CFLAGS := -DMONODEVELOP -D_WIN32 -D_WINDOWS -DWIN32 -D_USRDLL -DHIDAPI_EXPORTS -Wall
  7. LDFLAGS:= -lhid -lsetupapi -mdll
  8.  
  9. all: bin/Debug/libhidapi.dll bin/Release/libhidapi.dll
  10.  
  11.  
  12. bin/Debug/libhidapi.dll: hid.win.c hidapi.h
  13.     $(CC) $(COMMON_CFLAGS) $(DEBUG_CFLAGS) -o $@ $< $(LDFLAGS)
  14.    
  15. bin/Release/libhidapi.dll: hid.win.c hidapi.h
  16.     $(CC) $(COMMON_CFLAGS) $(RELEASE_CFLAGS) -o $@ $< $(LDFLAGS)
Advertisement
Add Comment
Please, Sign In to add comment