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
11 CC=../../lib-src/ellcc
12 CFLAGS=-I. -I../../src
14 MKINIT=$(CC) --mode=init
24 MODTITLE="LDAP Client Interface for XEmacs"
29 rm -f $(MODNAME).ell $(OBJS) eldap_i.o eldap_i.c
31 $(MODNAME).ell: $(OBJS) eldap_i.o
32 $(LD) --mod-output=$@ $(OBJS) eldap_i.o
36 ELLMAKEDOC=../../lib-src/make-docfile $(MKINIT) --mod-output=$@ \
37 --mod-name=$(MODNAME) --mod-version=$(MODVER) \
38 --mod-title=$(MODTITLE) $(SRCS)