File: Makefile.am

package info (click to toggle)
libctl 3.0.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,084 kB
  • ctags: 976
  • sloc: sh: 8,567; ansic: 5,584; lisp: 2,219; makefile: 102
file content (33 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
bin_SCRIPTS = gen-ctl-io
include_HEADERS = ctlgeom.h
nodist_include_HEADERS = ctlgeom-types.h
lib_LTLIBRARIES = libctlgeom.la
noinst_PROGRAMS = geomtst

EXTRA_DIST = gen-ctl-io.in README geom.scm geom-ctl-io-defaults.c

BUILT_SOURCES = gen-ctl-io geom-ctl-io.c ctl-io.c ctl-io.h ctlgeom-types.h

libctlgeom_la_SOURCES = geom.c 
nodist_libctlgeom_la_SOURCES = geom-ctl-io.c ctl-io.h
libctlgeom_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@

geomtst_SOURCES = geomtst.c
geomtst_LDADD = libctlgeom.la $(top_builddir)/src/libctl.la

dist_man_MANS = gen-ctl-io.1

ctl-io.c: geom.scm
	$(GEN_CTL_IO) --code -o $@ $(srcdir)/geom.scm $(top_srcdir)

ctl-io.h: geom.scm
	$(GEN_CTL_IO) --header -o $@ $(srcdir)/geom.scm $(top_srcdir)

ctlgeom-types.h: ctl-io.h
	cp -f ctl-io.h $@

geom-ctl-io.c: ctl-io.c
	sed 's,/.* Input variables .*/,@#include "geom-ctl-io-defaults.c"@#if 0@,;s,/.* Output variables .*/,#endif@,' ctl-io.c | tr '@' '\n' > $@

clean-local:
	rm -f ctl-io.[ch] geom-ctl-io.c ctlgeom-types.h