* lisp/obarray.el (obarray-size): Avoid compiler warning.
[emacs.git] / lib / Makefile.in
blob4e51ac6b0297753d35b12b65a86c963e82ac899e
1 ### @configure_input@
3 # Copyright 2017 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
7 # GNU Emacs is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20 srcdir = @srcdir@
21 VPATH = @srcdir@
23 # Variables substituted by 'configure', and not autogenerated in gnulib.mk,
24 # or needed before gnulib.mk is included.
25 abs_top_srcdir = @abs_top_srcdir@
26 top_builddir = @top_builddir@
27 top_srcdir = @top_srcdir@
29 all:
30 .PHONY: all
32 # 'make' verbosity.
33 AM_V_AR = $(am__v_AR_@AM_V@)
34 am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
35 am__v_AR_0 = @echo " AR " $@;
36 am__v_AR_1 =
38 AM_V_CC = $(am__v_CC_@AM_V@)
39 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
40 am__v_CC_0 = @echo " CC " $@;
41 am__v_CC_1 =
43 AM_V_GEN = $(am__v_GEN_@AM_V@)
44 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
45 am__v_GEN_0 = @echo " GEN " $@;
46 am__v_GEN_1 =
48 AM_V_at = $(am__v_at_@AM_V@)
49 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
50 am__v_at_0 = @
51 am__v_at_1 =
53 ALL_CFLAGS= \
54 $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) $(DEPFLAGS) \
55 $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
56 -I. -I../src -I$(srcdir) -I$(srcdir)/../src \
57 $(if $(patsubst e-%,,$(notdir $<)),,-Demacs)
59 SYSTEM_TYPE = @SYSTEM_TYPE@
60 ifeq ($(SYSTEM_TYPE),windows-nt)
61 include $(srcdir)/../nt/gnulib-cfg.mk
62 endif
63 include gnulib.mk
64 ifneq ($(SYSTEM_TYPE),windows-nt)
65 libgnu_a_SOURCES += openat-die.c save-cwd.c
66 endif
68 # Dependencies. When !AUTO_DEPEND, don't bother with a dependencies file,
69 # as the default dependencies are often adequate.
70 DEPDIR = deps
71 ifeq ($(AUTO_DEPEND),yes)
72 DEPFLAGS = -MMD -MF $(DEPDIR)/$*.d -MP
73 MKDEPDIR = $(MKDIR_P) $(DEPDIR)
74 -include $(ALLOBJS:%.o=$(DEPDIR)/%.d)
75 else
76 DEPFLAGS =
77 MKDEPDIR = :
78 endif
80 .PRECIOUS: ../config.status Makefile
81 ../config.status: $(top_srcdir)/configure.ac $(top_srcdir)/m4/*.m4
82 $(MAKE) -C .. $(notdir $@)
83 Makefile: ../config.status $(srcdir)/Makefile.in
84 $(MAKE) -C .. src/$@
86 libgnu_a_OBJECTS = $(gl_LIBOBJS) \
87 $(patsubst %.c,%.o,$(filter %.c,$(libgnu_a_SOURCES)))
88 libegnu_a_OBJECTS = $(patsubst %.o,e-%.o,$(libgnu_a_OBJECTS))
90 $(libegnu_a_OBJECTS) $(libgnu_a_OBJECTS): $(BUILT_SOURCES)
92 .c.o:
93 @$(MKDEPDIR)
94 $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
95 e-%.o: %.c
96 @$(MKDEPDIR)
97 $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -Demacs -o $@ $<
99 all: libgnu.a $(if $(HYBRID_MALLOC),libegnu.a)
101 libgnu.a: $(libgnu_a_OBJECTS)
102 $(AM_V_at)rm -f $@
103 $(AM_V_AR)$(AR) $(ARFLAGS) $@ $(libgnu_a_OBJECTS)
104 $(AM_V_at)$(RANLIB) $@
106 libegnu.a: $(libegnu_a_OBJECTS)
107 $(AM_V_at)rm -f $@
108 $(AM_V_AR)$(AR) $(ARFLAGS) $@ $(libegnu_a_OBJECTS)
109 $(AM_V_at)$(RANLIB) $@
111 ETAGS = ../lib-src/etags$(EXEEXT)
112 $(ETAGS):
113 $(MAKE) -C $(dir $@) $(notdir $@)
114 tagsfiles= $(wildcard $(srcdir)/*.[ch])
115 tags: TAGS
116 TAGS: $(ETAGS) $(tagsfiles)
117 $(ETAGS) $(tagsfiles)
118 .PHONY: $(ETAGS) tags
120 clean mostlyclean:
121 rm -f *.[ao] \#*
122 -rm -rf $(DEPDIR)
123 distclean: clean
124 rm -f Makefile $(BUILT_SOURCES)
125 bootstrap-clean: distclean
126 rm -f TAGS
127 maintainer-clean: bootstrap-clean
128 rm -f gnulib.mk
129 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
131 # Tell versions [3.59,3.63) of GNU make to not export all variables.
132 # Otherwise a system limit (for SysV at least) may be exceeded.
133 .NOEXPORT: