mirror of
https://github.com/RPCS3/hidapi.git
synced 2024-11-27 03:50:29 +00:00
31 lines
557 B
Makefile
31 lines
557 B
Makefile
###########################################
|
|
# Simple Makefile for HIDAPI test program
|
|
#
|
|
# Alan Ott
|
|
# Signal 11 Software
|
|
# 2010-06-01
|
|
###########################################
|
|
|
|
all: hidtest libhidapi.dll
|
|
|
|
CC=gcc
|
|
COBJS=hid.o ../hidtest/test.o
|
|
OBJS=$(COBJS)
|
|
CFLAGS=-I../hidapi -g -c
|
|
LIBS= -lsetupapi
|
|
DLL_LDFLAGS = -mwindows -lsetupapi
|
|
|
|
hidtest: $(OBJS)
|
|
$(CC) -g $^ $(LIBS) -o hidtest
|
|
|
|
libhidapi.dll: $(OBJS)
|
|
$(CC) -g $^ $(DLL_LDFLAGS) -o libhidapi.dll
|
|
|
|
$(COBJS): %.o: %.c
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
clean:
|
|
rm *.o ../hidtest/*.o hidtest.exe
|
|
|
|
.PHONY: clean
|