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

Revision 16729, 2.1 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16728, 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
39libidlincludedir        = $(includedir)/libIDL-1.0/libIDL
40libidlinclude_HEADERS   = IDL.h
41lib_LTLIBRARIES         = libIDL.la
42noinst_PROGRAMS         = tstidl
43
44bin_SCRIPTS             = libIDL-config
45
46BUILT_SOURCES           = lexer.c parser.c parser.h IDL.h stamp-parser
47
48libIDL_la_SOURCES       = parser.c parser.h lexer.c \
49                          ns.c util.c util.h rename.h
50libIDL_la_LDFLAGS       = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)  \
51                          -release $(LT_RELEASE)
52
53m4datadir               = $(datadir)/aclocal
54m4data_DATA             = libIDL.m4
55
56tstidl_SOURCES          = tstidl.c
57tstidl_LDADD            = libIDL.la
58
59confexecdir             = $(libdir)
60confexec_DATA           = libIDLConf.sh
61
62## We create libIDLConf.sh here and not from configure because we want
63## to get the paths expanded correctly.  Macros like srcdir are given
64## the value NONE in configure if the user doesn't specify them (this
65## is an autoconf feature, not a bug).
66
67libIDLConf.sh: libIDLConf.sh.in Makefile
68## Use sed and then mv to avoid problems if the user interrupts.
69        sed -e 's?\@LIBIDL_LIBDIR\@?$(LIBIDL_LIBDIR)?g' \
70                -e 's?\@LIBIDL_INCLUDEDIR\@?$(LIBIDL_INCLUDEDIR)?g' \
71                -e 's?\@LIBIDL_LIBS\@?$(LIBIDL_LIBS)?g' \
72                -e 's?\@VERSION\@?$(VERSION)?g' \
73                < $(srcdir)/libIDLConf.sh.in > libIDLConf.tmp \
74                && mv libIDLConf.tmp libIDLConf.sh
75
76pkgconfigdir = $(libdir)/pkgconfig
77pkgconfig_DATA= libIDL.pc
78
Note: See TracBrowser for help on using the repository browser.