Mercurial > hg > xemacs-beta
view modules/base64/Makefile @ 5512:4aa8ee813265
Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
use it in install targets. See xemacs-patches message
<BANLkTinRnwk9qsCfBj_xkcyf7H4sH9fn7A@mail.gmail.com>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Wed, 25 May 2011 09:15:20 -0600 |
parents | b44930391f7d |
children |
line wrap: on
line source
# Copyright (C) 1998, 1999 William Perry. # This file is part of XEmacs. # XEmacs is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # XEmacs is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # You should have received a copy of the GNU General Public License # along with XEmacs. If not, see <http://www.gnu.org/licenses/>. # # This is slightly more complicated than would normally be the case, # as this makefile has been tailored to work in the Emacs source tree. # For samples of how to compile modules outside of the source tree # (as would be the case if a user had downloaded a module and wanted # to compile it for use within Emacs), see the samples in the sub-directory # 'installed'. # DESTDIR= SHELL=/bin/sh RM=rm -f CC=../../lib-src/ellcc CFLAGS=-I. -I../../src LD=$(CC) --mode=link MKINIT=$(CC) --mode=init SRCS=base64.c OBJS=$(SRCS:.c=.o) .c.o: $(CC) $(CFLAGS) -c $< MODNAME=base64 MODVER=1.0.0 MODTITLE="Encode objects in Base 64" all: $(MODNAME).ell distclean: clean clean: $(RM) $(MODNAME).ell $(OBJS) base64_i.o base64_i.c $(MODNAME).ell: $(OBJS) base64_i.o $(LD) --mod-output=$@ $(OBJS) base64_i.o base64_i.o: base64_i.c base64_i.c: $(SRCS) ELLMAKEDOC=../../lib-src/make-docfile $(MKINIT) --mod-output=$@ \ --mod-name=$(MODNAME) --mod-version=$(MODVER) \ --mod-title=$(MODTITLE) $(SRCS)