1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00
emacs/lwlib/Makefile.in

122 lines
3.1 KiB
Makefile
Raw Normal View History

### @configure_input@
2007-02-27 03:06:23 +00:00
# Copyright (C) 1992, 1993 Lucid, Inc.
2024-01-02 01:47:10 +00:00
# Copyright (C) 1994, 2001-2024 Free Software Foundation, Inc.
#
2007-02-27 03:06:23 +00:00
# This file is part of the Lucid Widget Library.
#
2007-02-27 03:06:23 +00:00
# The Lucid Widget Library 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 1, or (at your option)
# any later version.
#
2007-02-27 03:06:23 +00:00
# The Lucid Widget Library 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.
#
2007-02-27 03:06:23 +00:00
# You should have received a copy of the GNU General Public License
# along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
2007-02-27 03:06:23 +00:00
# This was taken from the output of Imake using Lucid's Imakefile.
1994-01-21 16:22:40 +00:00
# and set up to be configured by ../configure.
1994-01-18 23:47:41 +00:00
all: liblw.a
.PHONY: all
1994-01-19 17:21:49 +00:00
srcdir=@srcdir@
top_builddir=@top_builddir@
# MinGW CPPFLAGS may use this.
abs_top_srcdir=@abs_top_srcdir@
1994-01-19 17:21:49 +00:00
VPATH=@srcdir@
C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
PROFILING_CFLAGS = @PROFILING_CFLAGS@
WARN_CFLAGS = @WARN_CFLAGS@
WARN_CFLAGS := $(filter-out -Wwrite-strings,${WARN_CFLAGS})
configure: new option --enable-gcc-warnings I have been using this change for many months in my private copy of Emacs, and have used it to find several bugs. It's mature enough to publish now. * Makefile.in (GNULIB_MODULES): Add warnings, manywarnings. * configure.in: Support --enable-gcc-warnings, in the style of other GNU packages such as coreutils. (C_WARNINGS_SWITCH): Remove, replacing with... (WARN_CFLAGS, GNULIB_WARN_CFLAGS): New variable. (PKG_CHECK_MODULES, C_SWITCH_X_SITE): Use -isystem rather than -I, when including system files with GCC. * etc/NEWS: Mention --enable-gcc-warnings. * lib/Makefile.am (AM_CFLAGS): New macro. * m4/manywarnings.m4, m4/warnings.m4: New files, from gnulib. * lib-src/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (BASE_CFLAGS): Use new macros rather than old. * lwlib/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (ALL_CFLAGS): Use new macros rather than old. * oldXMenu/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (ALL_CFLAGS): Use new macros rather than old. * src/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (ALL_CFLAGS): Use new macros rather than old. * src/process.c: Ignore -Wstrict-overflow to work around GCC bug 52904. * src/regex.c: Ignore -Wstrict-overflow. If !emacs, also ignore -Wunused-but-set-variable, -Wunused-function, -Wunused-macros, -Wunused-result, -Wunused-variable. This should go away once the Emacs and Gnulib regex code is merged. (xmalloc, xrealloc): Now static.
2012-04-09 07:45:59 +00:00
WERROR_CFLAGS = @WERROR_CFLAGS@
CAIRO_CFLAGS= @CAIRO_CFLAGS@
1994-01-18 23:47:41 +00:00
1994-01-19 17:21:49 +00:00
CC=@CC@
CFLAGS=@CFLAGS@
CPPFLAGS=@CPPFLAGS@
1995-08-16 14:20:19 +00:00
RANLIB=@RANLIB@
1994-01-18 23:47:41 +00:00
AR = @AR@
ARFLAGS = @ARFLAGS@
MKDIR_P = @MKDIR_P@
EXEEXT = @EXEEXT@
1994-01-18 23:47:41 +00:00
LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
MOTIF_OBJS = lwlib-Xm.o
1994-01-18 23:47:41 +00:00
## LUCID_OBJS or MOTIF_OBJS.
TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
1994-01-19 17:21:49 +00:00
OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
1994-01-18 23:47:41 +00:00
-include ${top_builddir}/src/verbose.mk
AUTO_DEPEND = @AUTO_DEPEND@
DEPDIR = deps
ifeq ($(AUTO_DEPEND),yes)
DEPFLAGS = -MMD -MF $(DEPDIR)/$*.d -MP
-include $(OBJS:%.o=$(DEPDIR)/%.d)
else
DEPFLAGS =
include $(srcdir)/deps.mk
endif
## ../src is where the generated file (config.h, globals.h) are.
## $(srcdir)/../src is where the non-generated files (lisp.h) are.
## (In an out-of-tree build, these two are not the same.)
## $(srcdir) is where the lwlib sources are.
## There are no generated lwlib files, hence no need for -I.
ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
$(C_SWITCH_MACHINE) $(DEPFLAGS) \
2012-04-14 04:37:44 +00:00
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
$(CAIRO_CFLAGS) \
-Demacs -I../src \
-I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
1994-01-18 23:47:41 +00:00
.c.o:
$(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
1994-01-18 23:47:41 +00:00
liblw.a: $(OBJS)
$(AM_V_GEN)rm -f $@
$(AM_V_at)$(AR) $(ARFLAGS) $@ $(OBJS)
$(AM_V_at)$(RANLIB) $@
1994-01-18 23:47:41 +00:00
globals_h = ../src/globals.h
$(globals_h):
$(MAKE) -C ../src globals.h
.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
clean mostlyclean:
rm -f ./*.o liblw.a \#* $(DEPDIR)/*
1994-01-18 23:47:41 +00:00
1994-01-19 17:21:49 +00:00
distclean: clean
rm -f Makefile
rm -fr $(DEPDIR)
bootstrap-clean maintainer-clean: distclean
rm -f TAGS
1994-01-18 23:47:41 +00:00
ETAGS = ../lib-src/etags${EXEEXT}
${ETAGS}: FORCE
${MAKE} -C ../lib-src $(notdir $@)
ctagsfiles= $(wildcard ${srcdir}/*.[ch])
FORCE:
.PHONY: tags FORCE
1996-03-29 14:52:56 +00:00
tags: TAGS
TAGS: ${ETAGS} $(ctagsfiles)
$(AM_V_GEN)${ETAGS} $(ctagsfiles)
### Makefile.in ends here