Mercurial > hg > xemacs-beta
comparison modules/base64/Makefile @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children | 11054d720c21 |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
1 # | 1 # |
2 # Sample makefile for a simple Emacs module. | |
2 # This is slightly more complicated than would normally be the case, | 3 # This is slightly more complicated than would normally be the case, |
3 # as this makefile has been tailored to work in the Emacs source tree. | 4 # as this makefile has been tailored to work in the Emacs source tree. |
4 # For samples of how to compile modules outside of the source tree | 5 # For samples of how to compile modules outside of the source tree |
5 # (as would be the case if a user had downloaded a module and wanted | 6 # (as would be the case if a user had downloaded a module and wanted |
6 # to compile it for use within Emacs), see the samples in the sub-directory | 7 # to compile it for use within Emacs), see the samples in the sub-directory |
7 # 'installed'. | 8 # 'installed'. |
8 # | 9 # |
9 | 10 |
10 SHELL=/bin/sh | |
11 RM=rm -f | |
12 CC=../../lib-src/ellcc | 11 CC=../../lib-src/ellcc |
13 CFLAGS=-I. -I../../src | 12 CFLAGS=-I. -I../../src |
14 LD=$(CC) --mode=link | 13 LD=$(CC) --mode=link |
15 MKINIT=$(CC) --mode=init | 14 MKINIT=$(CC) --mode=init |
16 | 15 |
24 MODVER=1.0.0 | 23 MODVER=1.0.0 |
25 MODTITLE="Encode objects in Base 64" | 24 MODTITLE="Encode objects in Base 64" |
26 | 25 |
27 all: $(MODNAME).ell | 26 all: $(MODNAME).ell |
28 | 27 |
29 distclean: clean | |
30 | |
31 clean: | 28 clean: |
32 $(RM) $(MODNAME).ell $(OBJS) base64_i.o base64_i.c | 29 rm -f $(MODNAME).ell $(OBJS) base64_i.o base64_i.c |
33 | 30 |
34 $(MODNAME).ell: $(OBJS) base64_i.o | 31 $(MODNAME).ell: $(OBJS) base64_i.o |
35 $(LD) --mod-output=$@ $(OBJS) base64_i.o | 32 $(LD) --mod-output=$@ $(OBJS) base64_i.o |
36 | 33 |
37 base64_i.o: base64_i.c | 34 base64_i.o: base64_i.c |