2013-07-23 22:57:17 +00:00
|
|
|
### @configure_input@
|
2007-02-27 03:00:17 +00:00
|
|
|
|
|
|
|
## Copyright 1985, 1986, 1987 by the Massachusetts Institute of Technology
|
|
|
|
|
|
|
|
## Permission to use, copy, modify, and distribute this
|
|
|
|
## software and its documentation for any purpose and without
|
|
|
|
## fee is hereby granted, provided that the above copyright
|
|
|
|
## notice appear in all copies and that both that copyright
|
|
|
|
## notice and this permission notice appear in supporting
|
|
|
|
## documentation, and that the name of M.I.T. not be used in
|
|
|
|
## advertising or publicity pertaining to distribution of the
|
|
|
|
## software without specific, written prior permission.
|
|
|
|
## M.I.T. makes no representations about the suitability of
|
|
|
|
## this software for any purpose. It is provided "as is"
|
|
|
|
## without express or implied warranty.
|
|
|
|
|
|
|
|
|
2014-01-01 07:43:34 +00:00
|
|
|
## Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
2007-02-27 03:00:17 +00:00
|
|
|
|
2008-05-09 04:51:27 +00:00
|
|
|
## This program is free software: you can redistribute it and/or modify
|
2007-02-27 03:00:17 +00:00
|
|
|
## it under the terms of the GNU General Public License as published by
|
2008-05-09 04:51:27 +00:00
|
|
|
## the Free Software Foundation, either version 3 of the License, or
|
|
|
|
## (at your option) any later version.
|
|
|
|
|
2007-02-27 03:00:17 +00:00
|
|
|
## This program 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.
|
2008-05-09 04:51:27 +00:00
|
|
|
|
2007-02-27 03:00:17 +00:00
|
|
|
## You should have received a copy of the GNU General Public License
|
2008-05-09 04:51:27 +00:00
|
|
|
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2007-02-27 03:00:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
### Commentary:
|
|
|
|
|
|
|
|
## To the best of our knowledge, this code was originally based on the
|
|
|
|
## X11 oldXMenu Makefile, which was automatically generated from the
|
Remove some unused Makefile.in variables.
* configure.in (AC_PROG_LN_S): Remove test, nothing uses @LN_S@.
* Makefile.in (CPP, C_SWITCH_SYSTEM, ALLOCA, LN_S, C_SWITCH_X_SITE)
(LD_SWITCH_X_SITE): Remove unused variables.
* lwlib/Makefile.in (CPP, LN_S, TOP, LN): Remove unused variables.
* oldXMenu/Makefile.in (CPP, LN_S, AS, LD, MV, LS, LINTOPTS, LINTLIBFLAG, MAKE)
(STD_DEFINES, CDEBUGFLAGS, RM_CMD): Remove unused variables.
* src/Makefile.in (CPP, LN_S): Remove unused variables.
* msdos/sed1v2.inp, msdos/sed5x.inp: Remove LN_S, unused.
2010-05-06 07:24:18 +00:00
|
|
|
## X11 oldXMenu Imakefile. There was no explicit copyright information
|
2007-02-27 03:00:17 +00:00
|
|
|
## in the Imakefile, therefore we have added the same MIT license as
|
|
|
|
## used by the rest of the oldXMenu code.
|
|
|
|
|
|
|
|
|
|
|
|
### Code:
|
|
|
|
|
1999-10-03 19:36:13 +00:00
|
|
|
srcdir=@srcdir@
|
2013-10-24 04:05:54 +00:00
|
|
|
# MinGW CPPFLAGS may use this.
|
|
|
|
abs_top_srcdir=@abs_top_srcdir@
|
1999-10-03 19:36:13 +00:00
|
|
|
VPATH=@srcdir@
|
|
|
|
C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
|
2010-05-04 03:26:38 +00:00
|
|
|
C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
|
|
|
|
C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
|
Properly handle C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS
* configure.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
(PROFILING_LDFLAGS): Substitute, don't add them to CFLAGS/LDFLAGS.
(C_OPTIMIZE_SWITCH): Remove.
(TEMACS_LDFLAGS2): Add ${PROFILING_LDFLAGS}.
* lib-src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
(PROFILING_LDFLAGS): Set from substitution.
(BASE_CFLAGS): Add ${C_WARNINGS_SWITCH}.
(ALL_CFLAGS, CPP_CFLAGS): Add ${PROFILING_CFLAGS}.
(LINK_CFLAGS): Add ${PROFILING_LDFLAGS}.
* lwlib/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
substitution.
(ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
* oldXMenu/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
substitution.
(ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
* src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
(PROFILING_LDFLAGS): Set from substitution.
(ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
CFLAGS last.
2010-07-12 14:16:38 +00:00
|
|
|
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 = @WARN_CFLAGS@
|
|
|
|
WERROR_CFLAGS = @WERROR_CFLAGS@
|
1999-10-03 19:36:13 +00:00
|
|
|
|
|
|
|
EXTRA=insque.o
|
|
|
|
CC=@CC@
|
|
|
|
CFLAGS=@CFLAGS@
|
2014-06-15 17:59:30 +00:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
|
Remove some unused Makefile.in variables.
* configure.in (AC_PROG_LN_S): Remove test, nothing uses @LN_S@.
* Makefile.in (CPP, C_SWITCH_SYSTEM, ALLOCA, LN_S, C_SWITCH_X_SITE)
(LD_SWITCH_X_SITE): Remove unused variables.
* lwlib/Makefile.in (CPP, LN_S, TOP, LN): Remove unused variables.
* oldXMenu/Makefile.in (CPP, LN_S, AS, LD, MV, LS, LINTOPTS, LINTLIBFLAG, MAKE)
(STD_DEFINES, CDEBUGFLAGS, RM_CMD): Remove unused variables.
* src/Makefile.in (CPP, LN_S): Remove unused variables.
* msdos/sed1v2.inp, msdos/sed5x.inp: Remove LN_S, unused.
2010-05-06 07:24:18 +00:00
|
|
|
TAGS = etags
|
|
|
|
RM = rm -f
|
2010-05-06 07:29:09 +00:00
|
|
|
RANLIB = @RANLIB@
|
2012-10-06 00:42:28 +00:00
|
|
|
AR = @AR@
|
|
|
|
ARFLAGS = @ARFLAGS@
|
1999-10-03 19:36:13 +00:00
|
|
|
|
|
|
|
OBJS = Activate.o \
|
|
|
|
AddPane.o \
|
|
|
|
AddSel.o \
|
|
|
|
ChgPane.o \
|
|
|
|
ChgSel.o \
|
|
|
|
Create.o \
|
|
|
|
DelPane.o \
|
|
|
|
DelSel.o \
|
|
|
|
Destroy.o \
|
|
|
|
Error.o \
|
|
|
|
EvHand.o \
|
|
|
|
FindPane.o \
|
|
|
|
FindSel.o \
|
|
|
|
InsPane.o \
|
|
|
|
InsSel.o \
|
|
|
|
Internal.o \
|
|
|
|
Locate.o \
|
|
|
|
Post.o \
|
|
|
|
Recomp.o \
|
|
|
|
SetAEQ.o \
|
|
|
|
SetFrz.o \
|
|
|
|
SetPane.o \
|
|
|
|
SetSel.o \
|
|
|
|
XDelAssoc.o XLookAssoc.o XCrAssoc.o XDestAssoc.o XMakeAssoc.o
|
|
|
|
|
2013-09-04 06:45:44 +00:00
|
|
|
all: libXMenu11.a
|
|
|
|
.PHONY: all
|
1999-10-03 19:36:13 +00:00
|
|
|
|
2008-07-23 06:26:32 +00:00
|
|
|
ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
|
2012-04-11 01:25:51 +00:00
|
|
|
$(C_SWITCH_X_SITE) \
|
2012-04-14 04:37:44 +00:00
|
|
|
$(WARN_CFLAGS) $(WERROR_CFLAGS) ${PROFILING_CFLAGS} \
|
1999-10-03 19:36:13 +00:00
|
|
|
$(CPPFLAGS) $(CFLAGS) -DEMACS_BITMAP_FILES \
|
2012-06-26 00:39:36 +00:00
|
|
|
-I../src -I../lib -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib
|
1999-10-03 19:36:13 +00:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c ${ALL_CFLAGS} $<
|
|
|
|
|
|
|
|
libXMenu11.a: $(OBJS) $(EXTRA)
|
|
|
|
$(RM) $@
|
2012-10-06 00:42:28 +00:00
|
|
|
$(AR) $(ARFLAGS) $@ $(OBJS) $(EXTRA)
|
2010-05-06 07:29:09 +00:00
|
|
|
$(RANLIB) $@
|
1999-10-03 19:36:13 +00:00
|
|
|
|
|
|
|
Activate.o: Activate.c XMenuInt.h XMenu.h X10.h
|
|
|
|
AddPane.o: AddPane.c XMenuInt.h XMenu.h X10.h
|
|
|
|
AddSel.o: AddSel.c XMenuInt.h XMenu.h X10.h
|
|
|
|
ChgPane.o: ChgPane.c XMenuInt.h XMenu.h X10.h
|
|
|
|
ChgSel.o: ChgSel.c XMenuInt.h XMenu.h X10.h
|
|
|
|
Create.o: Create.c XMenuInt.h XMenu.h X10.h
|
|
|
|
DelPane.o: DelPane.c XMenuInt.h XMenu.h X10.h
|
|
|
|
DelSel.o: DelSel.c XMenuInt.h XMenu.h X10.h
|
|
|
|
Destroy.o: Destroy.c XMenuInt.h XMenu.h X10.h
|
|
|
|
Error.o: Error.c XMenuInt.h XMenu.h X10.h
|
|
|
|
EvHand.o: EvHand.c XMenuInt.h XMenu.h X10.h
|
|
|
|
FindPane.o: FindPane.c XMenuInt.h XMenu.h X10.h
|
|
|
|
FindSel.o: FindSel.c XMenuInt.h XMenu.h X10.h
|
|
|
|
InsPane.o: InsPane.c XMenuInt.h XMenu.h X10.h
|
|
|
|
InsSel.o: InsSel.c XMenuInt.h XMenu.h X10.h
|
|
|
|
Internal.o: Internal.c XMenuInt.h XMenu.h X10.h
|
|
|
|
Locate.o: Locate.c XMenuInt.h XMenu.h X10.h
|
|
|
|
Post.o: Post.c XMenuInt.h XMenu.h X10.h
|
|
|
|
Recomp.o: Recomp.c XMenuInt.h XMenu.h X10.h
|
|
|
|
SetAEQ.o: SetAEQ.c XMenuInt.h XMenu.h X10.h
|
|
|
|
SetFrz.o: SetFrz.c XMenuInt.h XMenu.h X10.h
|
|
|
|
SetPane.o: SetPane.c XMenuInt.h XMenu.h X10.h
|
|
|
|
SetSel.o: SetSel.c XMenuInt.h XMenu.h X10.h
|
|
|
|
XDelAssoc.o: XDelAssoc.c X10.h
|
|
|
|
XLookAssoc.o: XLookAssoc.c X10.h
|
|
|
|
XCrAssoc.o: XCrAssoc.c X10.h
|
|
|
|
XDestAssoc.o: XDestAssoc.c X10.h
|
|
|
|
XMakeAssoc.o: XMakeAssoc.c X10.h
|
|
|
|
insque.o: insque.c
|
|
|
|
|
Parallelize clean rules using GNU make features
* Makefile.in: (submake_template): New definition.
(mostlyclean_dirs, clean_dirs, distclean_dirs, maintainer_clean_dirs):
New variables.
(mostlyclean, clean, distclean, bootstrap-clean, maintainer-clean)
(extraclean): Define using each subdirectory as a prequisite.
* lib/Makefile.am (bootstrap-clean):
* doc/emacs/Makefile.in (bootstrap-clean):
* doc/lispintro/Makefile.in (bootstrap-clean):
* doc/lispref/Makefile.in (bootstrap-clean):
* doc/misc/Makefile.in (bootstrap-clean):
* lib-src/Makefile.in (bootstrap-clean):
* lwlib/Makefile.in (bootstrap-clean):
* nextstep/Makefile.in (bootstrap-clean):
* nt/Makefile.in (bootstrap-clean):
* oldXMenu/Makefile.in (bootstrap-clean):
New rules, for symmetry/simplicity.
* lwlib/Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
* oldXMenu/Makefile.in (mostlyclean, clean, distclean, maintainer-clean, tags):
Declare as PHONY.
2014-06-15 00:17:21 +00:00
|
|
|
.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
|
|
|
|
|
|
|
|
mostlyclean:
|
1999-10-03 19:36:13 +00:00
|
|
|
rm -f libXMenu11.a ${OBJS} ${EXTRA}
|
Parallelize clean rules using GNU make features
* Makefile.in: (submake_template): New definition.
(mostlyclean_dirs, clean_dirs, distclean_dirs, maintainer_clean_dirs):
New variables.
(mostlyclean, clean, distclean, bootstrap-clean, maintainer-clean)
(extraclean): Define using each subdirectory as a prequisite.
* lib/Makefile.am (bootstrap-clean):
* doc/emacs/Makefile.in (bootstrap-clean):
* doc/lispintro/Makefile.in (bootstrap-clean):
* doc/lispref/Makefile.in (bootstrap-clean):
* doc/misc/Makefile.in (bootstrap-clean):
* lib-src/Makefile.in (bootstrap-clean):
* lwlib/Makefile.in (bootstrap-clean):
* nextstep/Makefile.in (bootstrap-clean):
* nt/Makefile.in (bootstrap-clean):
* oldXMenu/Makefile.in (bootstrap-clean):
New rules, for symmetry/simplicity.
* lwlib/Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
* oldXMenu/Makefile.in (mostlyclean, clean, distclean, maintainer-clean, tags):
Declare as PHONY.
2014-06-15 00:17:21 +00:00
|
|
|
|
1999-10-03 19:36:13 +00:00
|
|
|
clean: mostlyclean
|
Parallelize clean rules using GNU make features
* Makefile.in: (submake_template): New definition.
(mostlyclean_dirs, clean_dirs, distclean_dirs, maintainer_clean_dirs):
New variables.
(mostlyclean, clean, distclean, bootstrap-clean, maintainer-clean)
(extraclean): Define using each subdirectory as a prequisite.
* lib/Makefile.am (bootstrap-clean):
* doc/emacs/Makefile.in (bootstrap-clean):
* doc/lispintro/Makefile.in (bootstrap-clean):
* doc/lispref/Makefile.in (bootstrap-clean):
* doc/misc/Makefile.in (bootstrap-clean):
* lib-src/Makefile.in (bootstrap-clean):
* lwlib/Makefile.in (bootstrap-clean):
* nextstep/Makefile.in (bootstrap-clean):
* nt/Makefile.in (bootstrap-clean):
* oldXMenu/Makefile.in (bootstrap-clean):
New rules, for symmetry/simplicity.
* lwlib/Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
* oldXMenu/Makefile.in (mostlyclean, clean, distclean, maintainer-clean, tags):
Declare as PHONY.
2014-06-15 00:17:21 +00:00
|
|
|
|
2014-06-15 01:16:35 +00:00
|
|
|
bootstrap-clean maintainer-clean distclean: clean
|
2007-02-27 02:50:33 +00:00
|
|
|
rm -f Makefile
|
1999-10-03 19:36:13 +00:00
|
|
|
|
Parallelize clean rules using GNU make features
* Makefile.in: (submake_template): New definition.
(mostlyclean_dirs, clean_dirs, distclean_dirs, maintainer_clean_dirs):
New variables.
(mostlyclean, clean, distclean, bootstrap-clean, maintainer-clean)
(extraclean): Define using each subdirectory as a prequisite.
* lib/Makefile.am (bootstrap-clean):
* doc/emacs/Makefile.in (bootstrap-clean):
* doc/lispintro/Makefile.in (bootstrap-clean):
* doc/lispref/Makefile.in (bootstrap-clean):
* doc/misc/Makefile.in (bootstrap-clean):
* lib-src/Makefile.in (bootstrap-clean):
* lwlib/Makefile.in (bootstrap-clean):
* nextstep/Makefile.in (bootstrap-clean):
* nt/Makefile.in (bootstrap-clean):
* oldXMenu/Makefile.in (bootstrap-clean):
New rules, for symmetry/simplicity.
* lwlib/Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
* oldXMenu/Makefile.in (mostlyclean, clean, distclean, maintainer-clean, tags):
Declare as PHONY.
2014-06-15 00:17:21 +00:00
|
|
|
.PHONY: tags
|
2013-09-04 06:45:44 +00:00
|
|
|
tags:
|
1999-10-03 19:36:13 +00:00
|
|
|
$(TAGS) -t *.[ch]
|
Parallelize clean rules using GNU make features
* Makefile.in: (submake_template): New definition.
(mostlyclean_dirs, clean_dirs, distclean_dirs, maintainer_clean_dirs):
New variables.
(mostlyclean, clean, distclean, bootstrap-clean, maintainer-clean)
(extraclean): Define using each subdirectory as a prequisite.
* lib/Makefile.am (bootstrap-clean):
* doc/emacs/Makefile.in (bootstrap-clean):
* doc/lispintro/Makefile.in (bootstrap-clean):
* doc/lispref/Makefile.in (bootstrap-clean):
* doc/misc/Makefile.in (bootstrap-clean):
* lib-src/Makefile.in (bootstrap-clean):
* lwlib/Makefile.in (bootstrap-clean):
* nextstep/Makefile.in (bootstrap-clean):
* nt/Makefile.in (bootstrap-clean):
* oldXMenu/Makefile.in (bootstrap-clean):
New rules, for symmetry/simplicity.
* lwlib/Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
* oldXMenu/Makefile.in (mostlyclean, clean, distclean, maintainer-clean, tags):
Declare as PHONY.
2014-06-15 00:17:21 +00:00
|
|
|
|