Blame Makefile.am

Packit d36e9b
# My First Libtool Project
Packit d36e9b
Packit d36e9b
lib_LTLIBRARIES = libieee1284.la
Packit d36e9b
libieee1284_la_SOURCES = src/detect.c src/detect.h src/ports.c src/deviceid.c \
Packit d36e9b
	src/state.c src/access.h src/delay.h src/delay.c src/default.h \
Packit d36e9b
	src/default.c src/access_io.c src/access_ppdev.c src/access_lpt.c \
Packit d36e9b
	src/interface.c src/parport.h src/ppdev.h src/debug.h src/debug.c \
Packit d36e9b
	src/par_nt.h src/io.h src/conf.h src/conf.c libieee1284.sym
Packit d36e9b
# When rolling a release, remember to adjust the version info.
Packit d36e9b
# It's current:release:age.
Packit d36e9b
libieee1284_la_LDFLAGS = -version-info 5:2:2 \
Packit d36e9b
	-export-symbols $(top_srcdir)/libieee1284.sym
Packit d36e9b
include_HEADERS = include/ieee1284.h
Packit d36e9b
INCLUDES = -I$(top_srcdir)/include
Packit d36e9b
Packit d36e9b
iop_SOURCES=solaris_io/iop.c
Packit d36e9b
ioprtest_SOURCES=solaris_io/ioprtest.c
Packit d36e9b
Packit d36e9b
if SOLARIS_IO
Packit d36e9b
iop_CFLAGS=-D_KERNEL # -DDEBUG
Packit d36e9b
drvexecdir=/platform/i86pc/kernel/drv
Packit d36e9b
drvdatadir=/platform/i86pc/kernel/drv
Packit d36e9b
nobase_drvdata_DATA=solaris_io/iop.conf
Packit d36e9b
nobase_drvexec_PROGRAMS=iop
Packit d36e9b
noinst_PROGRAMS=ioprtest
Packit d36e9b
iop_LINK=$(LD) -r -o $@
Packit d36e9b
endif
Packit d36e9b
Packit d36e9b
bin_PROGRAMS = libieee1284_test
Packit d36e9b
libieee1284_test_SOURCES = tests/test.c
Packit d36e9b
libieee1284_test_LDADD = libieee1284.la
Packit d36e9b
Packit d36e9b
# Python bindings
Packit d36e9b
src_ieee1284module_la_SOURCES = src/ieee1284module.c
Packit d36e9b
if PYTHON
Packit d36e9b
pyexec_LTLIBRARIES = src/ieee1284module.la
Packit d36e9b
src_ieee1284module_la_LDFLAGS = -module -avoid-version
Packit d36e9b
src_ieee1284module_la_LIBADD = libieee1284.la
Packit d36e9b
src_ieee1284module_la_CFLAGS = -I/usr/include/python$(PYTHON_VERSION) -fpic
Packit d36e9b
endif
Packit d36e9b
Packit d36e9b
man3_MANS = doc/libieee1284.3 \
Packit d36e9b
	doc/parport.3 \
Packit d36e9b
	doc/parport_list.3 \
Packit d36e9b
	doc/ieee1284_find_ports.3 \
Packit d36e9b
	doc/ieee1284_free_ports.3 \
Packit d36e9b
	doc/ieee1284_get_deviceid.3 \
Packit d36e9b
	doc/ieee1284_open.3 \
Packit d36e9b
	doc/ieee1284_close.3 \
Packit d36e9b
	doc/ieee1284_ref.3 \
Packit d36e9b
	doc/ieee1284_unref.3 \
Packit d36e9b
	doc/ieee1284_claim.3 \
Packit d36e9b
	doc/ieee1284_release.3 \
Packit d36e9b
	doc/ieee1284_read_data.3 \
Packit d36e9b
	doc/ieee1284_write_data.3 \
Packit d36e9b
	doc/ieee1284_data_dir.3 \
Packit d36e9b
	doc/ieee1284_wait_data.3 \
Packit d36e9b
	doc/ieee1284_read_status.3 \
Packit d36e9b
	doc/ieee1284_wait_status.3 \
Packit d36e9b
	doc/ieee1284_read_control.3 \
Packit d36e9b
	doc/ieee1284_write_control.3 \
Packit d36e9b
	doc/ieee1284_frob_control.3 \
Packit d36e9b
	doc/ieee1284_do_nack_handshake.3 \
Packit d36e9b
	doc/ieee1284_negotiate.3 doc/ieee1284_terminate.3 \
Packit d36e9b
	doc/ieee1284_ecp_fwd_to_rev.3 doc/ieee1284_ecp_rev_to_fwd.3 \
Packit d36e9b
	doc/ieee1284_nibble_read.3 \
Packit d36e9b
	doc/ieee1284_compat_write.3 \
Packit d36e9b
	doc/ieee1284_byte_read.3 \
Packit d36e9b
	doc/ieee1284_epp_read_data.3 doc/ieee1284_epp_write_data.3 \
Packit d36e9b
	doc/ieee1284_epp_read_addr.3 doc/ieee1284_epp_write_addr.3 \
Packit d36e9b
	doc/ieee1284_ecp_read_data.3 doc/ieee1284_ecp_write_data.3 \
Packit d36e9b
	doc/ieee1284_ecp_read_addr.3 doc/ieee1284_ecp_write_addr.3 \
Packit d36e9b
	doc/ieee1284_get_irq_fd.3 \
Packit d36e9b
	doc/ieee1284_set_timeout.3
Packit d36e9b
Packit d36e9b
$(man3_MANS): $(top_srcdir)/doc/interface.xml
Packit d36e9b
	xmlto man -o doc $<
Packit d36e9b
Packit d36e9b
doc/interface.pdf: $(top_srcdir)/doc/interface.xml
Packit d36e9b
	xmlto pdf -o doc --extensions $<
Packit d36e9b
Packit d36e9b
EXTRA_DIST = libieee1284.spec doc/interface.xml doc/interface.txt \
Packit d36e9b
		$(man3_MANS) solaris_io/LICENSE solaris_io/README \
Packit d36e9b
		solaris_io/INSTALL solaris_io/iop.conf \
Packit d36e9b
		README.FreeBSD README.OpenBSD README.Solaris \
Packit d36e9b
		README.win95 README.winNT \
Packit d36e9b
		include/config.h.vc6 README.VC6 Makefile.vc6 ieee1284.def
Packit d36e9b
Packit d36e9b
DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]* \
Packit d36e9b
	doc/manpage.links doc/manpage.refs
Packit d36e9b
Packit d36e9b
MAINTAINERCLEANFILES = $(man3_MANS)
Packit d36e9b
Packit d36e9b
tag:
Packit d36e9b
	cvs tag -c `echo V@VERSION@ | tr . _`