"Fossies" - the Fresh Open Source Software Archive

Member "udunits-2.2.28/lib/Makefile.am" (23 Nov 2020, 3915 Bytes) of package /linux/privat/udunits-2.2.28.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 2.2.26_vs_2.2.28.

    1 # Copyright 2013 University Corporation for Atmospheric Research
    2 #
    3 # This file is part of the UDUNITS-2 package.  See the file COPYRIGHT
    4 # in the top-level source-directory of the package for copying and
    5 # redistribution conditions.
    6 #
    7 ## Process this file with automake to produce Makefile.in
    8 SUBDIRS	= xmlFailures xmlSuccesses
    9 lib_LTLIBRARIES = libudunits2.la
   10 libudunits2_la_SOURCES = unitcore.c \
   11 			 converter.c \
   12 			 formatter.c \
   13                          idToUnitMap.c idToUnitMap.h \
   14                          unitToIdMap.c unitToIdMap.h \
   15                          unitAndId.c unitAndId.h \
   16                          systemMap.c systemMap.h \
   17                          prefix.c prefix.h \
   18                          parser.y \
   19                          status.c \
   20                          xml.c \
   21                          error.c \
   22                          ut_free_system.c
   23 BUILT_SOURCES = parser.c scanner.c
   24 pkgdata_DATA = \
   25     udunits2.xml \
   26     udunits2-accepted.xml \
   27     udunits2-base.xml \
   28     udunits2-common.xml \
   29     udunits2-derived.xml \
   30     udunits2-prefixes.xml
   31 TEXINFO_TEX	= ../texinfo.tex
   32 info_TEXINFOS 	= udunits2lib.texi
   33 #html_DATA = udunits2lib.html
   34 #pdf_DATA = udunits2lib.pdf
   35 AM_MAKEINFOFLAGS = -I $(top_srcdir)
   36 AM_MAKEINFOHTMLFLAGS = --no-split -I $(top_srcdir)
   37 libudunits2_la_LDFLAGS	= -version-number 0:1:0 -no-undefined
   38 
   39 lex_prefix = ut
   40 LEX_OUTPUT_ROOT = lex.$(lex_prefix)
   41 LFLAGS = -d -P$(lex_prefix)
   42 
   43 include_HEADERS = udunits2.h converter.h
   44 EXTRA_DIST = udunits_snprintf.c \
   45              CMakeLists.txt \
   46              parser.c \
   47              scanner.l \
   48              scanner.c \
   49              tsearch.c tsearch.h \
   50              udunits-1.c udunits.h \
   51              udunits2.xml \
   52              udunits2-accepted.xml \
   53              udunits2-base.xml \
   54              udunits2-common.xml \
   55              udunits2-derived.xml \
   56              udunits2-prefixes.xml \
   57              udunits2lib.html \
   58              udunits2lib.pdf
   59 AM_YFLAGS = -t -p ut
   60 
   61 if HAVE_CUNIT
   62 LDADD			= \
   63     libudunits2.la \
   64     @LD_CUNIT@ \
   65     @LIBS_COVERAGE@ \
   66     @LIBS@
   67 check_PROGRAMS		= testUnits
   68 TESTS_ENVIRONMENT	= UDUNITS2_XML_PATH='$(srcdir)/udunits2.xml'
   69 TESTS = testUnits
   70 else
   71 LDADD			= @LIBS@
   72 endif
   73 
   74 if ENABLE_UDUNITS_1
   75 libudunits2_la_SOURCES += udunits-1.c
   76 include_HEADERS += udunits.h
   77 if HAVE_CUNIT
   78 check_PROGRAMS += testUnits-1
   79 TESTS += testUnits-1
   80 endif
   81 endif
   82 
   83 DISTCLEANFILES	= *.log
   84 MOSTLYCLEANFILES = lint.log *.ln *.i core core.[0-9]* *.gcov *.gcda *.gcno
   85 TAGS_FILES = parser.c
   86 
   87 LINTFLAGS	= -u
   88 LINT		= lint
   89 
   90 # Allow HTML documentation access to the units database by creating symbolic
   91 # links in the webpage directory to the database files.
   92 $(DESTDIR)$(htmldir):
   93 	mkdir -p $@
   94 install-data-hook:	$(DESTDIR)$(htmldir)
   95 	cd $(DESTDIR)$(htmldir) && \
   96 	    rm -rf $(PACKAGE)*.xml && \
   97 	    ln -s ../../$(PACKAGE)/*.xml .
   98 
   99 SUFFIXES = .c .l
  100 
  101 .c.ln:
  102 	$(LINT.c) $(AM_CPPFLAGS) $(CPPFLAGS) -c $<
  103 
  104 .c.i:
  105 	$(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) $< >$@
  106 
  107 .c.gcov:
  108 	gcov -o .libs/libudunits2_la-$<.o $<.c
  109 
  110 if HAVE_CUNIT
  111 check-2:	testUnits
  112 	UDUNITS2_XML_PATH='$(srcdir)/udunits2.xml' ./testUnits
  113 
  114 check-1:	testUnits-1
  115 	UDUNITS2_XML_PATH='$(srcdir)/udunits2.xml' ./testUnits-1
  116 
  117 debug:		debug-2
  118 
  119 debug-2:	testUnits
  120 	UDUNITS2_XML_PATH='$(srcdir)/udunits2.xml' \
  121 	    $(LIBTOOL) --mode=execute gdb testUnits
  122 
  123 debug-1:	testUnits-1
  124 	UDUNITS2_XML_PATH='$(srcdir)/udunits2.xml' \
  125 	    $(LIBTOOL) --mode=execute gdb testUnits-1
  126 
  127 debug-decode-time:	test_decode_time
  128 	UDUNITS2_XML_PATH='$(srcdir)/udunits2.xml' \
  129 	    $(LIBTOOL) --mode=execute gdb test_decode_time
  130 
  131 valgrind-2:	testUnits
  132 	UDUNITS2_XML_PATH='$(srcdir)/udunits2.xml' \
  133 	    $(LIBTOOL) --mode=execute valgrind --leak-check=yes testUnits
  134 
  135 valgrind-1:	testUnits-1
  136 	UDUNITS2_XML_PATH='$(srcdir)/udunits2.xml' \
  137 	    $(LIBTOOL) --mode=execute valgrind --leak-check=yes testUnits-1
  138 
  139 .PHONY:		check-1 check-2 debug debug-1 debug-2 valgrind-1 valgrind-2
  140 endif
  141 
  142 parser.o: scanner.c
  143