comparison modules/base64/Makefile @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 3ecd8885ac67
children b44930391f7d
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
1 # 1 #
2 # Sample makefile for a simple Emacs module.
3 # This is slightly more complicated than would normally be the case, 2 # 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. 3 # 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 4 # 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 5 # (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 6 # to compile it for use within Emacs), see the samples in the sub-directory
8 # 'installed'. 7 # 'installed'.
9 # 8 #
10 9
10 SHELL=/bin/sh
11 RM=rm -f
11 CC=../../lib-src/ellcc 12 CC=../../lib-src/ellcc
12 CFLAGS=-I. -I../../src 13 CFLAGS=-I. -I../../src
13 LD=$(CC) --mode=link 14 LD=$(CC) --mode=link
14 MKINIT=$(CC) --mode=init 15 MKINIT=$(CC) --mode=init
15 16
26 all: $(MODNAME).ell 27 all: $(MODNAME).ell
27 28
28 distclean: clean 29 distclean: clean
29 30
30 clean: 31 clean:
31 rm -f $(MODNAME).ell $(OBJS) base64_i.o base64_i.c 32 $(RM) $(MODNAME).ell $(OBJS) base64_i.o base64_i.c
32 33
33 $(MODNAME).ell: $(OBJS) base64_i.o 34 $(MODNAME).ell: $(OBJS) base64_i.o
34 $(LD) --mod-output=$@ $(OBJS) base64_i.o 35 $(LD) --mod-output=$@ $(OBJS) base64_i.o
35 36
36 base64_i.o: base64_i.c 37 base64_i.o: base64_i.c