Mercurial > hg > xemacs-beta
annotate modules/common/Makefile.common @ 1111:184461bc8de4
[xemacs-hg @ 2002-11-18 06:52:23 by ben]
warning fixes, etc.
* s/cygwin32.h:
-fvtable-thunks is obsolete in GCC 3 and generates warnings.
* s/mingw32.h:
* s/windowsnt.h:
Comment fixes.
* emodules.h:
Fix warnings from redefining symbols.
* eval.c:
Fix C++ errors -- no automatic casting between function pointers
and void *, function declarations inside of functions not allowed.
* event-Xt.c (emacs_Xt_enqueue_focus_event):
Warning fixes.
* fileio.c (Ffile_truename):
Warning fixes.
Use LOCAL_TO_WIN32_FILE_FORMAT rather than duplicating it.
* glyphs-x.c:
Fix style.
* intl-auto-encap-win32.c:
* intl-auto-encap-win32.h:
* intl-encap-win32.c:
* intl-encap-win32.c (qxeRegConnectRegistry):
* syswindows.h (RegConnectRegistry):
DdeCreateStringHandle needs to be manual due to new Cygwin bug.
* intl-win32.c:
wcslen/wcscmp don't seem to exist under G++ 3, Cygwin.
* lisp.h:
* lisp-union.h:
* lisp-disunion.h:
* process-unix.c (unix_send_process):
Ugh, C needs volatile and C++ must not have volatile. Remove
previous volatile hacks, which don't seem to be working any more.
* sheap.c (STATIC_HEAP_SLOP):
Try to get a working Cygwin build with old unexec.
* sheap.c (more_static_core):
No NL's in literals allowed.
* symbols.c (Fset):
Fix C++ errors.
* syswindows.h:
Fix Cygwin complaints now that some missing structs have been added.
aclocal.m4: Disable shared library modules under Cygwin for the moment,
since we need some more tricky coding done and I don't have the
time right now.
configure.in, configure.usage:
code-files.el, loadhist.el: Fix warnings.
package-get.el: Fix warnings.
NOTE: This was already fixed awhile ago, but reverted by Steve Y.
Please be careful.
postgresql/Makefile.in.in: Removed.
Move common stuff into modues/common/Makefile.common. (Also
add extraclean target and a couple of other fixes in that file.)
postgresql/configure.ac: Extract out common configure stuff into
modules/common/configure-{pre,post}.ac.
postgresql/postgresql.c: Fix warning.
ldap/Makefile.in.in: Removed.
Move common stuff into modues/common/Makefile.common. (Also
add extraclean target and a couple of other fixes in that file.)
ldap/configure.ac: Extract out common configure stuff into
modules/common/configure-{pre,post}.ac.
common/Makefile.common: Common stuff is here.
author | ben |
---|---|
date | Mon, 18 Nov 2002 06:53:08 +0000 |
parents | d87493ecc64b |
children | a0845169de0a |
rev | line source |
---|---|
1083 | 1 ## Common Makefile section for modules in XEmacs. |
2 ## Copyright (C) 2002 Jerry James. | |
3 | |
4 ## This file is part of XEmacs. | |
5 | |
6 ## XEmacs is free software; you can redistribute it and/or modify it | |
7 ## under the terms of the GNU General Public License as published by the | |
8 ## Free Software Foundation; either version 2, or (at your option) any | |
9 ## later version. | |
10 | |
11 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
12 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 ## for more details. | |
15 | |
16 ## You should have received a copy of the GNU General Public License | |
17 ## along with XEmacs; see the file COPYING. If not, write to | |
18 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 ## Boston, MA 02111-1307, USA. | |
20 | |
21 ## Synched up with: Not in FSF. | |
22 | |
23 ## This is more complicated than would normally be the case, as this makefile | |
24 ## has been tailored to work both inside and independently of the XEmacs | |
25 ## source tree, and to support both module and non-module building inside the | |
26 ## source tree. | |
27 | |
1111 | 28 ## Note: This will be appended to the individual module Makefiles by configure. |
29 | |
1083 | 30 SRC_SRCS=$(SRCS:%=$(srcdir)/%) |
31 OBJS=$(SRCS:.c=.o) | |
32 | |
33 SHELL=/bin/sh | |
34 RM=rm -f | |
35 PROGNAME=@PROGNAME@ | |
36 CFLAGS=@CFLAGS@ | |
37 INSTALL=@INSTALL@ | |
38 version=@version@ | |
39 prefix=@prefix@ | |
40 exec_prefix=@exec_prefix@ | |
41 libdir=@libdir@ | |
42 instvardir=@instvardir@ | |
43 configuration=@configuration@ | |
44 moduledir=@moduledir@ | |
45 with_modules=@with_modules@ | |
46 | |
47 srcdir=@srcdir@ | |
48 VPATH=@srcdir@ | |
49 | |
50 CC=@MOD_CC@ | |
51 MODARCHDIR=@MODARCHDIR@ | |
52 MAKE_DOCFILE=@MAKE_DOCFILE@ | |
53 MODCFLAGS=@MODCFLAGS@ | |
54 INSTALLPATH=@INSTALLPATH@ | |
55 INSTALL_PROGRAM=@MOD_INSTALL_PROGRAM@ | |
56 OBJECT_TO_BUILD=@OBJECT_TO_BUILD@ | |
57 | |
58 .PHONY: clean distclean install | |
59 all: $(OBJECT_TO_BUILD) | |
60 | |
61 .c.o: | |
62 $(CC) $(MODCFLAGS) -c $< | |
63 | |
64 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o | |
65 $(CC) --mode=link --mode=verbose --mod-output=$@ $^ $(LDFLAGS) | |
66 | |
67 $(MODNAME)_i.c: $(SRCS) | |
68 ELLMAKEDOC=$(MAKE_DOCFILE) $(CC) --mode=init --mod-output=$@ \ | |
69 --mod-name=$(MODNAME) --mod-version=$(MODVER) \ | |
70 --mod-title=$(MODTITLE) $(SRC_SRCS) | |
71 | |
72 clean: | |
73 $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~ | |
74 | |
75 distclean: clean | |
76 $(RM) Makefile config.* configure | |
77 | |
78 extraclean: distclean | |
79 | |
80 install: $(OBJECT_TO_BUILD) | |
81 $(INSTALL_PROGRAM) $< $(INSTALLPATH) |