diff options
author | Philipp Stephani <phst@google.com> | 2017-06-13 20:46:03 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2017-06-13 20:48:15 +0200 |
commit | 58b9b098a4cbefbe7ae28079a96625bd450c9316 (patch) | |
tree | 06a75c54ff53a0f01e543aa58828496eda517859 /test/data | |
parent | a63aeb64b70ba20cd1611bf97e435dd43a1c93f7 (diff) | |
download | emacs-58b9b098a4cbefbe7ae28079a96625bd450c9316.tar.gz |
Inline test module Makefile into main test Makefile
The test/data/emacs-module/Makefile only built a single target, and
inlining it into test/Makefile simplifies dependency tracking and
reduces code duplication.
* configure.ac: Don't build test/data/emacs-module/Makefile.
* Makefile.in ($(test_module)): Inline compilation.
(clean): Also clean test module outputs.
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/emacs-module/Makefile.in | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/test/data/emacs-module/Makefile.in b/test/data/emacs-module/Makefile.in deleted file mode 100644 index 2af6473c7a6..00000000000 --- a/test/data/emacs-module/Makefile.in +++ /dev/null @@ -1,59 +0,0 @@ -### @configure_input@ - -# Test GNU Emacs modules. - -# Copyright 2015-2017 Free Software Foundation, Inc. - -# This file is part of GNU Emacs. - -# GNU Emacs is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# GNU Emacs is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. - -SHELL = @SHELL@ - -top_srcdir = @top_srcdir@ -VPATH = $(srcdir) -CC = @CC@ -CFLAGS = @CFLAGS@ -PROFILING_CFLAGS = @PROFILING_CFLAGS@ -WARN_CFLAGS = @WARN_CFLAGS@ -WERROR_CFLAGS = @WERROR_CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -SO = @MODULES_SUFFIX@ - -# -fPIC is a no-op on Windows, but causes a compiler warning -ifeq ($(SO),.dll) -FPIC_CFLAGS = -else -FPIC_CFLAGS = -fPIC -endif - -ALL_CFLAGS = -I$(top_srcdir)/src $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \ - $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) - -all: mod-test$(SO) - -%$(SO): %.o - $(CC) -shared $(LDFLAGS) -o $@ $< - -%.o: %.c $(top_srcdir)/src/emacs-module.h - $(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< - -## Stop .o files being deleted. -.SECONDARY: - -.PHONY: clean - -clean: - rm -f *.o *.so *.dll - |