1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
emacs/lwlib/Makefile.in

115 lines
3.2 KiB
Makefile
Raw Normal View History

### @configure_input@
2007-02-27 03:06:23 +00:00
# Copyright (C) 1992, 1993 Lucid, Inc.
# Copyright (C) 1994, 2001-2014 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 <http://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
1994-01-19 17:21:49 +00:00
srcdir=@srcdir@
# MinGW CPPFLAGS may use this.
abs_top_srcdir=@abs_top_srcdir@
1994-01-19 17:21:49 +00:00
VPATH=@srcdir@
@SET_MAKE@
1994-01-19 17:21:49 +00:00
C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
PROFILING_CFLAGS = @PROFILING_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
WARN_CFLAGS = `echo @WARN_CFLAGS@ | sed 's/ -Wwrite-strings//'`
WERROR_CFLAGS = @WERROR_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@
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
## ../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) \
2012-04-14 04:37:44 +00:00
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
-Demacs -I../src \
-I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
1994-01-18 23:47:41 +00:00
all: liblw.a
.PHONY: all
1994-01-18 23:47:41 +00:00
.c.o:
$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
1994-01-18 23:47:41 +00:00
liblw.a: $(OBJS)
rm -f $@
$(AR) $(ARFLAGS) $@ $(OBJS)
$(RANLIB) $@
1994-01-18 23:47:41 +00:00
## Generated files in ../src, non-generated in $(srcdir)/../src.
config_h = ../src/config.h $(srcdir)/../src/conf_post.h
lisp_h = $(srcdir)/../src/lisp.h
## lisp.h includes this.
globals_h = ../src/globals.h
src_h = $(config_h) $(lisp_h) $(globals_h)
$(globals_h):
cd ../src && $(MAKE) $(MFLAGS) globals.h
lwlib-utils.o: $(src_h) lwlib-utils.c lwlib-utils.h lwlib.h
lwlib.o: $(src_h) lwlib.c lwlib.h lwlib-int.h lwlib-utils.h \
lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h
lwlib-Xlw.o: $(src_h) lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h xlwmenu.h
lwlib-Xaw.o: $(src_h) lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
lwlib-Xm.o: $(src_h) lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
xlwmenu.o: $(src_h) xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h \
$(srcdir)/../src/xterm.h
1994-01-18 23:47:41 +00:00
1994-01-19 17:21:49 +00:00
mostlyclean:
rm -f *.o liblw.a \#*
1994-01-18 23:47:41 +00:00
1994-01-19 17:21:49 +00:00
clean: mostlyclean
distclean: clean
rm -f Makefile
maintainer-clean: distclean
rm -f TAGS
1994-01-18 23:47:41 +00:00
ETAGS = ../lib-src/etags
ctagsfiles= $(srcdir)/*.[ch]
TAGS: $(ctagsfiles)
"$(ETAGS)" $(ctagsfiles)
1996-03-29 14:52:56 +00:00
tags: TAGS
.PHONY: tags
### Makefile.in ends here