Mercurial > hg > xemacs-beta
annotate modules/common/Makefile.common @ 5471:00e79bbbe48f
Merge with trunk.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Mon, 14 Feb 2011 22:43:46 +0100 |
parents | 308d34e9f07d |
children | 4aa8ee813265 |
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 | |
1083 | 32 SHELL=/bin/sh |
33 RM=rm -f | |
34 PROGNAME=@PROGNAME@ | |
2377 | 35 CFLAGS=@XE_CFLAGS@ |
1083 | 36 INSTALL=@INSTALL@ |
37 version=@version@ | |
38 prefix=@prefix@ | |
39 exec_prefix=@exec_prefix@ | |
40 libdir=@libdir@ | |
41 instvardir=@instvardir@ | |
42 configuration=@configuration@ | |
43 moduledir=@moduledir@ | |
44 with_modules=@with_modules@ | |
45 | |
46 srcdir=@srcdir@ | |
47 VPATH=@srcdir@ | |
48 | |
1522 | 49 SRC_SRCS=$(SRCS:%=@srcdir@/%) |
1490 | 50 OBJS=$(SRCS:.c=.o) |
51 | |
1252 | 52 MODCC=@MOD_CC@ |
1083 | 53 MODARCHDIR=@MODARCHDIR@ |
54 MAKE_DOCFILE=@MAKE_DOCFILE@ | |
55 MODCFLAGS=@MODCFLAGS@ | |
56 INSTALLPATH=@INSTALLPATH@ | |
57 INSTALL_PROGRAM=@MOD_INSTALL_PROGRAM@ | |
58 OBJECT_TO_BUILD=@OBJECT_TO_BUILD@ | |
1650 | 59 LIBSTDCPP=@LIBSTDCPP@ |
4879
c356806cc933
fix compile errors when --with-msw=no
Ben Wing <ben@xemacs.org>
parents:
3083
diff
changeset
|
60 #ifdef WIN32_ANY |
1632 | 61 IMPORT_LIB=../../src/xemacs-import.a |
62 #endif | |
1083 | 63 |
3062 | 64 .PHONY: install |
1083 | 65 all: $(OBJECT_TO_BUILD) |
66 | |
67 .c.o: | |
1252 | 68 $(MODCC) $(MODCFLAGS) -c $< |
1083 | 69 |
1632 | 70 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB) |
1489 | 71 $(MODCC) --mode=link --mode=verbose --mod-output=$@ \ |
1650 | 72 $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB) $(LDFLAGS) $(LIBSTDCPP) |
1083 | 73 |
74 $(MODNAME)_i.c: $(SRCS) | |
1252 | 75 ELLMAKEDOC=$(MAKE_DOCFILE) $(MODCC) --mode=init --mod-output=$@ \ |
1083 | 76 --mod-name=$(MODNAME) --mod-version=$(MODVER) \ |
77 --mod-title=$(MODTITLE) $(SRC_SRCS) | |
78 | |
3062 | 79 .PHONY: mostlyclean clean distclean realclean extraclean |
80 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig | |
81 mostlyclean: | |
3083 | 82 -$(RM) $(OBJS) $(MODNAME)_i.* core |
3062 | 83 clean: mostlyclean |
3083 | 84 -$(RM) $(MODNAME).ell |
3062 | 85 distclean-noconfig: clean |
3083 | 86 -$(RM) config.* TAGS |
3062 | 87 ## This is used in making a distribution. |
88 ## Do not use it on development directories! | |
89 distclean: distclean-noconfig | |
3083 | 90 -$(RM) GNUmakefile Makefile Makefile.in configure |
3062 | 91 realclean-noconfig: distclean-noconfig |
92 realclean: distclean | |
93 extraclean-noconfig: realclean-noconfig | |
3083 | 94 -$(RM) *~ \#* |
3062 | 95 extraclean: realclean |
3083 | 96 -$(RM) *~ \#* |
1083 | 97 |
98 install: $(OBJECT_TO_BUILD) | |
99 $(INSTALL_PROGRAM) $< $(INSTALLPATH) | |
3062 | 100 |
101 ## | |
102 ## Local Variables: | |
103 ## mode: makefile | |
104 ## End: | |
105 ## |