annotate modules/ldap/Makefile @ 428:3ecd8885ac67 r21-2-22

Import from CVS: tag r21-2-22
author cvs
date Mon, 13 Aug 2007 11:28:15 +0200
parents
children abe6d1db359e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2 # Sample makefile for a simple Emacs module.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3 # This is slightly more complicated than would normally be the case,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4 # as this makefile has been tailored to work in the Emacs source tree.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5 # For samples of how to compile modules outside of the source tree
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6 # (as would be the case if a user had downloaded a module and wanted
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 # to compile it for use within Emacs), see the samples in the sub-directory
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 # 'installed'.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11 CC=../../lib-src/ellcc
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 CFLAGS=-I. -I../../src
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 LD=$(CC) --mode=link
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 MKINIT=$(CC) --mode=init
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16 SRCS=eldap.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 OBJS=$(SRCS:.c=.o)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 .c.o:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20 $(CC) $(CFLAGS) -c $<
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 MODNAME=ldap
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23 MODVER=1.0.0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24 MODTITLE="LDAP Client Interface for XEmacs"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 all: $(MODNAME).ell
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28 distclean: clean
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30 clean:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31 rm -f $(MODNAME).ell $(OBJS) eldap_i.o eldap_i.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 $(MODNAME).ell: $(OBJS) eldap_i.o
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34 $(LD) --mod-output=$@ $(OBJS) eldap_i.o
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36 eldap_i.o: eldap_i.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 eldap_i.c: $(SRCS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38 ELLMAKEDOC=../../lib-src/make-docfile $(MKINIT) --mod-output=$@ \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39 --mod-name=$(MODNAME) --mod-version=$(MODVER) \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40 --mod-title=$(MODTITLE) $(SRCS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41