From f5c89b3bd5d74849757fd5b4d1a300068522a3ca Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 6 Mar 2026 13:26:57 -0800 Subject: Initial commit --- SDL-3.2.8/src/hidapi/libusb/Makefile.freebsd | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 SDL-3.2.8/src/hidapi/libusb/Makefile.freebsd (limited to 'SDL-3.2.8/src/hidapi/libusb/Makefile.freebsd') diff --git a/SDL-3.2.8/src/hidapi/libusb/Makefile.freebsd b/SDL-3.2.8/src/hidapi/libusb/Makefile.freebsd new file mode 100644 index 0000000..c52b355 --- /dev/null +++ b/SDL-3.2.8/src/hidapi/libusb/Makefile.freebsd @@ -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