source: trunk/third/ORBit/libIDL/Makefile.am @ 15271

Revision 15271, 2.1 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15270, which included commits to RCS files with non-trunk default branches.
Line 
1# -*- mode: makefile -*-
2#
3# libIDL Makefile.am
4#
5INCLUDES                = -DYYDEBUG=1 -DYYERROR_VERBOSE=1 \
6                          -DIDL_LIBRARY @GLIB_CFLAGS@ \
7                          -DG_LOG_DOMAIN=\"libIDL\"
8YFLAGS                  = -d -v 2>/dev/null
9LFLAGS                  = @LFLAGS@
10LIBS                    = @GLIB_LIBS@
11
12lexer.c: $(srcdir)/lexer.l parser.h
13        @rm -f $@
14        $(LEX) $(LFLAGS) -t $(srcdir)/lexer.l | sed -e 's/yy/__IDL_/g' >$@
15
16stamp-parser: $(srcdir)/parser.y
17        $(YACC) $(YFLAGS) $(srcdir)/parser.y
18        touch $@
19
20parser.c: stamp-parser
21        test -f y.tab.c && mv -f y.tab.c parser.c || touch $@
22
23parser.h: stamp-parser
24        test -f y.tab.h && mv -f y.tab.h parser.h || touch $@
25
26IDL.h: IDL.h.new
27        @:
28
29MOSTLYCLEANFILES        = parser.output y.output
30DISTCLEANFILES          = IDL.h
31
32EXTRA_DIST              = BUGS parser.y lexer.l \
33                          Makefile.msc README.win32 \
34                          libIDL.def libIDLConf.sh.in \
35                          stamp-parser lexer.c parser.c parser.h \
36                          libIDL.pc.in
37
38info_TEXINFOS           = libIDL.texi
39pkginclude_HEADERS      = IDL.h
40lib_LTLIBRARIES         = libIDL.la
41noinst_PROGRAMS         = tstidl
42
43bin_SCRIPTS             = libIDL-config
44
45BUILT_SOURCES           = lexer.c parser.c parser.h IDL.h stamp-parser
46
47libIDL_la_SOURCES       = parser.c parser.h lexer.c \
48                          ns.c util.c util.h rename.h
49libIDL_la_LDFLAGS       = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)  \
50                          -release $(LT_RELEASE)
51
52m4datadir               = $(datadir)/aclocal
53m4data_DATA             = libIDL.m4
54
55tstidl_SOURCES          = tstidl.c
56tstidl_LDADD            = libIDL.la
57
58confexecdir             = $(libdir)
59confexec_DATA           = libIDLConf.sh
60
61## We create libIDLConf.sh here and not from configure because we want
62## to get the paths expanded correctly.  Macros like srcdir are given
63## the value NONE in configure if the user doesn't specify them (this
64## is an autoconf feature, not a bug).
65
66libIDLConf.sh: libIDLConf.sh.in Makefile
67## Use sed and then mv to avoid problems if the user interrupts.
68        sed -e 's?\@LIBIDL_LIBDIR\@?$(LIBIDL_LIBDIR)?g' \
69                -e 's?\@LIBIDL_INCLUDEDIR\@?$(LIBIDL_INCLUDEDIR)?g' \
70                -e 's?\@LIBIDL_LIBS\@?$(LIBIDL_LIBS)?g' \
71                -e 's?\@VERSION\@?$(VERSION)?g' \
72                < $(srcdir)/libIDLConf.sh.in > libIDLConf.tmp \
73                && mv libIDLConf.tmp libIDLConf.sh
74
75pkgconfigdir = $(libdir)/pkgconfig
76pkgconfig_DATA= libIDL.pc
77
Note: See TracBrowser for help on using the repository browser.