Atlas - Makefile.haiku
Home / ext / SDL / src / hidapi / libusb Lines: 1 | Size: 784 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]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,[email protected] $^ -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 40[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.