annotate modules/zlib/Makefile @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 697ef44129c6
children
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=zlib.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=zlib
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
23 MODVER=1.0.4
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
24 MODTITLE="ZLIB compression library interface"
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
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
28 distclean: clean
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
29
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
30 clean:
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 410
diff changeset
31 rm -f $(MODNAME).ell $(OBJS) zlib_i.o zlib_i.c
388
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) zlib_i.o
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
34 $(LD) --mod-output=$@ $(OBJS) zlib_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 zlib_i.o: zlib_i.c
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents:
diff changeset
37 zlib_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