Makefile.mingw
author sl
Thu, 22 May 2014 09:31:23 +0200
changeset 18 14662967f913
permissions -rw-r--r--
Implementing Futaba GP1212A01A brightness support.
Test application now using Futaba class to send some of our commands.
sl@0
     1
###########################################
sl@0
     2
# Simple Makefile for HIDAPI test program
sl@0
     3
#
sl@0
     4
# Alan Ott
sl@0
     5
# Signal 11 Software
sl@0
     6
# 2010-06-01
sl@0
     7
###########################################
sl@0
     8
sl@0
     9
all: hidapi-testgui
sl@0
    10
sl@0
    11
CC=gcc
sl@0
    12
CXX=g++
sl@0
    13
COBJS=../windows/hid.o
sl@0
    14
CPPOBJS=test.o
sl@0
    15
OBJS=$(COBJS) $(CPPOBJS)
sl@0
    16
CFLAGS=-I../hidapi -I../../hidapi-externals/fox/include -g -c
sl@0
    17
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
sl@0
    18
sl@0
    19
sl@0
    20
hidapi-testgui: $(OBJS)
sl@0
    21
	g++ -g $^ $(LIBS) -o hidapi-testgui
sl@0
    22
sl@0
    23
$(COBJS): %.o: %.c
sl@0
    24
	$(CC) $(CFLAGS) $< -o $@
sl@0
    25
sl@0
    26
$(CPPOBJS): %.o: %.cpp
sl@0
    27
	$(CXX) $(CFLAGS) $< -o $@
sl@0
    28
sl@0
    29
clean:
sl@0
    30
	rm -f *.o hidapi-testgui.exe
sl@0
    31
sl@0
    32
.PHONY: clean