annotate modules/zlib/Makefile @ 410:de805c49cfc1 r21-2-35

Import from CVS: tag r21-2-35
author cvs
date Mon, 13 Aug 2007 11:19:21 +0200
parents 74fd4e045ea6
children 697ef44129c6
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
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
11 SHELL=/bin/sh
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
12 RM=rm -f
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
13 CC=../../lib-src/ellcc
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
14 CFLAGS=-I. -I../../src
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
15 LD=$(CC) --mode=link
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
16 MKINIT=$(CC) --mode=init
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
17
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
18 SRCS=zlib.c
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
19 OBJS=$(SRCS:.c=.o)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
20
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
21 .c.o:
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
22 $(CC) $(CFLAGS) -c $<
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
23
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
24 MODNAME=zlib
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
25 MODVER=1.0.4
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
26 MODTITLE="ZLIB compression library interface"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
27
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
28 all: $(MODNAME).ell
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
29
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
30 distclean: clean
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
31
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
32 clean:
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
33 $(RM) $(MODNAME).ell $(OBJS) zlib_i.o zlib_i.c
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
34
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
35 $(MODNAME).ell: $(OBJS) zlib_i.o
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
36 $(LD) --mod-output=$@ $(OBJS) zlib_i.o
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
37
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
38 zlib_i.o: zlib_i.c
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
39 zlib_i.c: $(SRCS)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
40 ELLMAKEDOC=../../lib-src/make-docfile $(MKINIT) --mod-output=$@ \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
41 --mod-name=$(MODNAME) --mod-version=$(MODVER) \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
42 --mod-title=$(MODTITLE) $(SRCS)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
43