Mercurial > hg > xemacs-beta
annotate modules/sample/external/Makefile.in.in @ 5940:c608d4b0b75e cygwin64 tip
rescue lost branch from 64bit.backup
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Thu, 16 Dec 2021 18:48:58 +0000 |
parents | 4aa8ee813265 |
children |
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 |
5417
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
4737
diff
changeset
|
6 ## Free Software Foundation, either version 3 of the License, or (at your |
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
4737
diff
changeset
|
7 ## option) any 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 | |
5512
4aa8ee813265
Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents:
5417
diff
changeset
|
18 DESTDIR= |
996 | 19 SHELL=/bin/sh |
20 RM=rm -f | |
21 CFLAGS=@CFLAGS@ | |
22 LDFLAGS=@LDFLAGS@ | |
23 | |
24 srcdir=@srcdir@ | |
25 VPATH=@srcdir@ | |
26 | |
1490 | 27 SRC_SRCS=$(SRCS:%=$(srcdir)/%) |
28 OBJS=$(SRCS:.c=.o) | |
29 | |
996 | 30 ELLCC=@ELLCC@ |
31 MODARCHDIR=$(shell @ELLCC@ --mod-archdir) | |
32 INSTALLPATH=$(shell @ELLCC@ --mod-site-location) | |
33 INSTALL=@INSTALL@ | |
34 INSTALL_PROGRAM=@INSTALL_PROGRAM@ | |
35 | |
36 .PHONY: clean distclean install | |
37 all: $(MODNAME).ell | |
38 | |
39 .c.o: | |
40 $(ELLCC) $(CFLAGS) --mode=compile --mod-output=$@ \ | |
41 -I$(MODARCHDIR)/include -c $< | |
42 | |
43 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o | |
1489 | 44 $(ELLCC) --mode=link --mod-output=$@ $(OBJS) $(MODNAME)_i.o $(LDFLAGS) |
996 | 45 |
46 $(MODNAME)_i.c: $(SRCS) | |
47 ELLMAKEDOC=$(MODARCHDIR)/make-docfile $(ELLCC) --mode=init \ | |
48 --mod-output=$@ --mod-name=$(MODNAME) --mod-version=$(MODVER) \ | |
49 --mod-title=$(MODTITLE) $(SRC_SRCS) | |
50 | |
51 clean: | |
52 $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~ | |
53 | |
54 distclean: clean | |
55 $(RM) Makefile config.* configure | |
56 | |
57 install: $(MODNAME).ell | |
5512
4aa8ee813265
Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents:
5417
diff
changeset
|
58 $(INSTALL_PROGRAM) $< $(DESTDIR)$(INSTALLPATH) |