Mercurial > hg > xemacs-beta
view modules/sample/external/Makefile.in.in @ 4843:715b15990d0a
add more foo_checking_assert macros
lisp.h: Add structure_checking_assert(), gc_checking_assert(), etc. for
all types of error-checking. Also FOO_checking_assert_with_message()
and inline_FOO_checking_assert() -- the latter for use in an inline
function where you want the calling function's line/file to be reported
(requires some conspiracy with the function itself).
Add disabled_assert(), disabled_assert_at_line(),
disabled_assert_with_message(), for what to do when an assert is
disabled. Formerly, we used to do ((void) 0), but now we do
((void) x), so the variable appears used and any side effects of the
expression do get done. In Unicode-internal, the standard assert()
uses this, but not yet in this workspace.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Wed, 13 Jan 2010 03:01:43 -0600 |
parents | dce479915b74 |
children | dd9541c73e70 |
line wrap: on
line source
## Makefile for the sample module in XEmacs. ## Copyright (C) 2002 Jerry James. ## ## This sample Makefile is free; 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 2, or (at your option) any ## later version. ## This file is not part of XEmacs. ### Specialize this part for your module MODNAME=sample MODVER=0.0.1 MODTITLE="Sample module for XEmacs" SRCS=sample.c ### You should not need to modify anything below this line SHELL=/bin/sh RM=rm -f CFLAGS=@CFLAGS@ LDFLAGS=@LDFLAGS@ srcdir=@srcdir@ VPATH=@srcdir@ SRC_SRCS=$(SRCS:%=$(srcdir)/%) OBJS=$(SRCS:.c=.o) ELLCC=@ELLCC@ MODARCHDIR=$(shell @ELLCC@ --mod-archdir) INSTALLPATH=$(shell @ELLCC@ --mod-site-location) INSTALL=@INSTALL@ INSTALL_PROGRAM=@INSTALL_PROGRAM@ .PHONY: clean distclean install all: $(MODNAME).ell .c.o: $(ELLCC) $(CFLAGS) --mode=compile --mod-output=$@ \ -I$(MODARCHDIR)/include -c $< $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o $(ELLCC) --mode=link --mod-output=$@ $(OBJS) $(MODNAME)_i.o $(LDFLAGS) $(MODNAME)_i.c: $(SRCS) ELLMAKEDOC=$(MODARCHDIR)/make-docfile $(ELLCC) --mode=init \ --mod-output=$@ --mod-name=$(MODNAME) --mod-version=$(MODVER) \ --mod-title=$(MODTITLE) $(SRC_SRCS) clean: $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~ distclean: clean $(RM) Makefile config.* configure install: $(MODNAME).ell $(INSTALL_PROGRAM) $< $(INSTALLPATH)