mirror of https://github.com/nirenjan/libx52.git
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
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@ $(WARN_CFLAGS)
|
|
libusbx52_la_LDFLAGS = -rpath /nowhere -module $(WARN_LDFLAGS)
|
|
|
|
# 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@ $(WARN_CFLAGS)
|
|
x52test_create_device_list_LDFLAGS = $(WARN_LDFLAGS)
|
|
|
|
x52test_log_actions_SOURCES = util/log_actions.c $(libusbx52_la_SOURCES)
|
|
x52test_log_actions_CFLAGS = -I $(top_srcdir)/libx52 @LIBUSB_CFLAGS@ $(WARN_CFLAGS)
|
|
x52test_log_actions_LDFLAGS = $(WARN_LDFLAGS)
|
|
|
|
EXTRA_DIST = README.md libusbx52.h
|