Mercurial > hg > xemacs-beta
comparison modules/sample/internal/Makefile.in.in @ 996:25e260cb7994
[xemacs-hg @ 2002-09-10 15:27:02 by james]
Enable unloading of dynamic modules. Create the first two internal XEmacs
modules: LDAP and postgreSQL. Update the sample directory to contain a
sample internal XEmacs module and a sample external XEmacs module. Improve
support for autoloading modules. Make internal module code compile into the
XEmacs binary if XEmacs is configured without module support. Make the
internal module directories self-contained so that they can be distributed
separately from XEmacs.
author | james |
---|---|
date | Tue, 10 Sep 2002 15:27:39 +0000 |
parents | |
children | 52dd7cedee30 |
comparison
equal
deleted
inserted
replaced
995:4575a219af58 | 996:25e260cb7994 |
---|---|
1 ## Makefile for the sample module 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 synched with 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 | |
28 ### Specialize this part for your module | |
29 MODNAME=sample | |
30 MODVER=0.0.1 | |
31 MODTITLE="Sample module for XEmacs" | |
32 LDFLAGS=@LDFLAGS@ @sample_libs@ | |
33 SRCS=sample.c | |
34 | |
35 ### You should not need to modify anything below this line | |
36 SRC_SRCS=$(SRCS:%=$(srcdir)/%) | |
37 OBJS=$(SRCS:.c=.o) | |
38 | |
39 SHELL=/bin/sh | |
40 RM=rm -f | |
41 PROGNAME=@PROGNAME@ | |
42 CFLAGS=@CFLAGS@ | |
43 INSTALL=@INSTALL@ | |
44 version=@version@ | |
45 prefix=@prefix@ | |
46 exec_prefix=@exec_prefix@ | |
47 libdir=@libdir@ | |
48 instvardir=@instvardir@ | |
49 configuration=@configuration@ | |
50 moduledir=@moduledir@ | |
51 with_modules=@with_modules@ | |
52 | |
53 srcdir=@srcdir@ | |
54 VPATH=@srcdir@ | |
55 | |
56 CC=@MOD_CC@ | |
57 MODARCHDIR=@MODARCHDIR@ | |
58 MAKE_DOCFILE=@MAKE_DOCFILE@ | |
59 MODCFLAGS=@MODCFLAGS@ | |
60 INSTALLPATH=@INSTALLPATH@ | |
61 INSTALL_PROGRAM=@MOD_INSTALL_PROGRAM@ | |
62 OBJECT_TO_BUILD=@OBJECT_TO_BUILD@ | |
63 | |
64 .PHONY: clean distclean install | |
65 all: $(OBJECT_TO_BUILD) | |
66 | |
67 .c.o: | |
68 $(CC) $(MODCFLAGS) -c $< | |
69 | |
70 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o | |
71 $(CC) --mode=link --mod-output=$@ $^ $(LDFLAGS) | |
72 | |
73 $(MODNAME)_i.c: $(SRCS) | |
74 ELLMAKEDOC=$(MAKE_DOCFILE) $(CC) --mode=init --mod-output=$@ \ | |
75 --mod-name=$(MODNAME) --mod-version=$(MODVER) \ | |
76 --mod-title=$(MODTITLE) $(SRC_SRCS) | |
77 | |
78 clean: | |
79 $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~ | |
80 | |
81 distclean: clean | |
82 $(RM) Makefile config.* configure | |
83 | |
84 install: $(OBJECT_TO_BUILD) | |
85 $(INSTALL_PROGRAM) $< $(INSTALLPATH) |