Mercurial > hg > xemacs-beta
comparison modules/zlib/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=zlib.c | |
| 17 OBJS=$(SRCS:.c=.o) | |
| 18 | |
| 19 .c.o: | |
| 20 $(CC) $(CFLAGS) -c $< | |
| 21 | |
| 22 MODNAME=zlib | |
| 23 MODVER=1.0.4 | |
| 24 MODTITLE="ZLIB compression library interface" | |
| 25 | |
| 26 all: $(MODNAME).ell | |
| 27 | |
| 28 clean: | |
| 29 rm -f $(MODNAME).ell $(OBJS) zlib_i.o zlib_i.c | |
| 30 | |
| 31 $(MODNAME).ell: $(OBJS) zlib_i.o | |
| 32 $(LD) --mod-output=$@ $(OBJS) zlib_i.o | |
| 33 | |
| 34 zlib_i.o: zlib_i.c | |
| 35 zlib_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 |
