diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
| commit | 5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch) | |
| tree | 8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/src/hidapi/libusb/Makefile.haiku | |
Initial commit
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.haiku | 39 |
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 | |||
| 9 | all: hidtest libs | ||
| 10 | |||
| 11 | libs: libhidapi.so | ||
| 12 | |||
| 13 | CC ?= cc | ||
| 14 | CFLAGS ?= -Wall -g -fPIC | ||
| 15 | |||
| 16 | COBJS = hid.o ../hidtest/test.o | ||
| 17 | OBJS = $(COBJS) | ||
| 18 | INCLUDES = -I../hidapi -I. -I/usr/local/include | ||
| 19 | LDFLAGS = -L/usr/local/lib | ||
| 20 | LIBS = -lusb -liconv -pthread | ||
| 21 | |||
| 22 | |||
| 23 | # Console Test Program | ||
| 24 | hidtest: $(OBJS) | ||
| 25 | $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) | ||
| 26 | |||
| 27 | # Shared Libs | ||
| 28 | libhidapi.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 | |||
| 36 | clean: | ||
| 37 | rm -f $(OBJS) hidtest libhidapi.so ../hidtest/hidtest.o | ||
| 38 | |||
| 39 | .PHONY: clean libs | ||
