diff options
Diffstat (limited to 'contrib/SDL-3.2.8/src/hidapi/windows/Makefile.mingw')
| -rw-r--r-- | contrib/SDL-3.2.8/src/hidapi/windows/Makefile.mingw | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/hidapi/windows/Makefile.mingw b/contrib/SDL-3.2.8/src/hidapi/windows/Makefile.mingw new file mode 100644 index 0000000..857e4fb --- /dev/null +++ b/contrib/SDL-3.2.8/src/hidapi/windows/Makefile.mingw | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | ########################################### | ||
| 2 | # Simple Makefile for HIDAPI test program | ||
| 3 | # | ||
| 4 | # Alan Ott | ||
| 5 | # Signal 11 Software | ||
| 6 | # 2010-06-01 | ||
| 7 | ########################################### | ||
| 8 | |||
| 9 | all: hidtest libhidapi.dll | ||
| 10 | |||
| 11 | CC=gcc | ||
| 12 | COBJS=hid.o ../hidtest/test.o | ||
| 13 | OBJS=$(COBJS) | ||
| 14 | CFLAGS=-I../hidapi -I. -g -c | ||
| 15 | LIBS= | ||
| 16 | DLL_LDFLAGS = -mwindows | ||
| 17 | |||
| 18 | hidtest: $(OBJS) | ||
| 19 | $(CC) -g $^ $(LIBS) -o hidtest | ||
| 20 | |||
| 21 | libhidapi.dll: $(OBJS) | ||
| 22 | $(CC) -g $^ $(DLL_LDFLAGS) -o libhidapi.dll | ||
| 23 | |||
| 24 | $(COBJS): %.o: %.c | ||
| 25 | $(CC) $(CFLAGS) $< -o $@ | ||
| 26 | |||
| 27 | clean: | ||
| 28 | rm *.o ../hidtest/*.o hidtest.exe | ||
| 29 | |||
| 30 | .PHONY: clean | ||
