1 | # -*- mode: makefile -*- |
---|
2 | # |
---|
3 | # libIDL Makefile.am |
---|
4 | # |
---|
5 | INCLUDES = -DYYDEBUG=1 -DYYERROR_VERBOSE=1 \ |
---|
6 | -DIDL_LIBRARY @GLIB_CFLAGS@ \ |
---|
7 | -DG_LOG_DOMAIN=\"libIDL\" |
---|
8 | YFLAGS = -d -v 2>/dev/null |
---|
9 | LFLAGS = @LFLAGS@ |
---|
10 | LIBS = @GLIB_LIBS@ |
---|
11 | |
---|
12 | lexer.c: $(srcdir)/lexer.l parser.h |
---|
13 | @rm -f $@ |
---|
14 | $(LEX) $(LFLAGS) -t $(srcdir)/lexer.l | sed -e 's/yy/__IDL_/g' >$@ |
---|
15 | |
---|
16 | stamp-parser: $(srcdir)/parser.y |
---|
17 | $(YACC) $(YFLAGS) $(srcdir)/parser.y |
---|
18 | touch $@ |
---|
19 | |
---|
20 | parser.c: stamp-parser |
---|
21 | test -f y.tab.c && mv -f y.tab.c parser.c || touch $@ |
---|
22 | |
---|
23 | parser.h: stamp-parser |
---|
24 | test -f y.tab.h && mv -f y.tab.h parser.h || touch $@ |
---|
25 | |
---|
26 | IDL.h: IDL.h.new |
---|
27 | @: |
---|
28 | |
---|
29 | MOSTLYCLEANFILES = parser.output y.output |
---|
30 | DISTCLEANFILES = IDL.h |
---|
31 | |
---|
32 | EXTRA_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 | |
---|
38 | info_TEXINFOS = libIDL.texi |
---|
39 | pkginclude_HEADERS = IDL.h |
---|
40 | lib_LTLIBRARIES = libIDL.la |
---|
41 | noinst_PROGRAMS = tstidl |
---|
42 | |
---|
43 | bin_SCRIPTS = libIDL-config |
---|
44 | |
---|
45 | BUILT_SOURCES = lexer.c parser.c parser.h IDL.h stamp-parser |
---|
46 | |
---|
47 | libIDL_la_SOURCES = parser.c parser.h lexer.c \ |
---|
48 | ns.c util.c util.h rename.h |
---|
49 | libIDL_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ |
---|
50 | -release $(LT_RELEASE) |
---|
51 | |
---|
52 | m4datadir = $(datadir)/aclocal |
---|
53 | m4data_DATA = libIDL.m4 |
---|
54 | |
---|
55 | tstidl_SOURCES = tstidl.c |
---|
56 | tstidl_LDADD = libIDL.la |
---|
57 | |
---|
58 | confexecdir = $(libdir) |
---|
59 | confexec_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 | |
---|
66 | libIDLConf.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 | |
---|
75 | pkgconfigdir = $(libdir)/pkgconfig |
---|
76 | pkgconfig_DATA= libIDL.pc |
---|
77 | |
---|