view modules/zlib/Makefile @ 5907:87e29d93e11b

Sort the symbols in general-slots.h using the Lisp provided. src/ChangeLog addition: 2015-05-08 Aidan Kehoe <kehoea@parhasard.net> * general-slots.h: Sort the symbols in this file using the Lisp provided.
author Aidan Kehoe <kehoea@parhasard.net>
date Fri, 08 May 2015 20:04:42 +0100
parents 4aa8ee813265
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/>.


#
# Sample makefile for a simple Emacs module.
# 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=zlib.c
OBJS=$(SRCS:.c=.o)

.c.o:
	$(CC) $(CFLAGS) -c $<

MODNAME=zlib
MODVER=1.0.4
MODTITLE="ZLIB compression library interface"

all: $(MODNAME).ell

distclean: clean

clean:
	$(RM) $(MODNAME).ell $(OBJS) zlib_i.o zlib_i.c

$(MODNAME).ell: $(OBJS) zlib_i.o
	$(LD) --mod-output=$@ $(OBJS) zlib_i.o

zlib_i.o: zlib_i.c
zlib_i.c: $(SRCS)
	ELLMAKEDOC=../../lib-src/make-docfile $(MKINIT) --mod-output=$@ \
	--mod-name=$(MODNAME) --mod-version=$(MODVER) \
	--mod-title=$(MODTITLE) $(SRCS)