Mercurial > hg > xemacs-beta
annotate modules/sample/external/Makefile.in.in @ 4798:ea7a6c12df45
Change /usr/lib/X11 paths to /usr/share/X11. See xemacs-patches message with
ID <870180fe0912220954ma15f496va367b29cf9656f35@mail.gmail.com>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Mon, 04 Jan 2010 16:48:55 -0700 |
parents | dce479915b74 |
children | dd9541c73e70 |
rev | line source |
---|---|
996 | 1 ## Makefile for the sample module in XEmacs. |
2 ## Copyright (C) 2002 Jerry James. | |
4737
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
3 ## |
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
4 ## This sample Makefile is free; you can redistribute it and/or modify it |
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
5 ## under the terms of the GNU General Public License as published by the |
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
6 ## Free Software Foundation; either version 2, or (at your option) any |
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
7 ## later version. |
996 | 8 |
9 ## This file is not part of XEmacs. | |
10 | |
11 ### Specialize this part for your module | |
12 MODNAME=sample | |
13 MODVER=0.0.1 | |
14 MODTITLE="Sample module for XEmacs" | |
15 SRCS=sample.c | |
16 | |
17 ### You should not need to modify anything below this line | |
18 SHELL=/bin/sh | |
19 RM=rm -f | |
20 CFLAGS=@CFLAGS@ | |
21 LDFLAGS=@LDFLAGS@ | |
22 | |
23 srcdir=@srcdir@ | |
24 VPATH=@srcdir@ | |
25 | |
1490 | 26 SRC_SRCS=$(SRCS:%=$(srcdir)/%) |
27 OBJS=$(SRCS:.c=.o) | |
28 | |
996 | 29 ELLCC=@ELLCC@ |
30 MODARCHDIR=$(shell @ELLCC@ --mod-archdir) | |
31 INSTALLPATH=$(shell @ELLCC@ --mod-site-location) | |
32 INSTALL=@INSTALL@ | |
33 INSTALL_PROGRAM=@INSTALL_PROGRAM@ | |
34 | |
35 .PHONY: clean distclean install | |
36 all: $(MODNAME).ell | |
37 | |
38 .c.o: | |
39 $(ELLCC) $(CFLAGS) --mode=compile --mod-output=$@ \ | |
40 -I$(MODARCHDIR)/include -c $< | |
41 | |
42 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o | |
1489 | 43 $(ELLCC) --mode=link --mod-output=$@ $(OBJS) $(MODNAME)_i.o $(LDFLAGS) |
996 | 44 |
45 $(MODNAME)_i.c: $(SRCS) | |
46 ELLMAKEDOC=$(MODARCHDIR)/make-docfile $(ELLCC) --mode=init \ | |
47 --mod-output=$@ --mod-name=$(MODNAME) --mod-version=$(MODVER) \ | |
48 --mod-title=$(MODTITLE) $(SRC_SRCS) | |
49 | |
50 clean: | |
51 $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~ | |
52 | |
53 distclean: clean | |
54 $(RM) Makefile config.* configure | |
55 | |
56 install: $(MODNAME).ell | |
57 $(INSTALL_PROGRAM) $< $(INSTALLPATH) |