Atlas - Makefile.linux
Home / ext / SDL / src / hidapi / libusb Lines: 1 | Size: 906 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-libusb libs 10 11libs: libhidapi-libusb.so 12 13CC ?= gcc 14CFLAGS ?= -Wall -g -fpic 15 16LDFLAGS ?= -Wall -g 17 18COBJS_LIBUSB = hid.o 19COBJS = $(COBJS_LIBUSB) ../hidtest/test.o 20OBJS = $(COBJS) 21LIBS_USB = `pkg-config libusb-1.0 --libs` -lrt -lpthread 22LIBS = $(LIBS_USB) 23INCLUDES ?= -I../hidapi -I. `pkg-config libusb-1.0 --cflags` 24 25 26# Console Test Program 27hidtest-libusb: $(COBJS) 28 $(CC) $(LDFLAGS) $^ $(LIBS_USB) -o $@ 29 30# Shared Libs 31libhidapi-libusb.so: $(COBJS_LIBUSB) 32 $(CC) $(LDFLAGS) $(LIBS_USB) -shared -fpic -Wl,-soname,[email protected] $^ -o $@ 33 34# Objects 35$(COBJS): %.o: %.c 36 $(CC) $(CFLAGS) -c $(INCLUDES) $< -o $@ 37 38 39clean: 40 rm -f $(OBJS) hidtest-libusb libhidapi-libusb.so ../hidtest/hidtest.o 41 42.PHONY: clean libs 43[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.