Mercurial > hg > xemacs-beta
annotate modules/common/Makefile.common @ 5859:5423bb35a956
Correct .gdbinit, non-NEW_GC builds.
src/ChangeLog additions:
2015-03-14 Aidan Kehoe <kehoea@parhasard.net>
* .gdbinit.in.in (Lisp): lrecord_type_lcrecord_list is specific to
non-NEW_GC, lrecord_type_string_direct_data and
lrecord_type_string_indirect_data are specific to NEW_GC, correct
this in this file.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Sat, 14 Mar 2015 00:42:46 +0000 |
| parents | 080c1762f7a1 |
| children |
| rev | line source |
|---|---|
| 1083 | 1 ## Common Makefile section for modules in XEmacs. |
| 2 ## Copyright (C) 2002 Jerry James. | |
| 3062 | 3 ## Copyright (C) 2005 Ben Wing. |
| 1083 | 4 |
| 5 ## This file is part of XEmacs. | |
| 6 | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4879
diff
changeset
|
7 ## XEmacs is free software: you can redistribute it and/or modify it |
| 1083 | 8 ## under the terms of the GNU General Public License as published by the |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4879
diff
changeset
|
9 ## Free Software Foundation, either version 3 of the License, or (at your |
|
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4879
diff
changeset
|
10 ## option) any later version. |
| 1083 | 11 |
| 12 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
| 13 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 14 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
| 15 ## for more details. | |
| 16 | |
| 17 ## You should have received a copy of the GNU General Public License | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4879
diff
changeset
|
18 ## along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
| 1083 | 19 |
| 20 ## Synched up with: Not in FSF. | |
| 21 | |
| 22 ## This is more complicated than would normally be the case, as this makefile | |
| 23 ## has been tailored to work both inside and independently of the XEmacs | |
| 24 ## source tree, and to support both module and non-module building inside the | |
| 25 ## source tree. | |
| 26 | |
| 1111 | 27 ## Note: This will be appended to the individual module Makefiles by configure. |
| 28 | |
| 1632 | 29 #define NOT_C_CODE |
| 30 #include "../../src/config.h" | |
| 31 | |
|
5512
4aa8ee813265
Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents:
5402
diff
changeset
|
32 DESTDIR= |
|
4aa8ee813265
Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents:
5402
diff
changeset
|
33 |
| 1083 | 34 SHELL=/bin/sh |
| 35 RM=rm -f | |
| 36 PROGNAME=@PROGNAME@ | |
| 2377 | 37 CFLAGS=@XE_CFLAGS@ |
|
5807
080c1762f7a1
Use CPPFLAGS when building modules. See xemacs-patches message
Jerry James <james@xemacs.org>
parents:
5690
diff
changeset
|
38 CPPFLAGS=@CPPFLAGS@ |
| 1083 | 39 INSTALL=@INSTALL@ |
| 40 version=@version@ | |
| 41 prefix=@prefix@ | |
| 42 exec_prefix=@exec_prefix@ | |
| 43 libdir=@libdir@ | |
| 44 instvardir=@instvardir@ | |
| 45 configuration=@configuration@ | |
| 46 moduledir=@moduledir@ | |
| 47 with_modules=@with_modules@ | |
| 48 | |
| 49 srcdir=@srcdir@ | |
| 50 VPATH=@srcdir@ | |
| 51 | |
| 1522 | 52 SRC_SRCS=$(SRCS:%=@srcdir@/%) |
| 1490 | 53 OBJS=$(SRCS:.c=.o) |
| 54 | |
| 1252 | 55 MODCC=@MOD_CC@ |
| 1083 | 56 MODARCHDIR=@MODARCHDIR@ |
| 57 MAKE_DOCFILE=@MAKE_DOCFILE@ | |
| 58 MODCFLAGS=@MODCFLAGS@ | |
| 59 INSTALLPATH=@INSTALLPATH@ | |
| 60 INSTALL_PROGRAM=@MOD_INSTALL_PROGRAM@ | |
| 61 OBJECT_TO_BUILD=@OBJECT_TO_BUILD@ | |
| 1650 | 62 LIBSTDCPP=@LIBSTDCPP@ |
|
4879
c356806cc933
fix compile errors when --with-msw=no
Ben Wing <ben@xemacs.org>
parents:
3083
diff
changeset
|
63 #ifdef WIN32_ANY |
| 1632 | 64 IMPORT_LIB=../../src/xemacs-import.a |
| 65 #endif | |
| 1083 | 66 |
| 3062 | 67 .PHONY: install |
| 1083 | 68 all: $(OBJECT_TO_BUILD) |
| 69 | |
| 70 .c.o: | |
|
5807
080c1762f7a1
Use CPPFLAGS when building modules. See xemacs-patches message
Jerry James <james@xemacs.org>
parents:
5690
diff
changeset
|
71 $(MODCC) $(MODCFLAGS) $(CPPFLAGS) -c $< |
| 1083 | 72 |
| 1632 | 73 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB) |
| 1489 | 74 $(MODCC) --mode=link --mode=verbose --mod-output=$@ \ |
| 1650 | 75 $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB) $(LDFLAGS) $(LIBSTDCPP) |
| 1083 | 76 |
| 77 $(MODNAME)_i.c: $(SRCS) | |
| 1252 | 78 ELLMAKEDOC=$(MAKE_DOCFILE) $(MODCC) --mode=init --mod-output=$@ \ |
| 1083 | 79 --mod-name=$(MODNAME) --mod-version=$(MODVER) \ |
| 80 --mod-title=$(MODTITLE) $(SRC_SRCS) | |
| 81 | |
| 3062 | 82 .PHONY: mostlyclean clean distclean realclean extraclean |
| 83 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig | |
| 84 mostlyclean: | |
| 3083 | 85 -$(RM) $(OBJS) $(MODNAME)_i.* core |
| 3062 | 86 clean: mostlyclean |
| 3083 | 87 -$(RM) $(MODNAME).ell |
| 3062 | 88 distclean-noconfig: clean |
| 3083 | 89 -$(RM) config.* TAGS |
| 3062 | 90 ## This is used in making a distribution. |
| 91 ## Do not use it on development directories! | |
| 92 distclean: distclean-noconfig | |
|
5690
7b5f88e5b456
Don't delete configure in modules on distclean
Mats Lidell <mats.lidell@cag.se>
parents:
5512
diff
changeset
|
93 -$(RM) GNUmakefile Makefile Makefile.in |
| 3062 | 94 realclean-noconfig: distclean-noconfig |
| 95 realclean: distclean | |
| 96 extraclean-noconfig: realclean-noconfig | |
| 3083 | 97 -$(RM) *~ \#* |
| 3062 | 98 extraclean: realclean |
| 3083 | 99 -$(RM) *~ \#* |
| 1083 | 100 |
| 101 install: $(OBJECT_TO_BUILD) | |
|
5512
4aa8ee813265
Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents:
5402
diff
changeset
|
102 $(INSTALL_PROGRAM) $< $(DESTDIR)$(INSTALLPATH) |
| 3062 | 103 |
| 104 ## | |
| 105 ## Local Variables: | |
| 106 ## mode: makefile | |
| 107 ## End: | |
| 108 ## |
