/[m4]/m4/m4/Makefile.am
ViewVC logotype

Diff of /m4/m4/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by gary, Thu Sep 4 16:04:09 2003 UTC revision 1.22 by gary, Fri Sep 5 18:32:26 2003 UTC
# Line 1  Line 1 
1  ## Makefile.am -- Process this file with automake to produce Makefile.in  ## This file is part of GNU m4
 ##  
2  ## Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.  ## Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
3  ##  ##
4  ## This program is free software; you can redistribute it and/or modify  ## This program is free software; you can redistribute it and/or modify
# Line 17  Line 16 
16  ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,  ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  ## Boston, MA 02111-1307, USA.  ## Boston, MA 02111-1307, USA.
18    
 CLEANFILES              = pathconf.h  
 MAINTAINERCLEANFILES    = Makefile.in  
   
 MODULE_PATH             = $(pkglibexecdir)  
 pkgincdir               = $(includedir)/@PACKAGE@  
   
19  AM_LDFLAGS      = -no-undefined -export-dynamic  AM_LDFLAGS      = -no-undefined -export-dynamic
20  INCLUDES        = -I$(top_builddir) -I$(top_srcdir) \  AM_CPPFLAGS     = -I$(top_builddir)/gnulib -I$(top_srcdir)/gnulib \
21                    -I$(top_builddir)/src -I$(top_srcdir)/src $(INTLINCL)                    -I$(top_builddir) -I$(top_srcdir) $(INTLINCL)
   
 include_HEADERS = m4module.h  
 noinst_HEADERS  = m4private.h  
 pkginc_HEADERS  = error.h hash.h ltdl.h regex.h system.h  
 EXTRA_HEADERS   = system_.h  
   
 EXTRA_DIST = $(EXTRA_HEADERS)  
22    
23  lib_LTLIBRARIES         = libm4.la  lib_LTLIBRARIES         = libm4.la
24  libm4_la_SOURCES        = builtin.c debug.c error.c hash.c \  libm4_la_SOURCES        = builtin.c debug.c error.c hash.c input.c \
25                            input.c ltdl.c m4.c macro.c module.c output.c \                            ltdl.c m4.c m4private.h macro.c module.c output.c \
26                            path.c regex.c symtab.c syntax.c utility.c                            path.c regex.c symtab.c syntax.c utility.c
27  libm4_la_LIBADD         = $(LTLIBOBJS) $(LTLIBINTL) $(LIBADD_DL)  libm4_la_LIBADD         = $(top_builddir)/gnulib/m4/libgnu.la $(LIBADD_DL)
28    
29  module.o module.lo: $(srcdir)/module.c pathconf.h  MODULE_PATH = $(pkglibexecdir)
30    module.o module.lo: module.c pathconf.h
31  pathconf.h: Makefile  pathconf.h: Makefile
32          @echo "#define MODULE_PATH \"${MODULE_PATH}\"" > pathconf.h          @echo "#define MODULE_PATH \"${MODULE_PATH}\"" > pathconf.h
 system.h: $(OBSTACK_H)  
33    
34    EXTRA_DIST      = system_.h
35  # This file needs to be regenerated at configure time.  # This file needs to be regenerated at configure time.
36  dist-hook:  dist-hook:
37          rm -f $(distdir)/system.h          rm -f $(distdir)/system.h
38    
39    pkgincdir       = $(includedir)/@PACKAGE@
40    pkginc_HEADERS  = error.h hash.h ltdl.h regex.h system.h
41    include_HEADERS = m4module.h
42    
43  # --------------------------- @  CLEANFILES              = pathconf.h
44  # Adapted for gnulib obstack. #  MAINTAINERCLEANFILES    = Makefile.in
 # --------------------------- @  
   
 gnulib_srcdir   = $(top_srcdir)/gnulib/lib  
   
 BUILT_SOURCES   = $(OBSTACK_C) $(OBSTACK_H)  
 DISTCLEANFILES  = obstack.c obstack.h  
   
 pkginc_HEADERS  += $(OBSTACK_H)  
   
 all-local $(lib_OBJECTS): $(OBSTACK_C) $(OBSTACK_H)  
 obstack.c: $(gnulib_srcdir)/obstack.c  
         rm -f $@ && $(LN_S) $(gnulib_srcdir)/$@ $@  
 obstack.h: $(gnulib_srcdir)/obstack.h  
         rm -f $@ && $(LN_S) $(gnulib_srcdir)/$@ $@  
   
   
 # ------------------------------------------------ #  
 # Adapted from gnulib/modules/stdbool:Makefile.am. #  
 # ------------------------------------------------ #  
   
 BUILT_SOURCES   += $(STDBOOL_H)  
 DISTCLEANFILES  += stdbool.h stdbool.h-t  
   
 pkginc_HEADERS  += $(STDBOOL_H)  
   
 # We need the following in order to create an <stdbool.h> when the system  
 # doesn't have one that works.  
 all-local $(lib_OBJECTS): $(STDBOOL_H)  
 stdbool.h: $(gnulib_srcdir)/stdbool_.h  
         sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(gnulib_srcdir)/stdbool_.h > $@-t  
         mv $@-t $@  

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26