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 <https://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
69 ifeq ($(AUTO_DEPEND
),yes
)
70 DEPFLAGS
= -MMD
-MF
$(DEPDIR
)/$*.d
-MP
71 -include $(ALLOBJS
:%.o
=$(DEPDIR
)/%.d
)
76 .PRECIOUS
: ..
/config.status Makefile
77 ..
/config.status
: $(top_srcdir
)/configure.ac
$(top_srcdir
)/m4
/*.m4
78 $(MAKE
) -C ..
$(notdir $@
)
79 Makefile
: ..
/config.status
$(srcdir)/Makefile.in
82 libgnu_a_OBJECTS
= $(gl_LIBOBJS
) \
83 $(patsubst %.c
,%.o
,$(filter %.c
,$(libgnu_a_SOURCES
)))
84 libegnu_a_OBJECTS
= $(patsubst %.o
,e-
%.o
,$(libgnu_a_OBJECTS
))
86 $(libegnu_a_OBJECTS
) $(libgnu_a_OBJECTS
): $(BUILT_SOURCES
)
89 $(AM_V_CC
)$(CC
) -c
$(CPPFLAGS
) $(ALL_CFLAGS
) $<
91 $(AM_V_CC
)$(CC
) -c
$(CPPFLAGS
) $(ALL_CFLAGS
) -Demacs
-o
$@
$<
93 all: libgnu.a
$(if
$(HYBRID_MALLOC
),libegnu.a
)
95 libgnu.a
: $(libgnu_a_OBJECTS
)
97 $(AM_V_AR
)$(AR
) $(ARFLAGS
) $@
$(libgnu_a_OBJECTS
)
98 $(AM_V_at
)$(RANLIB
) $@
100 libegnu.a
: $(libegnu_a_OBJECTS
)
102 $(AM_V_AR
)$(AR
) $(ARFLAGS
) $@
$(libegnu_a_OBJECTS
)
103 $(AM_V_at
)$(RANLIB
) $@
105 ETAGS
= ..
/lib-src
/etags
$(EXEEXT
)
107 $(MAKE
) -C
$(dir $@
) $(notdir $@
)
108 tagsfiles
= $(wildcard $(srcdir)/*.
[ch
])
110 TAGS
: $(ETAGS
) $(tagsfiles
)
111 $(ETAGS
) $(tagsfiles
)
112 .PHONY
: $(ETAGS
) tags
115 rm -f
*.
[ao
] *-t \
#* $(DEPDIR)/*
117 rm -f
$(filter-out %-t
,$(MOSTLYCLEANFILES
))
118 distclean bootstrap-clean
: mostlyclean
121 maintainer-clean
: distclean
123 .PHONY
: mostlyclean clean distclean bootstrap-clean maintainer-clean
125 # Tell versions [3.59,3.63) of GNU make to not export all variables.
126 # Otherwise a system limit (for SysV at least) may be exceeded.