blob: f7a32946e700aeb4704c07cecc78ec269196b84c [file] [log] [blame] [edit]
SUFFIXES = .sh
.sh:
rm -f $@ $@-t
cp $< $@-t
chmod +x $@-t
mv $@-t $@
bin_PROGRAMS = dlist_test get_device get_driver get_module
noinst_SCRIPTS = create-test
BUILT_SOURCES = test.h create-test.sh
CLEANFILES = test.h $(noinst_SCRIPTS)
test.h: $(abs_builddir)/create-test
$<
create-test: create-test.sh
create-test.sh: create-test.sh.in
get_device_SOURCES = get_device.c
get_driver_SOURCES = get_driver.c
get_module_SOURCES = get_module.c
testlibsysfs_SOURCES = test.c test_attr.c test_bus.c test_class.c \
test_device.c test_driver.c test_module.c test_utils.c \
testout.c test-defs.h libsysfs.conf
INCLUDES = -I$(top_srcdir)/include
LDADD = ../lib/libsysfs.la
EXTRA_CFLAGS = @EXTRA_CLFAGS@
AM_CFLAGS = -Wall -W -Wstrict-prototypes $(EXTRA_CLFAGS)