summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/hidapi/libusb/Makefile.haiku
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/SDL-3.2.8/src/hidapi/libusb/Makefile.haiku')
-rw-r--r--contrib/SDL-3.2.8/src/hidapi/libusb/Makefile.haiku39
1 files changed, 39 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/hidapi/libusb/Makefile.haiku b/contrib/SDL-3.2.8/src/hidapi/libusb/Makefile.haiku
new file mode 100644
index 0000000..b3622ad
--- /dev/null
+++ b/contrib/SDL-3.2.8/src/hidapi/libusb/Makefile.haiku
@@ -0,0 +1,39 @@
1###########################################
2# Simple Makefile for HIDAPI test program
3#
4# Alan Ott
5# Signal 11 Software
6# 2010-06-01
7###########################################
8
9all: hidtest libs
10
11libs: libhidapi.so
12
13CC ?= cc
14CFLAGS ?= -Wall -g -fPIC
15
16COBJS = hid.o ../hidtest/test.o
17OBJS = $(COBJS)
18INCLUDES = -I../hidapi -I. -I/usr/local/include
19LDFLAGS = -L/usr/local/lib
20LIBS = -lusb -liconv -pthread
21
22
23# Console Test Program
24hidtest: $(OBJS)
25 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
26
27# Shared Libs
28libhidapi.so: $(COBJS)
29 $(CC) $(LDFLAGS) -shared -Wl,-soname,$@.0 $^ -o $@ $(LIBS)
30
31# Objects
32$(COBJS): %.o: %.c
33 $(CC) $(CFLAGS) -c $(INCLUDES) $< -o $@
34
35
36clean:
37 rm -f $(OBJS) hidtest libhidapi.so ../hidtest/hidtest.o
38
39.PHONY: clean libs