Makefile.am 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ## Process this file with automake to produce Makefile.in
  2. EXPR_VERSION = "4:0:0"
  3. AM_CPPFLAGS = \
  4. -I$(top_srcdir)/lib \
  5. -I$(top_builddir)/lib \
  6. -I$(top_srcdir)/lib/cdt
  7. noinst_HEADERS = exgram.h exlib.h exop.h exparse.h expr.h
  8. noinst_LTLIBRARIES = libexpr_C.la
  9. dist_man_MANS = expr.3
  10. if ENABLE_MAN_PDFS
  11. pdf_DATA = expr.3.pdf
  12. endif
  13. libexpr_C_la_SOURCES = excc.c excontext.c exdata.c exerror.c \
  14. exeval.c exexpr.c exopen.c extoken.c \
  15. extype.c exzero.c exparse.y exnospace.c
  16. libexpr_C_la_LIBADD = \
  17. $(top_builddir)/lib/ast/libast_C.la \
  18. $(top_builddir)/lib/sfio/libsfio_C.la \
  19. $(top_builddir)/lib/sfio/Sfio_f/libsfiof_C.la \
  20. $(top_builddir)/lib/cdt/libcdt.la \
  21. $(top_builddir)/lib/vmalloc/libvmalloc_C.la
  22. $(libexpr_C_la_OBJECTS) $(libexpr_la_OBJECTS): \
  23. exparse.h exparse.c exgram.h exop.h
  24. exparse.c exparse.h: $(top_srcdir)/lib/expr/exparse.y
  25. $(YACC) -Wno-yacc -dtv $(top_srcdir)/lib/expr/exparse.y -o exparse.c
  26. .3.3.pdf:
  27. rm -f $@; pdffile=$@; psfile=$${pdffile%pdf}ps; \
  28. $(GROFF) -Tps -man $< > $$psfile || { rm -f $$psfile; exit 1; }; \
  29. $(PS2PDF) $$psfile && rm -f $$psfile || { rm -f $$psfile; exit 1; }
  30. SUFFIXES = .3 .3.pdf
  31. EXTRA_DIST = exparse.c exparse.h
  32. DISTCLEANFILES = exparse.c exparse.h $(pdf_DATA)