Mercurial > hg > xemacs-beta
comparison modules/base64/Makefile @ 388:aabb7f5b1c81 r21-2-9
Import from CVS: tag r21-2-9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:09:42 +0200 |
parents | |
children | 74fd4e045ea6 |
comparison
equal
deleted
inserted
replaced
387:f892a9d0bb8d | 388:aabb7f5b1c81 |
---|---|
1 # | |
2 # Sample makefile for a simple Emacs module. | |
3 # This is slightly more complicated than would normally be the case, | |
4 # as this makefile has been tailored to work in the Emacs source tree. | |
5 # For samples of how to compile modules outside of the source tree | |
6 # (as would be the case if a user had downloaded a module and wanted | |
7 # to compile it for use within Emacs), see the samples in the sub-directory | |
8 # 'installed'. | |
9 # | |
10 | |
11 CC=../../lib-src/ellcc | |
12 CFLAGS=-I. -I../../src | |
13 LD=$(CC) --mode=link | |
14 MKINIT=$(CC) --mode=init | |
15 | |
16 SRCS=base64.c | |
17 OBJS=$(SRCS:.c=.o) | |
18 | |
19 .c.o: | |
20 $(CC) $(CFLAGS) -c $< | |
21 | |
22 MODNAME=base64 | |
23 MODVER=1.0.0 | |
24 MODTITLE="Encode objects in Base 64" | |
25 | |
26 all: $(MODNAME).ell | |
27 | |
28 clean: | |
29 rm -f $(MODNAME).ell $(OBJS) base64_i.o base64_i.c | |
30 | |
31 $(MODNAME).ell: $(OBJS) base64_i.o | |
32 $(LD) --mod-output=$@ $(OBJS) base64_i.o | |
33 | |
34 base64_i.o: base64_i.c | |
35 base64_i.c: $(SRCS) | |
36 ELLMAKEDOC=../../lib-src/make-docfile $(MKINIT) --mod-output=$@ \ | |
37 --mod-name=$(MODNAME) --mod-version=$(MODVER) \ | |
38 --mod-title=$(MODTITLE) $(SRCS) | |
39 |