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/>.
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@
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 " $@
;
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 " $@
;
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 " $@
;
48 AM_V_at
= $(am__v_at_@AM_V@
)
49 am__v_at_
= $(am__v_at_@AM_DEFAULT_V@
)
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
64 ifneq ($(SYSTEM_TYPE
),windows-nt
)
65 libgnu_a_SOURCES
+= openat-die.c save-cwd.c
68 # Dependencies. When !AUTO_DEPEND, don't bother with a dependencies file,
69 # as the default dependencies are often adequate.
71 ifeq ($(AUTO_DEPEND
),yes
)
72 DEPFLAGS
= -MMD
-MF
$(DEPDIR
)/$*.d
-MP
73 MKDEPDIR
= $(MKDIR_P
) $(DEPDIR
)
74 -include $(ALLOBJS
:%.o
=$(DEPDIR
)/%.d
)
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
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
)
94 $(AM_V_CC
)$(CC
) -c
$(CPPFLAGS
) $(ALL_CFLAGS
) $<
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
)
103 $(AM_V_AR
)$(AR
) $(ARFLAGS
) $@
$(libgnu_a_OBJECTS
)
104 $(AM_V_at
)$(RANLIB
) $@
106 libegnu.a
: $(libegnu_a_OBJECTS
)
108 $(AM_V_AR
)$(AR
) $(ARFLAGS
) $@
$(libegnu_a_OBJECTS
)
109 $(AM_V_at
)$(RANLIB
) $@
111 ETAGS
= ..
/lib-src
/etags
$(EXEEXT
)
113 $(MAKE
) -C
$(dir $@
) $(notdir $@
)
114 tagsfiles
= $(wildcard $(srcdir)/*.
[ch
])
116 TAGS
: $(ETAGS
) $(tagsfiles
)
117 $(ETAGS
) $(tagsfiles
)
118 .PHONY
: $(ETAGS
) tags
124 rm -f Makefile
$(BUILT_SOURCES
)
125 bootstrap-clean
: distclean
127 maintainer-clean
: bootstrap-clean
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.