Atlas - Makefile-manual
Home / ext / SDL / src / hidapi / linux Lines: 1 | Size: 847 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-hidraw libs 10 11libs: libhidapi-hidraw.so 12 13CC ?= gcc 14CFLAGS ?= -Wall -g -fpic 15 16LDFLAGS ?= -Wall -g 17 18 19COBJS = hid.o ../hidtest/test.o 20OBJS = $(COBJS) 21LIBS_UDEV = `pkg-config libudev --libs` -lrt 22LIBS = $(LIBS_UDEV) 23INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags` 24 25 26# Console Test Program 27hidtest-hidraw: $(COBJS) 28 $(CC) $(LDFLAGS) $^ $(LIBS_UDEV) -o $@ 29 30# Shared Libs 31libhidapi-hidraw.so: $(COBJS) 32 $(CC) $(LDFLAGS) $(LIBS_UDEV) -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-hidraw libhidapi-hidraw.so $(COBJS) 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.