From 5a079a2d114f96d4847d1ee305d5b7c16eeec50e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 27 Dec 2025 12:03:39 -0800 Subject: Initial commit --- contrib/SDL-3.2.8/src/hidapi/libusb/Makefile.haiku | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 contrib/SDL-3.2.8/src/hidapi/libusb/Makefile.haiku (limited to 'contrib/SDL-3.2.8/src/hidapi/libusb/Makefile.haiku') 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 @@ +########################################### +# Simple Makefile for HIDAPI test program +# +# Alan Ott +# Signal 11 Software +# 2010-06-01 +########################################### + +all: hidtest libs + +libs: libhidapi.so + +CC ?= cc +CFLAGS ?= -Wall -g -fPIC + +COBJS = hid.o ../hidtest/test.o +OBJS = $(COBJS) +INCLUDES = -I../hidapi -I. -I/usr/local/include +LDFLAGS = -L/usr/local/lib +LIBS = -lusb -liconv -pthread + + +# Console Test Program +hidtest: $(OBJS) + $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) + +# Shared Libs +libhidapi.so: $(COBJS) + $(CC) $(LDFLAGS) -shared -Wl,-soname,$@.0 $^ -o $@ $(LIBS) + +# Objects +$(COBJS): %.o: %.c + $(CC) $(CFLAGS) -c $(INCLUDES) $< -o $@ + + +clean: + rm -f $(OBJS) hidtest libhidapi.so ../hidtest/hidtest.o + +.PHONY: clean libs -- cgit v1.2.3