comparison modules/sample/external/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 not part of XEmacs.
5
6 ### Specialize this part for your module
7 MODNAME=sample
8 MODVER=0.0.1
9 MODTITLE="Sample module for XEmacs"
10 SRCS=sample.c
11
12 ### You should not need to modify anything below this line
13 SRC_SRCS=$(SRCS:%=$(srcdir)/%)
14 OBJS=$(SRCS:.c=.o)
15
16 SHELL=/bin/sh
17 RM=rm -f
18 CFLAGS=@CFLAGS@
19 LDFLAGS=@LDFLAGS@
20
21 srcdir=@srcdir@
22 VPATH=@srcdir@
23
24 ELLCC=@ELLCC@
25 MODARCHDIR=$(shell @ELLCC@ --mod-archdir)
26 INSTALLPATH=$(shell @ELLCC@ --mod-site-location)
27 INSTALL=@INSTALL@
28 INSTALL_PROGRAM=@INSTALL_PROGRAM@
29
30 .PHONY: clean distclean install
31 all: $(MODNAME).ell
32
33 .c.o:
34 $(ELLCC) $(CFLAGS) --mode=compile --mod-output=$@ \
35 -I$(MODARCHDIR)/include -c $<
36
37 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o
38 $(ELLCC) --mode=link --mod-output=$@ $^ $(LDFLAGS)
39
40 $(MODNAME)_i.c: $(SRCS)
41 ELLMAKEDOC=$(MODARCHDIR)/make-docfile $(ELLCC) --mode=init \
42 --mod-output=$@ --mod-name=$(MODNAME) --mod-version=$(MODVER) \
43 --mod-title=$(MODTITLE) $(SRC_SRCS)
44
45 clean:
46 $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~
47
48 distclean: clean
49 $(RM) Makefile config.* configure
50
51 install: $(MODNAME).ell
52 $(INSTALL_PROGRAM) $< $(INSTALLPATH)