File: Makefile.am

package info (click to toggle)
orbit 0.5.16-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,680 kB
  • ctags: 7,029
  • sloc: ansic: 59,686; sh: 7,412; yacc: 1,751; makefile: 831; lex: 366; sed: 93
file content (78 lines) | stat: -rw-r--r-- 2,163 bytes parent folder | download | duplicates (3)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- mode: makefile -*-
#
# libIDL Makefile.am
#
INCLUDES		= -DYYDEBUG=1 -DYYERROR_VERBOSE=1 \
			  -DIDL_LIBRARY @GLIB_CFLAGS@ \
			  -DG_LOG_DOMAIN=\"libIDL\"
YFLAGS			= -d -v 2>/dev/null
LFLAGS			= @LFLAGS@
LIBS			= @GLIB_LIBS@

lexer.c: $(srcdir)/lexer.l parser.h
	@rm -f $@
	$(LEX) $(LFLAGS) -t $(srcdir)/lexer.l | sed -e 's/yy/__IDL_/g' >$@

stamp-parser: $(srcdir)/parser.y
	$(YACC) $(YFLAGS) $(srcdir)/parser.y
	touch $@

parser.c: stamp-parser
	test -f y.tab.c && mv -f y.tab.c parser.c || touch $@

parser.h: stamp-parser
	test -f y.tab.h && mv -f y.tab.h parser.h || touch $@

IDL.h: IDL.h.new
	@:

MOSTLYCLEANFILES	= parser.output y.output
DISTCLEANFILES		= IDL.h

EXTRA_DIST		= BUGS parser.y lexer.l \
			  Makefile.msc README.win32 \
			  libIDL.def libIDLConf.sh.in \
			  stamp-parser lexer.c parser.c parser.h \
			  libIDL.pc.in

info_TEXINFOS		= libIDL.texi
libidlincludedir        = $(includedir)/libIDL-1.0/libIDL
libidlinclude_HEADERS	= IDL.h
lib_LTLIBRARIES		= libIDL.la
noinst_PROGRAMS		= tstidl

bin_SCRIPTS		= libIDL-config

BUILT_SOURCES		= lexer.c parser.c parser.h IDL.h stamp-parser

libIDL_la_SOURCES	= parser.c parser.h lexer.c \
			  ns.c util.c util.h rename.h
libIDL_la_LDFLAGS	= -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)	\
			  -release $(LT_RELEASE)

m4datadir		= $(datadir)/aclocal
m4data_DATA		= libIDL.m4

tstidl_SOURCES		= tstidl.c
tstidl_LDADD		= libIDL.la

confexecdir		= $(libdir)
confexec_DATA		= libIDLConf.sh

## We create libIDLConf.sh here and not from configure because we want
## to get the paths expanded correctly.  Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
## is an autoconf feature, not a bug).

libIDLConf.sh: libIDLConf.sh.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
	sed -e 's?\@LIBIDL_LIBDIR\@?$(LIBIDL_LIBDIR)?g' \
		-e 's?\@LIBIDL_INCLUDEDIR\@?$(LIBIDL_INCLUDEDIR)?g' \
		-e 's?\@LIBIDL_LIBS\@?$(LIBIDL_LIBS)?g' \
		-e 's?\@VERSION\@?$(VERSION)?g' \
		< $(srcdir)/libIDLConf.sh.in > libIDLConf.tmp \
		&& mv libIDLConf.tmp libIDLConf.sh

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA= libIDL.pc