Makefile.mingw
changeset 0 b112defa99c0
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile.mingw	Mon May 19 21:10:35 2014 +0200
     1.3 @@ -0,0 +1,32 @@
     1.4 +###########################################
     1.5 +# Simple Makefile for HIDAPI test program
     1.6 +#
     1.7 +# Alan Ott
     1.8 +# Signal 11 Software
     1.9 +# 2010-06-01
    1.10 +###########################################
    1.11 +
    1.12 +all: hidapi-testgui
    1.13 +
    1.14 +CC=gcc
    1.15 +CXX=g++
    1.16 +COBJS=../windows/hid.o
    1.17 +CPPOBJS=test.o
    1.18 +OBJS=$(COBJS) $(CPPOBJS)
    1.19 +CFLAGS=-I../hidapi -I../../hidapi-externals/fox/include -g -c
    1.20 +LIBS= -mwindows -lsetupapi -L../../hidapi-externals/fox/lib -Wl,-Bstatic -lFOX-1.6 -Wl,-Bdynamic -lgdi32 -Wl,--enable-auto-import -static-libgcc -static-libstdc++ -lkernel32
    1.21 +
    1.22 +
    1.23 +hidapi-testgui: $(OBJS)
    1.24 +	g++ -g $^ $(LIBS) -o hidapi-testgui
    1.25 +
    1.26 +$(COBJS): %.o: %.c
    1.27 +	$(CC) $(CFLAGS) $< -o $@
    1.28 +
    1.29 +$(CPPOBJS): %.o: %.cpp
    1.30 +	$(CXX) $(CFLAGS) $< -o $@
    1.31 +
    1.32 +clean:
    1.33 +	rm -f *.o hidapi-testgui.exe
    1.34 +
    1.35 +.PHONY: clean