diff options
| author | Philipp Stephani | 2017-06-13 20:46:03 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2017-06-13 20:48:15 +0200 |
| commit | 58b9b098a4cbefbe7ae28079a96625bd450c9316 (patch) | |
| tree | 06a75c54ff53a0f01e543aa58828496eda517859 /test/data | |
| parent | a63aeb64b70ba20cd1611bf97e435dd43a1c93f7 (diff) | |
| download | emacs-58b9b098a4cbefbe7ae28079a96625bd450c9316.tar.gz emacs-58b9b098a4cbefbe7ae28079a96625bd450c9316.zip | |
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 @@ | |||
| 1 | ### @configure_input@ | ||
| 2 | |||
| 3 | # Test GNU Emacs modules. | ||
| 4 | |||
| 5 | # Copyright 2015-2017 Free Software Foundation, Inc. | ||
| 6 | |||
| 7 | # This file is part of GNU Emacs. | ||
| 8 | |||
| 9 | # GNU Emacs is free software: you can redistribute it and/or modify | ||
| 10 | # it under the terms of the GNU General Public License as published by | ||
| 11 | # the Free Software Foundation, either version 3 of the License, or | ||
| 12 | # (at your option) any later version. | ||
| 13 | |||
| 14 | # GNU Emacs is distributed in the hope that it will be useful, | ||
| 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | # GNU General Public License for more details. | ||
| 18 | |||
| 19 | # You should have received a copy of the GNU General Public License | ||
| 20 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 21 | |||
| 22 | SHELL = @SHELL@ | ||
| 23 | |||
| 24 | top_srcdir = @top_srcdir@ | ||
| 25 | VPATH = $(srcdir) | ||
| 26 | CC = @CC@ | ||
| 27 | CFLAGS = @CFLAGS@ | ||
| 28 | PROFILING_CFLAGS = @PROFILING_CFLAGS@ | ||
| 29 | WARN_CFLAGS = @WARN_CFLAGS@ | ||
| 30 | WERROR_CFLAGS = @WERROR_CFLAGS@ | ||
| 31 | CPPFLAGS = @CPPFLAGS@ | ||
| 32 | SO = @MODULES_SUFFIX@ | ||
| 33 | |||
| 34 | # -fPIC is a no-op on Windows, but causes a compiler warning | ||
| 35 | ifeq ($(SO),.dll) | ||
| 36 | FPIC_CFLAGS = | ||
| 37 | else | ||
| 38 | FPIC_CFLAGS = -fPIC | ||
| 39 | endif | ||
| 40 | |||
| 41 | ALL_CFLAGS = -I$(top_srcdir)/src $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \ | ||
| 42 | $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) | ||
| 43 | |||
| 44 | all: mod-test$(SO) | ||
| 45 | |||
| 46 | %$(SO): %.o | ||
| 47 | $(CC) -shared $(LDFLAGS) -o $@ $< | ||
| 48 | |||
| 49 | %.o: %.c $(top_srcdir)/src/emacs-module.h | ||
| 50 | $(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< | ||
| 51 | |||
| 52 | ## Stop .o files being deleted. | ||
| 53 | .SECONDARY: | ||
| 54 | |||
| 55 | .PHONY: clean | ||
| 56 | |||
| 57 | clean: | ||
| 58 | rm -f *.o *.so *.dll | ||
| 59 | |||