mirror of https://github.com/nirenjan/libx52.git
31 lines
954 B
Makefile
31 lines
954 B
Makefile
# Automake for libusbx52 and associated utilities
|
|
#
|
|
# Copyright (C) 2012-2018 Nirenjan Krishnan (nirenjan@nirenjan.org)
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
# Use the pthread compiler variables
|
|
LIBS += $(PTHREAD_LIBS)
|
|
AM_CFLAGS = $(PTHREAD_CFLAGS)
|
|
CC = $(PTHREAD_CC)
|
|
|
|
# libusb stub library for use by test programs
|
|
check_LTLIBRARIES = libusbx52.la
|
|
|
|
libusbx52_la_SOURCES = usb_x52_stub.c fopen_env.c
|
|
libusbx52_la_CFLAGS = @LIBUSB_CFLAGS@
|
|
libusbx52_la_LDFLAGS = -rpath /nowhere -module
|
|
|
|
# Utility programs for use by tests
|
|
check_PROGRAMS = x52test_create_device_list x52test_log_actions
|
|
|
|
x52test_create_device_list_SOURCES = util/create_device_list.c $(libusbx52_la_SOURCES)
|
|
x52test_create_device_list_CFLAGS = @LIBUSB_CFLAGS@
|
|
|
|
x52test_log_actions_SOURCES = util/log_actions.c $(libusbx52_la_SOURCES)
|
|
x52test_log_actions_CFLAGS = @X52_INCLUDE@ @LIBUSB_CFLAGS@
|
|
|
|
EXTRA_DIST = README.md libusbx52.h
|