annotate modules/base64/Makefile @ 398:74fd4e045ea6 r21-2-29

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